-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
support fused weights for export_model #8554
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8554 +/- ##
===========================================
- Coverage 53.97% 53.96% -0.01%
===========================================
Files 618 618
Lines 96827 96833 +6
===========================================
+ Hits 52258 52260 +2
- Misses 44569 44573 +4 ☔ View full report in Codecov by Sentry. |
feeefad
to
4896348
Compare
self.embed_tokens.weight.set_value(paddle.to_tensor(state_dict["llama.embed_tokens.weight"])) | ||
self.norm.weight.set_value(paddle.to_tensor(state_dict["llama.norm.weight"], dtype=self.norm.weight.dtype)) | ||
self.embed_tokens.weight.set_value( | ||
paddle.to_tensor(state_dict["llama.embed_tokens.weight"]).cast(self.embed_tokens.weight.dtype) |
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.
.cast 支持原始权重为bfloat16
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
PR types
Others
PR changes
Others
Description
support fused weights for export_model