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++
Verify window: the interleaved q8_1 projections (STRATA_MMVQ_IL) are opt-in again
Niko1221f7610d2c3251
diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex d385aa107..3aa84fc40 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -1074,6 +1074,8 @@ without penalties, so more of its guesses are now rejected. Requests without pen**Sampled drafting (opt-in, 0.1.40.2).** With temperature above 0 the engine keeps a draft only when it equals the token the model sampled for that position, and the draft layer proposes its best guess. Two opt-in switches change how the draft layer drafts a sampled request; greedy requests (temperature 0) are never touched and stay byte-identical. `STRATA_SPEC_COUPLED=1` (or `--coupled-draft`) drafts by sampling with the request's own settings and the random number the checking row will use; the text for a seed does not change. `STRATA_SPEC_PROB=1` is speculative rejection sampling: the draft layer samples its guess from its own distribution q, the check accepts it with probability min(1, p/q) (p is the model's distribution after penalties, top_k, top_p, min_p and temperature) and otherwise samples the replacement from the leftover distribution, so every token is distributed exactly as without drafts (the text for a seed then depends on the drafts, so it is reproducible only for the same engine, flags and prompt). Guesses without a distribution (prompt lookup, suffix drafts) keep the exact-match rule, which is already exact. Neither is faster in a way that holds up: on an RTX 3060 (IQ3_XXS, 200-token story and code answers, 10 interleaved pairs) the default's median output speed was 42.4 / 43.2 / 43.3 tok/s at temperature 0.3 / 0.7 / 1.0, coupled drafting 40.6 / 42.4 / 43.3 and rejection sampling 41.0 / 42.6 / 42.6, with run-to-run differences of up to 5% between repeats; drafts kept per round fell at 0.3 and rose by about 5 points at 1.0, which the cost of the longer sampled windows ate. `STRATA_SPEC_DEPTH=1` prints the acceptance by draft depth for each request; `STRATA_SPEC_MIN_TEMP=0.9` limits sampled drafting to hotter requests. Proof that the rejection rule keeps the distribution: `spec_prob_test` (chi-square, 2 million trials per case) and `spec_verify_parity` (GPU against the host reference).+**Interleaved verify projections (opt-in, `STRATA_MMVQ_IL=1`; default changed in 0.1.40.3).** In the 2-4 token verify window the IQ4_XS, Q4_K, Q5_K and Q6_K dense projections (and the draft head) can read an interleaved copy of the q8_1 activations, so each weight block is decoded once for all columns. The outputs are bitwise the same either way. 0.1.40.2 turned it on by default after single-GPU measurements (+4.2% decode on an RTX 3060, +1.3 to +2.2% on an RTX 5070); a report on a two-GPU layer split (RTX 4080 SUPER + RTX 5070 Ti, Windows, #1373) measured it 15% slower (108.3 against 124.6 tok/s with it off, a back-to-back pair five minutes apart), so it is off by default until a layer split is measured with it on. The reporter later withdrew the cross-version comparison (their machine's run-to-run spread that evening was 70%, which also covers this pair), so the cost on a split is unconfirmed, not disproved. Set `STRATA_MMVQ_IL=1` to use it; the kernel check is `mmvq_il_parity`.+---### The Responses API and Codex CLIdiff --git a/src/core/verify.cpp b/src/core/verify.cppindex 6b805694a..23fc4893f 100644--- a/src/core/verify.cpp+++ b/src/core/verify.cpp@@ -69,8 +69,9 @@ inline bool g_lfuse_pair() { static const bool on = [] { const char* v = std::geinline bool g_qdedup() { static const bool on = [] { const char* v = std::getenv("STRATA_VERIFY_QDEDUP"); return v != nullptr && std::atoi(v) != 0; }(); return on; }// S26 STRATA_QFUSE=1: activation q8_1 images written by their producers (the GDN output norm) - the same bytes// fork F4 (Eddoursul): 2-4 token dense projections read an interleaved copy of the q8_1 activations (bitwise the same-// outputs); STRATA_MMVQ_IL=0 keeps native_mmvq's multi-column kernels-inline bool g_mmvq_il() { static const bool on = [] { const char* v = std::getenv("STRATA_MMVQ_IL"); return v == nullptr || v[0] != '0'; }(); return on; }+// outputs). OPT-IN (STRATA_MMVQ_IL=1; 0.1.40.3): it measured +4.2% on one sm_86 and +1.3-2.2% on one sm_120, but a+// two-GPU layer split (sm_89 + sm_120) was reported slower (#1373), so it is off until it is measured there.+inline bool g_mmvq_il() { static const bool on = [] { const char* v = std::getenv("STRATA_MMVQ_IL"); return v != nullptr && v[0] == '1'; }(); return on; }inline bool g_qfuse() { static const bool on = [] { const char* v = std::getenv("STRATA_QFUSE"); return v != nullptr && std::atoi(v) != 0; }(); return on; }#define VDBG(...) do { if (g_dbg) { std::fprintf(stderr, "verify dbg: " __VA_ARGS__); std::fflush(stderr); } } while (0)