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

[PEFT] Fix PEFT batch size > 1 #338

Merged
merged 1 commit into from
Feb 14, 2024
Merged

[PEFT] Fix PEFT batch size > 1 #338

merged 1 commit into from
Feb 14, 2024

Conversation

younesbelkada
Copy link
Collaborator

Currently on main + huggingface/transformers#28987 + huggingface/peft#1399 training with PEFT + batch size > 1 is broken - this PR fixes by correctly calculating the gradient across all batch sizes

cc @casper-hansen

@casper-hansen casper-hansen merged commit c69d3b6 into main Feb 14, 2024
@younesbelkada younesbelkada deleted the fix-peft branch February 15, 2024 00:05
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