-
Notifications
You must be signed in to change notification settings - Fork 156
fix: fix exported model.layers.*.self_attn.rotary_emb.inv_freq shape #2021
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: conver334 <[email protected]>
Signed-off-by: conver334 <[email protected]>
Signed-off-by: conver334 <[email protected]>
|
/ok to test a023beb |
Signed-off-by: conver334 <[email protected]>
|
/ok to test 8d4c394 |
Signed-off-by: conver334 <[email protected]>
Head branch was pushed to by a user without write access
BoxiangW
left a comment
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.
LGTM
|
/ok to test 13ac99d |
|
/ok to test 664ed69 |
📝 WalkthroughWalkthroughUpdates weight verification logic with dtype normalization and shape-mismatch detection, corrects rotary frequency calculation in DeepSeek V3 bridge from step 2 to step 1, refactors benchmark script to use weights verification table, adds comprehensive Moonlight model conversion functional test, and adjusts corresponding unit test expectations. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/ok to test 5acf621 |
What does this PR do ?
#1838 add exporting to model.layers.*.self_attn.rotary_emb.inv_freq. Its shape is not correct. The following error occurred:
model.layers.9.self_attn.rotary_emb.inv_freq │ torch.Size([32]) != torch.Size([64])Changelog
The calculation method of this layer is modified and compared with the imported HF parameters.
GitHub Actions CI
See the CI sectionin the Contributing doc for how to trigger the CI. A Nvidia developer will need to approve and trigger the CI for external contributors.
Before your PR is "Ready for review"
Pre checks:
If you haven't finished some of the above items you can still open "Draft" PR.
Additional Information
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.