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: allow to pass other loss function to training strategies #101

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

aaronkl
Copy link
Collaborator

@aaronkl aaronkl commented Aug 21, 2024

We call .detach() only in the loss function to allow to pass other loss functions than KDLoss. This is necessary for example for pruning BERT models.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@aaronkl aaronkl requested a review from rheasukthanker August 21, 2024 09:28
@aaronkl aaronkl merged commit 1fb5f34 into main Aug 22, 2024
6 checks passed
@aaronkl aaronkl deleted the fix_training_strategies branch August 22, 2024 05:28
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