Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
refill parts (#2078): not in gfx1151's default table (only gfx1151 measured it, and nothing here can gate that arch): opt-in STRATA_REFILL_PARTS=1, documented in section 5
Niko1221a61436c4dacb
diff --git a/docs/STRIX_HALO.md b/docs/STRIX_HALO.mdindex 207907662..af227b70f 100644--- a/docs/STRIX_HALO.md+++ b/docs/STRIX_HALO.md@@ -92,7 +92,6 @@ they change speed, not answers. Nothing here applies to CUDA or to another AMD a| `STRATA_GDN_HEAD`, `STRATA_GDN_PP=2`, `STRATA_GDN_CONVL2`, `STRATA_GDN_NOY` | the prompt's gated-delta-net recurrence: four lanes per column, two columns per lane, the convolution and the norms fused || `STRATA_HCD_EXACT` | the hyper-connection down projection (N 320, K 10240) in a WMMA kernel that reproduces hipBLASLt solution 1176 / 1177's summation order (`hip_prefill_hcd_exact_parity` checks it bit for bit); it runs only where the table makes hipBLASLt pick one of those two, and says once if it cannot || `STRATA_CVEC_FUSE`, `STRATA_PF_PAD` | a steered layer's write, control vector and next norm in one pass; padded GEMM row strides |-| `STRATA_REFILL_PARTS` | after a prompt, the expert-cache slots it borrowed are refilled straight from the GGUF mapping (an expert's gate, up and down tensors) instead of through an assembled 4 MB copy per expert: the same bytes in the slot (checked against the assembled blob on 162 slots), 0.1 to 0.3 s less at the end of a prompt || `STRATA_Q8_PACKED`, `STRATA_Q6_PACKED`, `STRATA_MMVF_ROWS`, `STRATA_ATTN_LANECELL` | decode layouts and kernels (packed Q8_0 / Q6_K weights, 4-row BF16 GEMV, one-cell-per-thread attention scores) || `STRATA_EXPERT_V2`, `STRATA_TSUM`, `STRATA_LFUSE` | the grouped decode experts (IQ3_S / IQ4_NL), single-butterfly warp sums, fewer launches around the shared expert and the KV append || `STRATA_GDN_SPLIT`, `STRATA_QFUSE`, `STRATA_PLE_BATCH` | the GDN step over four blocks per head, activation images written by their producers, the PLE key / value projections of a verify window at once |@@ -133,6 +132,8 @@ It rounds differently from the int8 kernels. First-token KL against a run with n0.0031 (0.0024) for `STRATA_PF_FUSED=1 STRATA_PF_FUSED_KQ=1` without it; UD-IQ4_XS 0.0085 (0.0036) against 0.0068 (0.0032). One1.5K prompt carries most of the Q4_K_XL mean (0.049).+`STRATA_REFILL_PARTS=1` (opt-in, exact; HIP and CUDA, a GGUF read in place) refills the expert-cache slots a prompt borrowed straight from the GGUF mapping (an expert's gate, up and down tensors) instead of through an assembled 4 MB copy per expert: the same bytes in the slot (checked against the assembled blob on 162 slots), 0.1 to 0.3 s less at the end of a prompt; gfx1151, UD-Q4_K_XL and UD-IQ4_XS: a 4K-8K prompt +2.3% to +3.5%, 32K +1.1%. It is not in the table above because only gfx1151 has measured it.+Two engine flags help on long contexts and are not Strix-specific: `--mtp-window 8192` (the draft layer attends to the last 8,192cells: 64K output +3.5%, 32K -0.4%) and `--spec`, `--lookup-chain`, `--mtp-q4` (see [DETAILS.md](DETAILS.md)).diff --git a/src/core/arch_defaults.cpp b/src/core/arch_defaults.cppindex 59d3f6a19..e8ca7c9b7 100644--- a/src/core/arch_defaults.cpp+++ b/src/core/arch_defaults.cpp@@ -42,7 +42,6 @@ std::vector<std::pair<std::string, std::string>> arch_default_env(const char* gc{"STRATA_CVEC_FUSE", "1"}, // a steered layer's write, control vector and next norm in one pass (S23){"STRATA_HCD_EXACT", "1"}, // the HC down GEMM in hipBLASLt solution 1176's k order: 64K +1.8% (stream S){"STRATA_PF_PAD", "1"}, // padded GEMM row strides (acts with STRATA_PF_GEMM; inert without it) (S23)- {"STRATA_REFILL_PARTS", "1"}, // the prompt's lent slots refilled from the GGUF mapping's pieces, not an assembled copy: same bytes, refill 217 -> 105 ms at 4K, 589 -> 322 ms at 32K// decode{"STRATA_Q8_PACKED", "1"}, // the packed Q8_0 decode layout: +2.3% (S26){"STRATA_Q6_PACKED", "1"}, // the packed Q6_K heads (S26)