gfx906: K-quant/Q5_1/Q8_0 experts take the CUDA layout; gr_down K-split opt-in; gfx906-aware ctest
- native_expert_grouped: the AMD layouts handle the IQ packs' gate/up and down types only; Unsloth's Q4_K / Q5_K gate/up and Q5_1 / Q8_0 down now take the CUDA layout instead of exiting (native_grouped_parity found it). - fused_gr_read_multi: the K-split gr_down (fixed-order finish) sums in another order than the single-token fused_gr_read, so it broke gr_parity's multi == single contract; it is now opt-in (STRATA_GR_SPLIT=1). The latency-hidden norm/up (same sums, same order) run in the default read (STRATA_GR_FAST=0: off). - mmvq_multi_parity: on gfx906 the wave64 MMVQ is the same exact kernel for every column count, so the negative control has nothing to find; a second ctest entry runs it on the CUDA layout (STRATA_MMVQ_WAVE=0), where it has power. - kv_hybrid_parity: the tensor-core prompt attention refuses on gfx906 as on the RDNA backend. ctest on 2x MI50 (gfx906): 34 of 34 pass (iq_parity and ple_parity need fixture files and are not counted).
This commit is contained in:
1 parent
8e8e641245
commit
6b8b54963b
7 files changed
+50
-11
No files matched your search
+2
-2
@@ -380,11 +380,11 @@ container with `--device=/dev/kfd --device=/dev/dri --group-add video --ipc=host
|
||||
|
||||
| | gfx906 | switch |
|
||||
|---|---|---|
|
||||
| grouped native experts | mode 7: signs as `dp4a(g ^ m, u) - dp4a(m, u)` (no byte SIMD), grids and activations in LDS, one weight load per group | `STRATA_EXP_MODE=2` (previous AMD layout) |
|
||||
| grouped native experts | mode 7: signs as `dp4a(g ^ m, u) - dp4a(m, u)` (no byte SIMD), grids and activations in LDS, one weight load per group; the IQ formats only (Unsloth's K-quant / Q5_1 / Q8_0 experts take the CUDA layout) | `STRATA_EXP_MODE=2` (previous AMD layout) |
|
||||
| MMVQ | one wavefront per row, 64-lane butterfly, no LDS | `STRATA_MMVQ_WAVE=0` |
|
||||
| router top-10 | one wavefront, register argmax | - |
|
||||
| `gr_down_multi` | split along K (8 rows x 5 slices of 2048) | `STRATA_GR_SPLIT=0` |
|
||||
| hyper-connection read | norm loads in flight, 8 lanes per row for `up` | `STRATA_GR_FAST=0` |
|
||||
| `gr_down_multi`, opt-in | split along K (8 rows x 5 slices of 2048), ~3% per window; sums in another order than the single-token read, so off by default | `STRATA_GR_SPLIT=1` |
|
||||
| IQ4 table lookup | llama.cpp's `v_perm_b32` sequence (HIP's `__byte_perm` is a scratch array) | - |
|
||||
| QSA prompt attention | the FP32 kernel (no tensor cores / WMMA) | - |
|
||||
|
||||
|
||||
Reference in new issue
Block a user