Repository navigation
Commit 195b207
Fix L4/L5 golden regressions across 7 broken models (#436)
## Summary
An L4/L5 golden-test regression sweep on `main` (CI had not run for a
while) found **7 models** failing at build or run time. This PR
root-causes and fixes each one, then verifies L4 (prefill argmax) and L5
(generation) on GPU (CUDA EP).
## Fixes
| Model | Root cause | Fix |
|---|---|---|
| **diffllama-0.3b** | `create_padding_mask` returns 4D `[B,1,S,Sk]`,
but attention re-`Unsqueeze`d it → rank-5 bias broke ORT `Split` | Add
the already-4D pad bias directly |
| **gemma-4-e2b/e4b audio** | (1) `op.Range` got 1-D `[1]` limit from
`op.Shape`; (2) mask-downsample `Slice` used `INT64_MAX` ends → shape
inference derived 2^62 length → `Reshape` overflow at load | (1) squeeze
limit to scalar at both Range sites; (2) bound `Slice` ends to the
dynamic time dim |
| **gemma-4-e2b-it-assistant** | Generic Attention path built
sliding-window bias from full buffer-width mask (`kv_len+1`) while K is
only shared KV (`kv_len`) → inconsistent `total_sequence_length` | Slice
mask to `kv_len` first |
| **qwen3-asr / qwen3-asr-en** | `thinker_config` ships as a plain dict,
so `text_config`-unwrap in `build()` missed it → decoder `hidden_size=0`
| Convert dict via `_dict_to_pretrained_config` before unwrapping |
| **nemotron-h-nano-4b** | `build()` without `trust_remote_code`
mis-detected `layer_types` as `linear_attention` (TypeError) | Add
`trust_remote_code` + clear None-guard in `linear_attention_dims`;
**documented `skip_reason`** (HF ref needs `trust_remote_code` +
mamba-ssm CUDA kernels, unavailable in CI — same as
jamba/granitemoehybrid; prior golden was generated with the wrong native
config) |
| **sensevoice-small** | audio-ctc L4/L5 not wired into the e2e harness
(custom LFR-fbank + `language_id`, FunASR reference, no golden
generator) | **documented `skip_reason`** |
## Verification (GPU, CUDA EP)
- **L4 + L5 PASS**: diffllama-0.3b, qwen3-asr, qwen3-asr-en,
gemma-4-e2b-it-audio, gemma-4-e4b-it-audio, gemma-4-e2b-it-assistant
- **SKIP (documented)**: nemotron-h-nano-4b, sensevoice-small
- **Regression sanity (unchanged, still pass)**: gemma-4-e2b,
llama-3_2-1b, qwen3-0_6b
## Notes
- No protobuf ops; `onnx_ir` APIs only.
- `ruff format` / `ruff check` clean.
- The nemotron-h build fixes are genuine improvements (correct mamba2
layer types); only the golden comparison is skipped until a valid
reference can be generated.
Co-authored-by: Copilot <[email protected]>
Signed-off-by: justinchuby <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 9b22d8d commit 195b207
8 files changed
Lines changed: 63 additions & 9 deletions
File tree
- src/mobius
- components
- models
- tasks
- testdata/cases
- causal-lm
- speech
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
450 | 451 | | |
451 | 452 | | |
452 | 453 | | |
| |||
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
484 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
211 | | - | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
477 | 480 | | |
478 | 481 | | |
479 | 482 | | |
480 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
481 | 487 | | |
482 | 488 | | |
483 | 489 | | |
| |||
570 | 576 | | |
571 | 577 | | |
572 | 578 | | |
573 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
574 | 582 | | |
575 | 583 | | |
576 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
201 | | - | |
202 | | - | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
52 | 70 | | |
53 | 71 | | |
54 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
0 commit comments