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 Transformers seq length override #848

Merged
merged 5 commits into from
Jan 4, 2025
Merged

Fix Transformers seq length override #848

merged 5 commits into from
Jan 4, 2025

Conversation

ahmeda14960
Copy link
Contributor

Right now we are unable to override the base config loaded from transformers models when training. This normally isn't an issue but causes OOM when doing SFT fine-tuning and using Llama 3 8B base since the model config has a very large context length of 131K tokens.

This might not be the most elegant solution but has fixed the problem AFAIK.

@ahmeda14960 ahmeda14960 requested a review from dlwh January 2, 2025 16:35
Copy link
Member

@dlwh dlwh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is how it should be, thanks

@dlwh dlwh merged commit 52fd92d into main Jan 4, 2025
8 checks passed
@dlwh dlwh deleted the fix_hf_sft branch January 4, 2025 17:15
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