The first change split SF4, MX8 and S_K experts over the CPU pool. The Unsloth files use other layouts:
UD-Q4_K_XL has NVFP4 experts in layers 0-19 (lossless SF4) and Q8_0 experts in the last four layers (the coda layers
are placed last, so on a 12-16 GB card they are the RAM experts), UD-Q2_K_XL mixes IQ1_S/IQ2_* with NVFP4/MXFP4.
expert_m1_gu_rows / expert_m1_dn_rows now also cover SkCode::GGUF_RAW, with the same 4-row grouping and the same
dot kernels as eval_inkling2_expert_batch, and the same dequantize-then-float-dot code for the types without a
quantized dot (Q8_0, F16, BF16). ink_expert_split_test checks Q4_K, Q5_K, Q6_K, Q8_0, Q3_K, Q2_K, IQ4_XS, Q4_0 and
IQ4_NL gate/up with Q8_0, Q4_0 and IQ4_NL down, interleaved and split layout, bit for bit against the whole expert.
A hybrid decode step (some experts in RAM) routes 8 experts, so only 1-4 of them are RAM experts per layer, and the
CPU pool ran each of them as ONE job on ONE thread. With 10-24 pool threads most cores sat idle while the GPU waited
(per token on a Radeon AI PRO R9700, SQ-10 with 38% of the experts in RAM: 52 ms of CPU wait out of 70 ms).
- expert_m1_gu_rows / expert_m1_act / expert_m1_dn_rows (inkling2_loop.cpp): the same per-row code as
eval_inkling2_expert, callable on a row range, so every output element is computed in the same order and any split
gives the same bits (SF4, MX8, S2_K..S8_K; GGUF_RAW experts keep the old path). Test: ink_expert_split_test
(whole-expert result vs six slicings, slices run in reverse order, bitwise).
- The pool splits every single-token job over ceil(threads / jobs) slices in three phases (gate/up rows, SITU, down
rows) and adds the expert outputs in job order. The old code added per-thread buffers whose content depended on which
thread took which job, so the sum order changed from run to run. STRATA_HIP_CPU_SPLIT=0 turns the split off.
- STRATA_HIP_HYB_PROF=1 prints the time split of the hybrid decode step.
- A GGUF whose experts need a transcode (IQ1_S, IQ2_*, IQ3_S: no HIP kernel) grows when it is transcoded to S_K, so the
planner's file-size budget (--vram-experts-gb 7.26 --ram-experts-gb 0 for UD-Q2_K_XL) left experts that fit neither
VRAM nor RAM; they were re-read and re-transcoded from the file on every token (0.3 tok/s, prefill 3.9 tok/s on
gfx1201). They now stay in RAM when MemAvailable allows (a line says so), otherwise a warning says why decode is slow.
- INK_LOGITS_HASH=1 (direct generation mode) prints an FNV hash of the logits of every step.
Measured on p620 (gfx1201, Threadripper PRO 3975WX), SQ-10, --vram-experts-gb 5.2 --ram-experts-gb 3.2 --draft off,
bench 128/128, three alternating rounds: 12.8 / 13.0 / 12.9 tok/s before, 32.2 / 32.6 / 32.9 after (all experts in
VRAM: 73.6). UD-Q2_K_XL with the flags of #6729: 0.3 -> 28.8 tok/s (64 tokens, includes warm-up).