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).
- Windows WDDM VRAM safety floor & post-cache shrink (#6128, #5915): join warm_gemm_libraries before sizing, enforce per-tier WDDM discrete free-VRAM floors (>=1280 MiB >=16 GB, >=960 MiB 10-12 GB, >=640 MiB 6-8 GB, >=448 MiB 4 GB; opt-out STRATA_WDDM_VRAM_FLOOR=0), raise legacy --vision --vram-reserve-mib 700, reserve 384 MiB late-alloc headroom on WDDM, and include mtp_bind + prefill_mib + late_alloc in both sized_slots and post-memset shrink with 0 slack so Driver 595+/621.01 never pages VRAM to host RAM.
- Prefill chunk cap & sm_89 / multi-GPU tiny-cache fixes (#5199, #6509, #6208, #6431, #6583): keep bare --prefill auto at 8192 on <=16.5 GiB NVIDIA GPUs so prompt loans do not cannibalize hot expert slots; remove regressive STRATA_L2_PF=1 and conflicting STRATA_QFUSE=1 from sm_89 Ada defaults; extend tiny-cache (<25% resident) swap dampening and 25% Zipf-head pinning to multi-GPU layer splits.
- RX 9060 XT / gfx1200 RDNA4 fixes (#6254, #6526, #5162, #6127, #5649, #5718): serialize warm_gemm_libraries on Windows HIP to avoid amdhip64_7.dll/rocblas.dll cold-boot 0xC0000005; default DEBUG_HIP_DYNAMIC_QUEUES=0 before first HIP call (opt-out STRATA_HIP_DYNAMIC_QUEUES=1); use __builtin_memcpy in RDNA4 load_int_b2 and hoist Q6KTraits scales into registers to avoid gfx1200 NaNs; add STRATA_VERIFY_TIMEOUT_S (30s HIP default) with one-shot flag re-publish grace.
- Volta sm_70 opt-in bitwise kernels (PR#6603 STRATA_GR_V70, PR#6604 STRATA_Q8_V70) + PR#6505 cudaGetDevice error checks.
- Windows MSVC CUDA LNK2005 fix: default CMAKE_CUDA_RUNTIME_LIBRARY=Shared on MSVC across engine/cmake/backends/cuda.cmake and engine/src/inkling2/CMakeLists.txt so strata.exe and strata-inkling.exe link cleanly without cudart_static.lib/cudart.lib collisions.
Accept qwen35moe.attention.head_count_kv (and head_count) as either a scalar or a per-layer integer array of length block_count in both check_architecture_qwen35moe and geometry_from_gguf, resolving the non-zero full-attention head count (never blindly reading entry 0), tolerating feed_forward_length == 0 and optional nextn_predict_layers. Add optional headroom to OneSessionInput and HybridIn for card-0 driver/pinned-mapping overhead, plus CPU unit test q36_metadata_test wired into cpu-check.
The merge is clean: every file of f-hy4-run is new on top of the candidate except
engine/include/strata/artifact/model_family.hpp (+6) and engine/cmake/backends/quant.cmake (+3).