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++
STRATA_ADAPT_OVERLAP: opt-in on Windows (RTX 5070, Q2_0: story -2.6%, code -2.1% with it, 5 pairs; IQ3_XXS neutral); Linux CUDA keeps it on
Niko12217c035d729f2e
diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex d3f20e7b3..a9abde4ad 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -1696,7 +1696,7 @@ the pairs in which the switched arm won). They are here so you can try them on y-0.1% (5/6). Boxes that hold all experts in RAM never use the stage buffers.- **`STRATA_ADAPT_LAG=2`: the adaptive tier's copies are waited for one window later** (#764). Decode, 6 pairs: Tesla P100(PCIe 3.0 x16) +3.5% (6/6 pairs faster), RTX 5070 +0.2% (4/6), RTX 3060 -1.3% (0/6), so it stays opt-in.-- **`STRATA_ADAPT_OVERLAP` (CUDA: on, `=0` turns it off; HIP: `=1` turns it on): the adaptive tier's copies land while the next+- **`STRATA_ADAPT_OVERLAP` (CUDA on Linux: on, `=0` turns it off; CUDA on Windows and HIP: `=1` turns it on, since an RTX 5070 on Windows decoded Q2_0 2.6% slower with it and IQ3_XXS no faster): the adaptive tier's copies land while the nextwindow runs, with the same tokens.** The window takes the swaps at the same moment as with #463's wait (so the same experts runon the GPU and the CPU in every window), but the copies go in layer order and the verify window holds a layer's plan backuntil that layer's copies have landed, instead of the whole window waiting for the round (about 10 ms every fourth window ondiff --git a/src/program/generate.cpp b/src/program/generate.cppindex 38380c32f..dfad1173f 100644--- a/src/program/generate.cpp+++ b/src/program/generate.cpp@@ -1337,8 +1337,10 @@ bool adapt_overlap() {const char* e = std::getenv("STRATA_ADAPT_OVERLAP");#if defined(STRATA_USE_HIP)return e && e[0] == '1'; // HIP: not measured yet, opt-in+#elif defined(_WIN32)+ return e && e[0] == '1'; // Windows CUDA: opt-in (RTX 5070, Q2_0: -2.6% story decode with it, IQ3_XXS neutral)#else- return !(e && e[0] == '0'); // CUDA: on since 0.1.43 (same tokens, +5.5..8.3% decode on an A4000); =0 turns it off+ return !(e && e[0] == '0'); // Linux CUDA: on since 0.1.43 (same tokens, +5.5..8.3% decode on an A4000, +4.4% P100); =0 turns it off#endif}();return v;