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

stack_llama: add parameter to control max_length (to mitigate OOM errors) #359

Merged
merged 1 commit into from
May 11, 2023

Conversation

teticio
Copy link
Contributor

@teticio teticio commented May 11, 2023

As I "only" have 24 Gb VRAM, I run out of memory when training the reward model. The dataset was previously truancated to a hardcoded value of 512; I have made this a script argument.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@lvwerra lvwerra left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

Copy link
Collaborator

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Awesome work! Thanks a lot for this!

@younesbelkada younesbelkada merged commit e0172fc into huggingface:main May 11, 2023
11 checks passed
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.

None yet

4 participants