Commit e394fa5
hi-cuda: gemma4 per-layer loader specs; gemma4-12b matrix fixture
The loader's dense-attention matrix specs now use per-layer q/k/v/output
dims for gemma4 (mirroring the validation stage), and attn_k/attn_v
specs are conditional on tensor presence (global layers ship no attn_v;
E-series shared-KV tail layers ship neither).
Gemma-4-12B-It Q4_K_M loads, serves, and produces coherent greedy
output end to end (decode ~22 tok/s). 15-fixture family matrix green in
203s. E-series (KV sharing + per-layer embeddings) and the 26B-A4B MoE
remain follow-up stages.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 050c4c7 commit e394fa5
2 files changed
Lines changed: 64 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23448 | 23448 | | |
23449 | 23449 | | |
23450 | 23450 | | |
| 23451 | + | |
| 23452 | + | |
| 23453 | + | |
| 23454 | + | |
| 23455 | + | |
| 23456 | + | |
| 23457 | + | |
| 23458 | + | |
| 23459 | + | |
| 23460 | + | |
| 23461 | + | |
| 23462 | + | |
| 23463 | + | |
| 23464 | + | |
| 23465 | + | |
| 23466 | + | |
| 23467 | + | |
| 23468 | + | |
| 23469 | + | |
| 23470 | + | |
| 23471 | + | |
| 23472 | + | |
| 23473 | + | |
| 23474 | + | |
| 23475 | + | |
| 23476 | + | |
| 23477 | + | |
| 23478 | + | |
| 23479 | + | |
| 23480 | + | |
| 23481 | + | |
| 23482 | + | |
| 23483 | + | |
| 23484 | + | |
| 23485 | + | |
23451 | 23486 | | |
23452 | 23487 | | |
23453 | 23488 | | |
| |||
23626 | 23661 | | |
23627 | 23662 | | |
23628 | 23663 | | |
23629 | | - | |
23630 | | - | |
| 23664 | + | |
| 23665 | + | |
| 23666 | + | |
| 23667 | + | |
| 23668 | + | |
| 23669 | + | |
| 23670 | + | |
23631 | 23671 | | |
23632 | 23672 | | |
23633 | 23673 | | |
23634 | 23674 | | |
23635 | 23675 | | |
23636 | | - | |
23637 | | - | |
| 23676 | + | |
| 23677 | + | |
| 23678 | + | |
| 23679 | + | |
| 23680 | + | |
| 23681 | + | |
| 23682 | + | |
| 23683 | + | |
23638 | 23684 | | |
23639 | 23685 | | |
23640 | 23686 | | |
23641 | 23687 | | |
23642 | 23688 | | |
23643 | | - | |
23644 | | - | |
| 23689 | + | |
| 23690 | + | |
23645 | 23691 | | |
23646 | 23692 | | |
23647 | 23693 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
149 | 161 | | |
150 | 162 | | |
151 | 163 | | |
| |||
0 commit comments