tools: qwen4_strata_to_gguf picks the dense format per tier (BF16 for Ultra, Q8_0 otherwise)

This commit is contained in:
Niko1221 committed 2026-12-04 08:26:09 +01:00
1 parent c1c785bf89
commit 0880e1c261
1 file changed
+3 -1
+3 -1
View File
@@ -58,7 +58,9 @@ def put_bf16(name, a):
n_t += 1
DENSE = os.environ.get("Q4S_DENSE", "bf16") # bf16 (default) or q8_0: the big matrices as GGML Q8_0 (half the bytes; the window's tuned Q8_0 kernels)
DENSE = os.environ.get("Q4S_DENSE", "auto") # bf16, q8_0 (the big matrices as GGML Q8_0: half the bytes, the window's tuned kernels) or auto: BF16 for Ultra (its KL is small enough that Q8_0 dense costs 12 %: gate +-10 %), Q8_0 for the other tiers
if DENSE == "auto":
DENSE = "bf16" if S.manifest.get("tier", "") == "ultra" else "q8_0"
def put_mat(name, a):