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

ckpt=0: still print STRATA_STATE_HASH for the request, so the parity gates see every request

Breno Perucchi600c4288215d
diff --git a/src/program/generate.cpp b/src/program/generate.cpp
index 5e4521673..907a23c6b 100644
--- a/src/program/generate.cpp
+++ b/src/program/generate.cpp
@@ -7295,7 +7295,7 @@ int main(int argc, char** argv) {
live_ok = o.prompt_cache > 0 && req_ckpt; // ckpt=0: nothing to continue or park (#830)
}
static const bool state_hash = std::getenv("STRATA_STATE_HASH") != nullptr;
- if (state_hash && live_ok) {
+ if (state_hash && !cancelled && o.prompt_cache > 0) { // every finished request, ckpt=0 too (parity gates)
// DEBUG: a fingerprint of every part of the session over the positions it holds ([0, L)), and
// separately of what lies past them in the last KV page (stale cells, fine unless something reads them)
if (cudaDeviceSynchronize() != cudaSuccess) {