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++
gfx12: the fused int8 prompt experts are on by default for IQ3_S and IQ3_XXS packs; STRATA_PF_FUSED=0 turns them off
Niko12215a66924d8d85
diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex 3f673bff7..e47f04784 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -1903,3 +1903,5 @@ The page uses relative URLs and works through the existing host binding or a rev### Prompt buffers: `bo` shares `emb` (#1454)The prompt path's half-output buffer `bo` reuses the embedding buffer `emb`, which is dead after the first hyper-connection broadcast: T x 2560 floats less VRAM per chunk (320 MiB at 32768 rows). The planner still counts those bytes by default, so the auto chunk and the cache slots the prompt path borrows are exactly those of 0.1.40.3 and the output bits are unchanged. `STRATA_EMB_REUSE_ACCOUNT=1` lets the planner use the saved bytes: where VRAM limits the chunk it grows (RTX 3060, IQ3_XXS: 6400 to 6656 tokens, 1652 to 1670 borrowed slots, prompt about +3.9%). A different chunk changes the prompt path's rounding, so prompt residuals are not byte-identical to the default; greedy output matched in our runs. Opt-in until it has a KL measurement.++**Fused int8 prompt experts on gfx12 (RDNA4, R9700): on by default for IQ3_S and IQ3_XXS packs.** `STRATA_PF_FUSED=0` turns them off (back to the MMQ prompt kernels, the previous bits). R9700, 1 card: prompt 4K +15.7%, 16K +13..+17%, 32K +19..+20%, a 96K prompt +16% (answers identical text); first-token KL against the FP16 prompt path over 96 prompts is equal to MMQ within noise (IQ3_XXS 0.00613 against 0.00683, IQ3_S 0.00416 against 0.00372). Other quants and other GPUs are unchanged; `STRATA_PF_FUSED=1` still opts in every covered format.diff --git a/src/prefill/moe_fused_iq.cu b/src/prefill/moe_fused_iq.cuindex e22b927cd..c28a0fb3e 100644--- a/src/prefill/moe_fused_iq.cu+++ b/src/prefill/moe_fused_iq.cu@@ -1122,12 +1122,19 @@ bool native_supported(int gu_type, int d_type) {}();// gfx12: fused::available() (the Q2_0 pack's expert_w11_kernel, not ported) stays false, so requested() does too; the// same opt-in (STRATA_PF_FUSED=1) is read here. Every other device: requested() as before.- static const bool env = [] {+ // unset: on by default on gfx12 for IQ3_S and IQ3_XXS gate/up only (R9700: prompt +13..+20%, first-token KL against the FP16 prompt+ // path equal to MMQ's within noise, 96 prompts each); STRATA_PF_FUSED=0 turns it off, =1 keeps the opt-in for every covered format+ static const int env = [] {const char* v = std::getenv("STRATA_PF_FUSED");- return v != nullptr && v[0] == '1';+ return v == nullptr || v[0] == '\0' ? -1 : (v[0] == '1' ? 1 : 0);}();- if (off || !env || !gu_covered(gu_type) || !d_covered(d_type)) return false; // opt-in (=1): no device query without it+ if (off || env == 0 || !gu_covered(gu_type) || !d_covered(d_type)) return false;+#if !defined(__HIPCC__)+ if (env < 0) return false; // the default is gfx12 (HIP) only+#endif+ if (env < 0 && gu_type != T_IQ3_S && gu_type != T_IQ3_XXS) return false; // default: only these twoconst DevInfo& d = dev_info();+ if (env < 0) return d.ok && d.w12;return d.ok && (requested() || d.w12);}