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: fix gradient accumulate step for learning rate #27667

Merged
merged 1 commit into from
Dec 7, 2023
Merged

fix: fix gradient accumulate step for learning rate #27667

merged 1 commit into from
Dec 7, 2023

Conversation

pphuc25
Copy link
Contributor

@pphuc25 pphuc25 commented Nov 23, 2023

Hi,
I think this is the mistake seen the learning rate should take the param num_train_steps as total_train_steps, instead of len(vectorized_datasets["train"])
So I fix them to the right suitable that learning rate will go down to zero as init
I would like to cc @sanchit-gandhi to review my PR

Copy link
Contributor

@sanchit-gandhi sanchit-gandhi left a comment

Choose a reason for hiding this comment

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

Nice catch! Thanks @pphuc25!

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Good catch

@ArthurZucker ArthurZucker merged commit 0410a29 into huggingface:main Dec 7, 2023
@pphuc25 pphuc25 deleted the fix_warmup branch December 7, 2023 07:37
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.

3 participants