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

File tier: the #577 re-check's log line on Windows only (the unbuffered reads exist there alone)

Niko12214e413b344e87
diff --git a/src/program/generate.cpp b/src/program/generate.cpp
index df49bdeab..b342b6fbd 100644
--- a/src/program/generate.cpp
+++ b/src/program/generate.cpp
@@ -4178,7 +4178,9 @@ int main(int argc, char** argv) {
}
// #577: the unbuffered choice above was made before the RAM copy existed, from the budget asked for; now the
// copy is built, decide again from the RAM it really holds and the expert bytes outside it (on a 96 GB PC
- // the file cache keeps those, and every refill after a prompt read the drive instead)
+ // the file cache keeps those, and every refill after a prompt read the drive instead). Windows only: the
+ // unbuffered reads exist there alone
+#if defined(_WIN32)
if (o.mmap_experts && o.resident_budget > 0) {
std::string why;
const bool was = src.unbuffered();
@@ -4186,6 +4188,7 @@ int main(int argc, char** argv) {
std::fprintf(stderr, "strata generate: the file tier reads %s%s (%s)\n",
ub ? "unbuffered" : "through the file cache", ub == was ? "" : " (changed)", why.c_str());
}
+#endif
}
if (o.serve) {
if (o.spec < 2 || o.mtp.empty() || o.prefill_chunk <= 0 ||