Repository navigation
Commit 8cd9ea8
kernels: the 16-value codebook lookups through v_perm_b32 on every HIP card
table16_lookup() (IQ4_NL, IQ4_XS, MXFP4, the formats of 16 values) took llama.cpp's v_perm_b32 sequence on gfx906
only, and the __byte_perm one elsewhere. Both give the same bytes; on RDNA4 the v_perm_b32 one is faster. In our
first Inkling engine (PR #200) on an RX 9070 XT (gfx1201, ROCm 7.2.4), 8 cached IQ4_NL experts' products read at
337 -> 411 GB/s (2,304 values) and 244 -> 349 (1,152), and Inkling 2 Mini IQ4_NL wrote 256 tokens after 302 at
43.2 -> 45.6 tok/s, medians of 3. So every HIP build takes it. CUDA builds compile the same code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent b681c69 commit 8cd9ea8
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
609 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
610 | 611 | | |
611 | 612 | | |
612 | 613 | | |
| |||
0 commit comments