Commit b956e10
committed
enroll mxtensor in vllm integration tests
Summary:
1. enrolls mxtensor in existing vllm slice and copy test, make it pass
by moving to TorchAOBaseTensor's copy
2. add an additional test for vllm narrow, make that test pass by fixing
an incorrect slice implementation. This may be useful for other
tensor, they can opt-in in separate PRs.
Test Plan:
```
pytest test/prototype/mx_formats/ -s -x
```
also, this PR enables running mxfp4 weight-only Qwen MoE models in vllm
Reviewers:
Subscribers:
Tasks:
Tags:
ghstack-source-id: 609a88e
ghstack-comment-id: 3339065416
Pull Request resolved: #30811 parent 79a8753 commit b956e10
File tree
3 files changed
+49
-19
lines changed- test/prototype/mx_formats
- torchao
- prototype/mx_formats
- testing
3 files changed
+49
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | | - | |
841 | | - | |
| 839 | + | |
842 | 840 | | |
843 | 841 | | |
844 | 842 | | |
| |||
861 | 859 | | |
862 | 860 | | |
863 | 861 | | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | 862 | | |
879 | 863 | | |
880 | 864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
429 | | - | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
607 | 608 | | |
608 | 609 | | |
609 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
610 | 628 | | |
611 | 629 | | |
612 | 630 | | |
| |||
0 commit comments