Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: compute_loss bug #1151

Merged
merged 1 commit into from
Oct 19, 2024
Merged

fix: compute_loss bug #1151

merged 1 commit into from
Oct 19, 2024

Conversation

vo1d-ai
Copy link
Contributor

@vo1d-ai vo1d-ai commented Oct 19, 2024

Currently, Unsloth doesn't properly pass additional parameters to Trainer.compute_loss such as return_outputs because of a typo. This leads to errors when calling trainer.evaluate(). This change fixes the bug.

Currently, Unsloth doesn't pass additional parameters to Trainer.compute_loss such as return_outputs. This leads to errors when calling trainer.evaluate(). This change fixes the bug by properly passing parameters to Trainer.compute_loss.
@danielhanchen
Copy link
Contributor

Oh dumb me forgot to unwrap the args and kwargs!!

@danielhanchen danielhanchen merged commit 12bdd86 into unslothai:main Oct 19, 2024
@vo1d-ai vo1d-ai deleted the patch-1 branch October 26, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants