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++
fix: defer pipelined one-token commits to the host verdict
CC-David-CCc81f99849e4c
diff --git a/src/core/verify.cpp b/src/core/verify.cppindex f96094a39..b148b68fa 100644--- a/src/core/verify.cpp+++ b/src/core/verify.cpp@@ -739,7 +739,8 @@ bool Verifier::record_window(int T, cudaStream_t cs, std::string& err) {const bool ple_on = ss.ple.ready() && ple_stage();auto Rt = [&](int t) { return R_ + (size_t) t * HC * N; };const int G = (split_ && T >= 2 && !batch_rec_) ? 2 : 1; // a batch window is one group- const bool self_commit = T == 1 && !batch_rec_ && !g_qfuse() && one_token_self_commit(); // see Verifier::commit+ // Pipelined windows must wait for the host verdict/snapshot fence before mutating state.+ const bool self_commit = T == 1 && !always_publish_ && !batch_rec_ && !g_qfuse() && one_token_self_commit(); // see Verifier::commitstatic const bool dec_batch = [] { const char* v = std::getenv("STRATA_DEC_BATCH"); return v == nullptr || std::atoi(v) != 0; }();auto stamp = [&](int64_t l, int i, int grp) {if (prof_on_ && grp == 0) gpu_stamp(prof_, (int) (l * kProfPer + i), cs);@@ -2294,7 +2295,7 @@ bool Verifier::commit(int n_keep, std::string& err) {h_commit_[0] = n_keep;h_commit_[1] = n_keep - 1;for (int t = 0; t < max_t_; ++t) h_commit_[2 + t] = t < n_keep ? (int32_t) (last_pos0_ + t) : -1;- if (last_t_ == 1 && one_token_self_commit()) {+ if (last_t_ == 1 && !always_publish_ && one_token_self_commit()) {// a one-token window has advanced the state itself (record_window): no commit graph} else {std::atomic_thread_fence(std::memory_order_seq_cst);