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

perf(prefill): allow explicit routed-only staging for large chunks

Hasegawa Takuyae258e6ec5b7e
diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cpp
index 6731b3c81..bdfd9e7a6 100644
--- a/src/prefill/prefill.cpp
+++ b/src/prefill/prefill.cpp
@@ -82,6 +82,7 @@ double g_pinned_share = 1.0;
inline int ring_slots(size_t T) {
const char* v = std::getenv("STRATA_PREFILL_RING");
const int r = v ? std::atoi(v) : (g_pinned_share >= 0.9 ? 384 : 96);
+ if (v && r == STAGE) return STAGE; // Explicit opt-in to routed-only staging, including large chunks.
const int big = r < 16 ? 16 : r > RING_MAX ? RING_MAX : r;
return (int64_t) T >= STREAM_ALL_MIN ? big : STAGE;
}