Merge f-quants into f-144-rel

This commit is contained in:
Niko1221 committed 2026-10-13 09:17:53 +02:00
commit 322df64128
19 files changed
+319 -84

No files matched your search

+9
View File
@@ -7011,6 +7011,15 @@ int main(int argc, char** argv) {
const bool ub = src.recheck_unbuffered(why);
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());
// MODEL-UPDATE round 2 (opt-in STRATA_PROMPT_DIRECT=1): the prompt path's batched reads unbuffered while
// decode keeps the file cache (z440, UD-Q4_K_XL, 39 GiB budget: all-unbuffered doubled the 6K prompt but
// cost decode 9-13%). The same bytes either way.
if (!ub && [] { const char* v = std::getenv("STRATA_PROMPT_DIRECT"); return v != nullptr && v[0] == '1'; }()) {
std::string pw;
const bool pd = src.open_prompt_direct(pw);
std::fprintf(stderr, "strata generate: the prompt path's expert reads %s\n",
pd ? "go unbuffered (STRATA_PROMPT_DIRECT=1)" : ("stay buffered: " + pw).c_str());
}
}
#endif
}