Repository navigation
Commit 78437cd
Update QMoE emission for ORT raw-weight prepack support (#460)
ORT QMoE now supports raw int4/int8 expert weights via
`weights_prepacked=0`. Mobius was emitting raw QMoE weight tensors
without explicitly opting into that mode, leaving CUDA to interpret them
as prepacked.
- **QMoE emission**
- Set `quant_type="int"` and `weights_prepacked=0` on fused
`com.microsoft::QMoE` nodes emitted by `MoELayer`.
- **Dense MoE rewrite**
- Apply the same attributes when rewriting dense fallback MoE expert
storms into a single `QMoE` node.
- **Regression coverage**
- Assert the new QMoE ABI attributes in component and rewrite-rule
tests.
```python
op.QMoE(
...,
quant_type="int",
weights_prepacked=0,
_domain="com.microsoft",
)
```
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes #348
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: justinchuby <[email protected]>1 parent 9567144 commit 78437cd
4 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
481 | 483 | | |
482 | 484 | | |
483 | 485 | | |
| |||
0 commit comments