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

load_experts_gguf: the header declares the new parameter

sergiywithe55b9676d788
diff --git a/include/strata/core/expert_source.hpp b/include/strata/core/expert_source.hpp
index 307edd986..49d35509b 100644
--- a/include/strata/core/expert_source.hpp
+++ b/include/strata/core/expert_source.hpp
@@ -648,7 +648,8 @@ private:
/// layout's type and dimensions, and inside the file. `native` is the --native shard (see set_gguf).
bool check_experts_gguf(const std::string& native, const strata::kernels::cpu::ExpertLayout& lay, std::string& err);
/// Fills `dst` (lay.total bytes, the experts.bin layout) from the GGUF files, one role at a time.
+/// `unbuffered`: each chunk read past the file cache (Windows).
LoadStats load_experts_gguf(const std::string& native, uint8_t* dst, const strata::kernels::cpu::ExpertLayout& lay,
- int threads);
+ int threads, bool unbuffered = false);
} // namespace strata::core
diff --git a/src/core/expert_source.cpp b/src/core/expert_source.cpp
index e69b9b560..e091cf9e8 100644
--- a/src/core/expert_source.cpp
+++ b/src/core/expert_source.cpp
@@ -2118,7 +2118,7 @@ bool check_experts_gguf(const std::string& gguf, const strata::kernels::cpu::Exp
// `unbuffered` (Windows, experts_unbuffered): each chunk's 4 KiB-aligned window is read with FILE_FLAG_NO_BUFFERING into
// an aligned buffer and scattered into the blobs - no copy through the file cache when the drive is read anyway.
LoadStats load_experts_gguf(const std::string& gguf, uint8_t* dst, const strata::kernels::cpu::ExpertLayout& lay,
- int threads, bool unbuffered = false) {
+ int threads, bool unbuffered) {
LoadStats st;
st.layers = (uint64_t) lay.n_layers;
const auto t0 = std::chrono::steady_clock::now();