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

Merge mg/limits: images, control vectors, KV streaming, helper GPUs and mid-prompt checkpoints across GPUs

Niko1221cc02cdef73f3
diff --cc src/prefill/prefill.cpp
index 81eb292f4,153403ac1..1f0494689
--- a/src/prefill/prefill.cpp
+++ b/src/prefill/prefill.cpp
@@@ -1562,16 -1404,13 +1564,17 @@@ bool Prefill::run(const int64_t* tokens
std::fclose(f);
}
}
- if (on_chunk) {
+ if (on_chunk || on_stage_chunk) {
+ const auto toc = Clock::now();
if (cudaStreamSynchronize(m.cs) != cudaSuccess) {
err = std::string("prefill: ") + cudaGetErrorString(cudaGetLastError());
return false;
}
+ const auto toc2 = Clock::now();
- if (!on_chunk(m.R, T, p0, err)) return false;
+ if (on_stage_chunk && !on_stage_chunk(p0 + T, err)) return false;
+ if (on_chunk && !on_chunk(m.R, T, p0, err)) return false;
+ host_sync_ms += std::chrono::duration<double, std::milli>(toc2 - toc).count();
+ host_chunk_ms += ms_since(toc2);
}
}
if (next_run.valid() && !next_run.get()) { err = next_err; return false; }