native packs: a BF16 (--compat-bf16) PLE key stays in the arena and is not replaced by the GGUF key (#326)

Since 0.1.25 NativeDense treats an IQ3_XXS/IQ4_XS/Q8_0 GGUF key as native, so for a native pack the loader
skipped the pack's key row and then refused the BF16 row iq_pack --compat-bf16 writes for OrcaRouter's IQ3_XXS
key ("native dense: incompatible matrix blk.1.ple_key.weight"). NativeDense::keep_unquantized_ple_key reads the
key row's code_bits from index.txt (WeightTable::index_code_bits) and keeps an unquantized row in the arena;
NativeDense::load does not upload the GGUF key over it, and the PLE uses the BF16 key as before 0.1.25. A
quantized key row (Q2_0, UD-Q4_K_XL packs) is unchanged; the GSQ packs' GGUF keys are BF16 (not eligible), so
they never reach this path. The reporter's fallback (Gen4536). Test: native_dense_ple_key_test (synthetic GGUF
+ pack, CUDA).
This commit is contained in:
Niko1221 committed 2026-10-01 08:29:03 +02:00
1 parent 75780af235
commit abfb05cfbe
7 files changed
+224

No files matched your search

+5
View File
@@ -1764,6 +1764,11 @@ int main(int argc, char** argv) {
if (!o.native_head_gguf.empty()) skip.insert("output.weight");
// the PLE module validates its canonical key at construction (8 MB); a native pack has none to load
if (!native_pack) skip.erase("blk.1.ple_key.weight");
// #326: a --compat-bf16 pack (OrcaRouter IQ3_XXS) keeps its BF16 key in the arena
if (native_pack && !strata::core::NativeDense::keep_unquantized_ple_key(o.pack, skip, err)) {
std::fprintf(stderr, "strata generate: %s\n", err.c_str());
return 1;
}
if (native_pack) skip.insert("token_embd.weight");
}
uint64_t pool_bytes = 0;