-
Notifications
You must be signed in to change notification settings - Fork 222
Use kitchen FA in huggingface plugin #674
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
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #674 +/- ##
==========================================
- Coverage 74.65% 74.65% -0.01%
==========================================
Files 192 192
Lines 18909 18918 +9
==========================================
+ Hits 14117 14123 +6
- Misses 4792 4795 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Shiyang Chen <shiychen@nvidia.com>
Signed-off-by: Shiyang Chen <shiychen@nvidia.com>
| @property | ||
| def is_mxfp4(self): | ||
| """Check if is MXFP4.""" | ||
| return ( | ||
| self.is_mx_format and self.num_bits == (2, 1) and self.block_sizes.get(-1, None) == 32 | ||
| ) | ||
|
|
||
| @property | ||
| def is_mxfp6(self): | ||
| """Check if is MXFP6.""" | ||
| return ( | ||
| self.is_mx_format and self.num_bits == (3, 2) and self.block_sizes.get(-1, None) == 32 | ||
| ) | ||
|
|
||
| @property | ||
| def is_mxfp8(self): | ||
| """Check if is MXFP8.""" | ||
| return ( | ||
| self.is_mx_format and self.num_bits == (4, 3) and self.block_sizes.get(-1, None) == 32 | ||
| ) | ||
|
|
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 add arguments to is_mx_format method instead of elaborating like this? We would need to make is_max_format a regular method instead of a property - but that should be okay
What does this PR do? new feature
Overview: use kitchen FA in huggingface plugin
Usage
# Add a code snippet demonstrating how to use thisTesting
Before your PR is "Ready for review"
Additional Information