Update modeling_kuixing.py
Browse files- modeling_kuixing.py +1 -1
modeling_kuixing.py
CHANGED
|
@@ -146,7 +146,7 @@ class KuiXingForCausalLM(PreTrainedModel, GenerationMixin):
|
|
| 146 |
return model.eval()
|
| 147 |
|
| 148 |
def forward(self, input_ids=None, labels=None, attention_mask=None, **kwargs):
|
| 149 |
-
logits = self.model(input_ids attention_mask=attention_mask)
|
| 150 |
loss = None
|
| 151 |
if labels is not None:
|
| 152 |
loss = F.cross_entropy(
|
|
|
|
| 146 |
return model.eval()
|
| 147 |
|
| 148 |
def forward(self, input_ids=None, labels=None, attention_mask=None, **kwargs):
|
| 149 |
+
logits = self.model(input_ids, attention_mask=attention_mask)
|
| 150 |
loss = None
|
| 151 |
if labels is not None:
|
| 152 |
loss = F.cross_entropy(
|