Skip to content

Commit

Permalink
xglm
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Feb 6, 2025
1 parent 2f951dd commit 5204b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/xglm/modeling_xglm.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def forward(
)


def XGLMCrossEntropyLoss(
def xglm_cross_entropy_loss(
logits,
labels,
num_items_in_batch: int = None,
Expand Down Expand Up @@ -735,7 +735,7 @@ def __init__(self, config):
# Initialize weights and apply final processing
self.post_init()

self._loss_function = XGLMCrossEntropyLoss
self._loss_function = xglm_cross_entropy_loss

def get_input_embeddings(self):
return self.model.embed_tokens
Expand Down

0 comments on commit 5204b53

Please sign in to comment.