Skip to content

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++

#283 follow-up: STRATA_PREFILL_BF16X2 defaults to 0 (off) - the prompt path's numbers stay 0.1.31's

Niko12217d746a088775
diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cpp
index 6f53169ab..bd8ae5e72 100644
--- a/src/prefill/prefill.cpp
+++ b/src/prefill/prefill.cpp
@@ -97,12 +97,12 @@ constexpr int DQ = 2; // dequantized-expert ring (FP16 gate/up + do
// The BF16-weight projections (hyper-connection, SSM alpha/beta, indexer, router, shared gate, PLE key/value) take
// BF16 activations here and FP32 ones in decode. STRATA_PREFILL_BF16X2=1 adds each activation's BF16 remainder as a
// second GEMM (Y = W.hi + W.lo, ~16 mantissa bits): a router that picks its top 10 from the same x decode would.
-// 2 (the default) = all but the hyper-connection's; 1 = the hyper-connection's too (its activations are 10240 wide
-// and its up projection writes as much: slower); 0 = off.
+// 2 = all but the hyper-connection's; 1 = the hyper-connection's too (its activations are 10240 wide and its up
+// projection writes as much: slower); 0 (the default: opt-in, it changes the prompt path's numbers) = off.
inline int bf16x2_mode() {
static const int v = [] {
const char* e = std::getenv("STRATA_PREFILL_BF16X2");
- return e != nullptr ? std::atoi(e) : 2;
+ return e != nullptr ? std::atoi(e) : 0;
}();
return v;
}