Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Dec 24, 2024
1 parent 288df5b commit f0195d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/trainers/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _patch_loss_function(self):
yield
return

loss_function = model.loss_function
loss_function = self.model.loss_function

@warps(loss_function)
def new_loss_function(logits, labels, **kwargs):
Expand Down

0 comments on commit f0195d0

Please sign in to comment.