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

native dense: run the architecture guard only on the first shard of a split

jollyroger1480ccfdc2ebefbc
diff --git a/src/core/native_dense.cpp b/src/core/native_dense.cpp
index ffa9bdae1..e760e5d39 100644
--- a/src/core/native_dense.cpp
+++ b/src/core/native_dense.cpp
@@ -155,7 +155,8 @@ bool NativeDense::load(const std::vector<std::string>& shards, WeightTable& tabl
const auto* count = gguf.get("split.count");
const auto* number = gguf.get("split.no");
const auto* tensors = gguf.get("split.tensors.count");
- if (gguf.get("general.architecture")) {
+ if (gguf.get("general.architecture") && (!number || number->u == 0)) {
+ // splitter may copy general.architecture into every shard (Huihui abliterated re-split)
err = strata::check_architecture(gguf);
if (!err.empty()) return false;
have_architecture = true;