-
Notifications
You must be signed in to change notification settings - Fork 699
Add int4mm test to the CUDA CI flow #15181
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d753f03
Add int4mm test to the CUDA CI flow
desertfire 8456310
Update optimum-executorch pin
desertfire fcbefe3
1. Test more quantization format
desertfire 95e2e51
Consolidate e2e workflows
desertfire d27e10a
Remove --qembedding
desertfire 8cd4c6a
Remove --qlinear as the produced result is invalid
desertfire 45cbb84
Consolidate export workflow
desertfire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 44d8d54e38c0258357d4e92e1fefe21e845947a3 | ||
| 09fdbd0a0639b128f712a4f5202ed42ca4c60957 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,8 +39,6 @@ This exports Voxtral with XNNPack backend acceleration and 4-bit weight/8-bit ac | |
| ## CUDA Support | ||
| If your environment has CUDA support, you can enable the runner to run on CUDA for improved performance. Follow the export and runtime commands below: | ||
|
|
||
| **Note:** We are currently working on quantization support for CUDA. Currently, only bfloat16 dtype is supported for CUDA execution. | ||
|
|
||
| ### Exporting with CUDA | ||
| ``` | ||
| optimum-cli export executorch \ | ||
|
|
@@ -57,6 +55,22 @@ This will generate: | |
| - `model.pte` - The exported model | ||
| - `aoti_cuda_blob.ptd` - The CUDA kernel blob required for runtime | ||
|
|
||
| Furthermore, we support several quantization formats on CUDA. | ||
| To export Voxtral with int4 weight-only quantization, use | ||
| ``` | ||
| optimum-cli export executorch \ | ||
| --model "mistralai/Voxtral-Mini-3B-2507" \ | ||
| --task "multimodal-text-to-text" \ | ||
| --recipe "cuda" \ | ||
| --dtype bfloat16 \ | ||
| --device cuda \ | ||
| --max_seq_len 1024 \ | ||
| --qlinear 4w \ | ||
| --qlinear_encoder 4w \ | ||
| --qembedding 4w \ | ||
|
||
| --output_dir="voxtral" | ||
| ``` | ||
|
|
||
| See the "Building the multimodal runner" section below for instructions on building with CUDA support, and the "Running the model" section for runtime instructions. | ||
|
|
||
| # Running the model | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.