-
Notifications
You must be signed in to change notification settings - Fork 282
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 conversion parity script by defaulting RMSNorm to 1e-6 #152
Conversation
✅ Deploy Preview for torchtune-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a GI to add a test for script conversion?
torchtune/models/llama2/rms_norm.py
Outdated
@@ -23,7 +23,7 @@ class RMSNorm(nn.Module): | |||
eps (float): small value to avoid division by zero. Default: 1e-5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change default in description.
Yes, filed an issue: #153 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question about test, rest seem okay. I will let Joe stamp it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome - thanks for such a quick fix.
@pytorch-labs/team-torchtune-repo-owner |
Changelog
Test plan
python -m scripts.llama2_checkpoint.convert_llama2_to_native --checkpoint_path /home/rvarm1/local/dev/assets/llama2-7b/consolidated.00.pth --device cuda:1 &> out
pytest tests/torchtune/models/llama2/test_transformer_decoder.py -k test_rms_norm_propagation