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

Tests: STRATA_TEST_PINNED_SHARE sets the pinned share the prompt ring rule reads (#2090 repro)

Niko1221a86aa7476366
diff --git a/src/program/generate.cpp b/src/program/generate.cpp
index eeb842cb6..5070952d1 100644
--- a/src/program/generate.cpp
+++ b/src/program/generate.cpp
@@ -6287,7 +6287,9 @@ int main(int argc, char** argv) {
total += b;
if (srcp->pinned(l, e)) pinned += b;
}
- strata::prefill::Prefill::set_pinned_share(total ? (double) pinned / (double) total : 1.0);
+ double share = total ? (double) pinned / (double) total : 1.0;
+ if (const char* t = std::getenv("STRATA_TEST_PINNED_SHARE")) share = std::atof(t); // tests: the Windows-like ring rule
+ strata::prefill::Prefill::set_pinned_share(share);
}
// bytes -> slots for CUDA0's cache: exact when it knows its per-slot offsets (a native pack's blobs differ
// per layer), otherwise max_blob each.