-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Feature] fused mixtral wint4 #9013
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9013 +/- ##
===========================================
+ Coverage 54.06% 54.12% +0.05%
===========================================
Files 650 650
Lines 103883 103874 -9
===========================================
+ Hits 56164 56221 +57
+ Misses 47719 47653 -66 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
ffn1_quanted_weight_list_i.reshape([self.transformer_block.config.embed_dim, -1]) | ||
ffn1_quanted_weight_list_i.reshape( | ||
[self.transformer_block.embed_dim, self.transformer_block.dim_feedforward * 2] | ||
if self.transformer_block.config.quant_type == "weight_only_int8" |
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.
if self.transformer_block.config.quant_type == "weight_only_int8" | |
if self.quant_type == "weight_only_int8" |
这样就可以吧
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.
done
ffn2_quanted_weight_list_i.reshape([-1, self.transformer_block.config.embed_dim]) | ||
ffn2_quanted_weight_list_i.reshape( | ||
[self.transformer_block.dim_feedforward, self.transformer_block.embed_dim] | ||
if self.transformer_block.config.quant_type == "weight_only_int8" |
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.
同上
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.
done
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
* [Feature] fused mixtral wint4 * [Refactor] refine code
* [Feature] fused mixtral wint4 * [Refactor] refine code
* [Feature] fused mixtral wint4 * [Refactor] refine code
* [Feature] fused mixtral wint4 * [Refactor] refine code
PR types
New features
PR changes
Models
Description
支持mixtral模型wint4