|
|
@@ -100,15 +100,29 @@ repo = "aidendle94/GLM-5.2-MXFP4-Experts-GPTQ"
|
|
|
[[composed_model.sources]]
|
|
|
repo = "aidendle94/GLM-5.2-NF4-Lloyd-Experts-GPTQ"
|
|
|
glob = "L*.safetensors"
|
|
|
+# Exclude the 5 layers with mis-packed experts (per model card known-defect
|
|
|
+# workaround). These layers' Lloyd repo L{n}.safetensors contain 255 Lloyd-
|
|
|
+# coded experts + 1 E2M1 expert — decoding as E2M1 (which nf4_layers.json
|
|
|
+# does) would garbage-decode the 255 Lloyd experts. Instead, skip the Lloyd
|
|
|
+# overlay for these files so the MXFP4 base's all-E2M1 L{n}.safetensors
|
|
|
+# survives, and the excluded-from-NF4 E2M1 decode path matches their bytes.
|
|
|
+exclude = [
|
|
|
+ "L5.safetensors",
|
|
|
+ "L8.safetensors",
|
|
|
+ "L9.safetensors",
|
|
|
+ "L32.safetensors",
|
|
|
+ "L46.safetensors",
|
|
|
+]
|
|
|
|
|
|
# NF4 layer list — all 75 MoE layers (3–77) EXCEPT the 5 layers with a
|
|
|
# known packing defect (per model card 2026-07-27). Layers 5, 8, 9, 32, 46
|
|
|
# each contain 1 expert whose bytes were packed with E2M1/MXFP4 nibbles
|
|
|
-# (quantizer arm won per-expert, but decoding is per-layer). Routing those
|
|
|
-# layers through the Lloyd NF4 decode path introduces ~10.5% relative weight
|
|
|
-# error on the mis-packed expert. Excluding them forces E2M1 decode, matching
|
|
|
-# their actual bytes. Layer 10 had the same defect but was already caught +
|
|
|
-# fixed upstream by the packing guard, so it stays in the NF4 set.
|
|
|
+# (quantizer arm won per-expert, but decoding is per-layer). These layers
|
|
|
+# are ALSO excluded from the Lloyd source above (exclude = [...]) so the
|
|
|
+# MXFP4 base's all-E2M1 L{n}.safetensors survives — decoding as E2M1
|
|
|
+# (which this list does) matches their bytes. Layer 10 had the same defect
|
|
|
+# but was already caught + fixed upstream by the packing guard, so it
|
|
|
+# stays in the NF4 set.
|
|
|
# Ref: https://huggingface.co/aidendle94/GLM-5.2-NF4-Lloyd-Experts-GPTQ
|
|
|
# ("Known defect: 5 experts are packed on the wrong grid")
|
|
|
[[composed_model.files]]
|