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

spec: STRATA_SPEC_PROB gates --spec-min-p on the drawn draft's probability by default (STRATA_SPEC_PROB_GATE=top for q's top probability)

Niko1221589ccc4701de
diff --git a/include/strata/core/spec_prob.hpp b/include/strata/core/spec_prob.hpp
index 80c7d14a4..ab45e5552 100644
--- a/include/strata/core/spec_prob.hpp
+++ b/include/strata/core/spec_prob.hpp
@@ -39,12 +39,13 @@
namespace strata::core {
-/// STRATA_SPEC_PROB_GATE=pick: --spec-min-p gates a further draft on the drawn token's probability under q (default:
-/// q's top probability, how sure the draft head is).
+/// --spec-min-p gates a further draft on the drawn token's probability under q (as the coupled drafter does).
+/// STRATA_SPEC_PROB_GATE=top gates on q's top probability instead: measured on the RTX 3060 it drafts longer windows
+/// whose later guesses are kept less often, and decodes slower.
inline bool spec_gate_pick() {
static const bool on = [] {
const char* e = std::getenv("STRATA_SPEC_PROB_GATE");
- return e != nullptr && std::strcmp(e, "pick") == 0;
+ return e == nullptr || std::strcmp(e, "top") != 0;
}();
return on;
}