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 the issue of parameters updated as nan during reward model training. #69

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

llauraa23
Copy link
Collaborator

Language model is loaded in torch.float16. Adam optimizer adds epsilon to avoid zero denominator. Note, torch.float16 will round any number smaller than 6e-8 to 0. Do not change epsilon to smaller than 6e-8.

…ng. rw_finetuning.py

 Language model is loaded in torch.float16. Adam optimizer adds epsilon to avoid zero denominator. Note, torch.float 16 will round any number smaller than 6e-8 to 0. Do not change episolon to smaller than 6e-8.
@CambioML
Copy link
Collaborator

LGTM! 👍

@CambioML CambioML merged commit 9b64d82 into CambioML:main Sep 25, 2023
1 check 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.

2 participants