← back to catalog · registered 2026-10-19 10:00

junmo-k/GLM-5.3-Flash-FP4-Local-Piecrust-Abliterated-MLX

junmo-k Glm MoE multimodal second-order
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/junmo-k%2FGLM-5.3-Flash-FP4-Local-Piecrust-Abliterated-MLX"
Response includes
  • classification m-uncensored
  • files 102
  • author_summary 2 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M-U
Primary method

Uncensored (method unknown)

No other method signals detected in this model.
Confidence
LOW
Why this label 3 signals
Weak or ambiguous signals. Best guess based on catalog patterns; treat as tentative and check the evidence below.
  • 'uncensored' in name/tags but no 'abliterated' marker
  • method not identifiable from author declaration alone
  • may be DPO fine-tune, prompt engineering, or unknown technique
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · 30-day
0
Likes
0
Model age
today
created 2026-10-19

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
other
Languages
en ko zh
Tags
mlx safetensors glm5_next apple-silicon glm glm-5.3 moe nvfp4 mxfp8 qad mtp uncensored

Related

Total size
174 GB
Files
102
Quantizations
1
Registered
2026-10-19 10:00
Last updated on HF
2026-10-19 09:36

Files by quantization

Auxiliary files 102 files 174 GB
model-layer10-experts.safetensors 3.80 GB 87b4307a download
model-layer11-experts.safetensors 3.80 GB 869d9ea1 download
model-layer12-experts.safetensors 3.80 GB cb1dbf68 download
model-layer13-experts.safetensors 3.80 GB 5ffac91d download
model-layer14-experts.safetensors 3.80 GB a8107feb download
model-layer15-experts.safetensors 3.80 GB f78501aa download
model-layer16-experts.safetensors 3.80 GB c7ae9e0b download
model-layer17-experts.safetensors 3.80 GB 451ed8b7 download
model-layer18-experts.safetensors 3.80 GB cba0e571 download
model-layer19-experts.safetensors 3.80 GB 9870d194 download
model-layer20-experts.safetensors 3.80 GB 2b21437d download
model-layer21-experts.safetensors 3.80 GB a8fd8a70 download
model-layer22-experts.safetensors 3.80 GB 29a271e8 download
model-layer23-experts.safetensors 3.80 GB 4f6ed2b9 download
model-layer24-experts.safetensors 3.80 GB 57533fda download
model-layer25-experts.safetensors 3.80 GB 284f20ed download
model-layer26-experts.safetensors 3.80 GB b22a1a54 download
model-layer27-experts.safetensors 3.80 GB 04d8e075 download
model-layer28-experts.safetensors 3.80 GB e4741dfa download
model-layer29-experts.safetensors 3.80 GB 390edec4 download
model-layer30-experts.safetensors 3.80 GB 7b23c935 download
model-layer31-experts.safetensors 3.80 GB 9f6eb9f1 download
model-layer32-experts.safetensors 3.80 GB 334e5a5f download
model-layer33-experts.safetensors 3.80 GB 8cdf30b1 download
model-layer34-experts.safetensors 3.80 GB a9883178 download
model-layer35-experts.safetensors 3.80 GB 68ed89e5 download
model-layer36-experts.safetensors 3.80 GB 7345064e download
model-layer37-experts.safetensors 3.80 GB 9a464a7b download
model-layer38-experts.safetensors 3.80 GB e20bb476 download
model-layer39-experts.safetensors 3.80 GB 089c39b9 download
model-layer40-experts.safetensors 3.80 GB b5b46a26 download
model-layer41-experts.safetensors 3.80 GB 405b46b4 download
model-layer42-experts.safetensors 3.80 GB 0ab57171 download
model-layer43-experts.safetensors 3.80 GB 6fd4766b download
model-layer44-experts.safetensors 3.80 GB d4fc7f16 download
model-layer03-experts.safetensors 3.80 GB a35b955e download
model-layer04-experts.safetensors 3.80 GB f5761d9b download
model-layer05-experts.safetensors 3.80 GB 30feb5ec download
model-layer06-experts.safetensors 3.80 GB b9b4f321 download
model-layer07-experts.safetensors 3.80 GB 103cbef1 download
model-layer08-experts.safetensors 3.80 GB e5c99e11 download
model-layer09-experts.safetensors 3.80 GB e9be9b0c download
model-mtp-experts.safetensors 3.80 GB 3a017ef9 download
model-misc.safetensors 1.79 GB 84251f9b download
model-vision.safetensors 1.05 GB ad007b15 download
model-layer00.safetensors 290 MB 26b0b9b2 download
model-layer01.safetensors 290 MB cf5e5b64 download
model-layer02.safetensors 290 MB 2b3b46b4 download
model-mtp.safetensors 232 MB ee962d80 download
model-layer11.safetensors 181 MB c6345ec8 download
model-layer15.safetensors 181 MB adb8bf16 download
model-layer19.safetensors 181 MB 8bc2573b download
model-layer23.safetensors 181 MB 4bff3a83 download
model-layer27.safetensors 181 MB 9aa8208f download
model-layer31.safetensors 181 MB 1f2e358c download
model-layer35.safetensors 181 MB df68186b download
model-layer39.safetensors 181 MB a035d24a download
model-layer43.safetensors 181 MB 5b237aa9 download
model-layer03.safetensors 181 MB a5dd4f2f download
model-layer07.safetensors 181 MB badc509f download
model-layer10.safetensors 172 MB 517b1f75 download
model-layer12.safetensors 172 MB 0f06139c download
model-layer13.safetensors 172 MB eed27a07 download
model-layer14.safetensors 172 MB 9b3e13d0 download
model-layer16.safetensors 172 MB ee31d3e5 download
model-layer17.safetensors 172 MB 6947df66 download
model-layer18.safetensors 172 MB 4f6f79bc download
model-layer20.safetensors 172 MB b21615ca download
model-layer21.safetensors 172 MB 95a0b2ab download
model-layer22.safetensors 172 MB eb41b318 download
model-layer24.safetensors 172 MB ea98c4e0 download
model-layer25.safetensors 172 MB b06b4c65 download
model-layer26.safetensors 172 MB 00a48bb5 download
model-layer28.safetensors 172 MB 8e152368 download
model-layer29.safetensors 172 MB 1ffbae6c download
model-layer30.safetensors 172 MB f44c80d5 download
model-layer32.safetensors 172 MB 2c827463 download
model-layer33.safetensors 172 MB cf999ee0 download
model-layer34.safetensors 172 MB 65740485 download
model-layer36.safetensors 172 MB b9de078f download
model-layer37.safetensors 172 MB 48c2250a download
model-layer38.safetensors 172 MB 654b7997 download
model-layer40.safetensors 172 MB 058995d4 download
model-layer41.safetensors 172 MB 2943e7b8 download
model-layer42.safetensors 172 MB d628781c download
model-layer44.safetensors 172 MB 3b176eeb download
model-layer04.safetensors 172 MB 70e2162b download
model-layer05.safetensors 172 MB 7d6ee9bb download
model-layer06.safetensors 172 MB 61c98522 download
model-layer08.safetensors 172 MB 50c76e69 download
model-layer09.safetensors 172 MB 0ff3f14b download
tokenizer.json 19.3 MB 19e77364 download
model.safetensors.index.json 217 KB aaeef31b download
config.json 124 KB fe82b9ba download
chat_template.jinja 10.7 KB 06bd89e9 download
README.md 9.65 KB 58234f18 download
LICENSE 7.70 KB ee2d8c87 download
.gitattributes 1.53 KB 52373fe2 download
processor_config.json 909 B 3ec2a058 download
tokenizer_config.json 761 B e375fa0a download
NOTICE 752 B fcfc358c download
generation_config.json 194 B 637ee6af download

README current version from Hugging Face


license: other
license_name: nvidia-open-model-agreement
license_link: LICENSE
base_model: Piecrust/GLM-5.3-Flash-FP4-Abliterated
base_model_relation: quantized
library_name: mlx
pipeline_tag: image-text-to-text
language:

  • en
  • ko
  • zh
    tags:
  • mlx
  • apple-silicon
  • glm
  • glm-5.3
  • moe
  • nvfp4
  • mxfp8
  • qad
  • mtp
  • uncensored
  • abliterated

GLM-5.3-Flash-FP4-Local-Piecrust-Abliterated-MLX

An MLX repack of Piecrust/GLM-5.3-Flash-FP4-Abliterated (rev 5c15d091), which applies a rank-1 refusal-direction edit to 44 matrices (self_attn.o_proj and mlp.shared_experts.down_proj, layers 15-36) of nvidia/GLM-5.3-Flash-FP4-Local (rev 76348ddb), NVIDIA's quantization-aware-distilled (QAD) NVFP4 build of zai-org/GLM-5.3-Flash (320B total, about 18B active). The routed experts keep NVIDIA's trained NVFP4 values byte for byte; only the container changes. It was built and measured on an Apple M5 Ultra (256GB) with oMLX.

The non-abliterated twin is junmo-k/GLM-5.3-Flash-FP4-Local-MLX; the two share every routed-expert file byte for byte and differ only in the 22 small non-expert files of layers 15-36.

On our held-out set it scores 1.47% lower NLL than our own 158GiB uncensored mixed-precision MLX build (JK v4), and the abliteration edit costs +0.46% NLL against the unedited twin, at the cost of 12-24% slower decode and about 13GB more peak memory (details below).

Loading needs a small oMLX patch (see Requirements): stock oMLX has no place for the per-expert weight_scale_2 in GLM's switch layers yet.

Not affiliated with NVIDIA, Z.AI, Piecrust or Huihui.

Layout

Part Stored as Source
Routed experts, layers 3-44 and the MTP layer (gate_proj / up_proj / down_proj) MLX nvfp4 (E2M1, E4M3 scale per 16) plus weight_scale_2 per expert (f32) NVIDIA's NVFP4 bytes unchanged. The csf_32x2_v1 compressed block scales are decoded with the FlashInfer reference codec; weight_scale_2 is copied as is.
KDA attention projections, dense MLPs (layers 0-2), lm_head, MTP attention, MTP shared expert, MTP indexer MLX mxfp8 (E4M3, E8M0 scale per 32) NVIDIA's MXFP8 bytes unchanged
Shared experts (layers 3-44), DSA q_a_proj / q_b_proj / kv_a_proj_with_mqa / o_proj 8-bit affine, group 64 NVIDIA's FP8 with 128x128 block scales, dequantized and re-encoded (cosine to the source 0.99996 on a sampled matrix). MLX has no 128x128 block mode.
DSA kv_b_proj BF16, split into embed_q / unembed_out BF16 source (main layers) or MXFP8 (MTP layer), split the same way oMLX does at load
Vision tower BF16 NVFP4 / MXFP8 source, dequantized
Embeddings, routers, KDA gate / conv / state parameters, hyper-connections, indexer Source precision (BF16 / F32) Unchanged
RMSNorm weights stored as F32 in the source BF16 Narrowed so oMLX's 16-bit fused paths apply

Each MoE layer's routed experts sit in their own *-experts.safetensors file. 174.33 GiB in total.

Requirements

  • oMLX with per-expert weight_scale_2 support in its GLM SwitchGLU. The patch below (14 changed lines) is what we ran, on oMLX 6feea9f9 with MLX 0.32.3 and mlx-vlm 0.7.7. MLX's gather_qmm takes the per-expert amax as global_scale, so the scale is applied inside the kernel.
  • Newer oMLX main pins mlx-vlm 0.7.8, whose loader handles weight_scale_2 itself and only for its own switch class, so this patch alone is not enough there. An upstream PR that covers that path is being prepared; this card will link it.
  • Loading this checkpoint with stock mlx-vlm (outside oMLX) has not been tested.
oMLX patch
diff --git a/omlx/patches/deepseek_v4/switch_layers.py b/omlx/patches/deepseek_v4/switch_layers.py
index 10be70146..b7aabd497 100644
--- a/omlx/patches/deepseek_v4/switch_layers.py
+++ b/omlx/patches/deepseek_v4/switch_layers.py
@@ -223,6 +223,10 @@ class QuantizedSwitchLinear(nn.Module):
         self.group_size = group_size
         self.bits = bits
         self.mode = mode
+        if mode == "nvfp4":
+            # ModelOpt two-level NVFP4: one f32 ``weight_scale_2`` per expert
+            # (the mlx-vlm >= 0.7.8 checkpoint key), loaded from the checkpoint.
+            self.weight_scale_2 = mx.ones((num_experts,), dtype=mx.float32)
 
         self.freeze()
 
@@ -330,6 +334,10 @@ class QuantizedSwitchLinear(nn.Module):
                     block_variant,
                 )
         else:
+            extra = {}
+            if "weight_scale_2" in self:
+                # gather_qmm takes the per-expert amax; weight_scale_2 = amax / (6 * 448).
+                extra["global_scale"] = self["weight_scale_2"] * (6.0 * 448.0)
             x = mx.gather_qmm(
                 x,
                 self["weight"],
@@ -341,6 +349,7 @@ class QuantizedSwitchLinear(nn.Module):
                 bits=self.bits,
                 mode=self.mode,
                 sorted_indices=sorted_indices,
+                **extra,
             )
         if "bias" in self:
             x = x + mx.expand_dims(self["bias"][indices], -2)
diff --git a/omlx/patches/m5_gather_qmm.py b/omlx/patches/m5_gather_qmm.py
index f4385268b..2bd412ba0 100644
--- a/omlx/patches/m5_gather_qmm.py
+++ b/omlx/patches/m5_gather_qmm.py
@@ -197,6 +197,9 @@ def _nax_sorted_gather_qmm(x, w, args, kwargs):
 
 
 def _gather_qmm_rerouted(x, w, *args, **kwargs):
+    if kwargs.get("global_scale") is not None:
+        # The NAX reroute has no global scale input; keep MLX's kernel.
+        return _original_gather_qmm(x, w, *args, **kwargs)
     if kwargs.get("sorted_indices") and _on_nax_host():
         out = _nax_sorted_gather_qmm(x, w, args, kwargs)
         if out is not None:
@@ -270,6 +273,8 @@ def fused_gate_up_activation(proj, x, indices, activation, token_rows=None):
         return None
     if "bias" in proj or not all(hasattr(proj, a) for a in ("group_size", "bits")):
         return None
+    if "weight_scale_2" in proj:
+        return None
     w = proj.get("weight")
     scales = proj.get("scales")
     if not isinstance(w, mx.array) or not isinstance(scales, mx.array):

Evaluation

Setup: M5 Ultra 256GB, oMLX 6feea9f9 plus the patch, MLX 0.32.3, mlx-vlm 0.7.7. The baseline is JK v4 (junmo-k/GLM-5.3-Flash-UNCENSORED-JK-oQ3.5e), our 158GiB oQ3.5e GPTQ build. JK v4 is built from a different uncensored derivative (dealignai), so both sides carry a weight edit, made by different methods.

Held-out NLL

240 teacher-forced 512-token windows in two disjoint sets of 120 (10 categories x 12: English, code, reasoning, chat, tool calling, Chinese, Korean, and three categories from private Korean/English working notes). Windows are paired across models; intervals are 95% window bootstrap.

Set JK v4 Unedited twin This model Change vs JK v4 95% interval Change vs twin 95% interval
A 1.66713 1.63768 1.64543 −1.30% [−1.89%, −0.73%] +0.47% [+0.23%, +0.73%]
B 1.73188 1.69607 1.70377 −1.62% [−2.09%, −1.18%] +0.45% [+0.23%, +0.69%]
A + B 1.69950 1.66688 1.67460 −1.47% [−1.84%, −1.10%] +0.46% [+0.30%, +0.63%]

Against JK v4, 9 of 10 categories improve (chat +0.3%); 177 of 240 windows improve. Against the unedited twin, only tool calling improves (−0.5%).

Speed and memory

Measured on this checkpoint. ABBA x2 through llama-swap, cold load each round, MTP on (adaptive depth), 512-token outputs; 4 baseline rounds and 3 valid candidate rounds (one candidate round was discarded because an unrelated request preempted it).

Metric JK v4 This build Ratio
Prefill 8K / 32K (tok/s) 2,087 / 2,179 1,946 / 2,116 0.93 / 0.97
Decode, temperature 0, prose / code (tok/s) 85.1 / 83.8 68.4 / 74.0 0.80 / 0.88
Decode, temperature 1, prose / code (tok/s) 78.9 / 82.2 64.0 / 68.2 0.81 / 0.83
Aggregate, 1 / 8 concurrent (tok/s) 85.5 / 126.8 65.1 / 110.6 0.76 / 0.87
Peak wired memory during the run 185.4 GB 198.1 GB +12.7 GB
MLX active memory after load 158.2 GiB 174.3 GiB +16.2 GiB
MTP draft acceptance about 70%

Most of the decode gap is expected from bytes read per token (experts at 4.5 bpw versus about 4.1 bpw in JK v4, attention at MXFP8 versus 6-bit), and from oMLX's fused GLM decode kernels being affine-only, so NVFP4 and MXFP8 run on MLX's generic paths. This split is an estimate, not a measurement.

Checks

  • All routed-expert tensors sampled (36 matrices across layers 3, 23, 44 and MTP) match an independent decode of the source bytes exactly; MXFP8 tensors and the kv_b_proj split match exactly.
  • The patched SwitchGLU matches a float32 dequantized reference within bf16 tolerance on decode, sorted prefill and fused gate/up paths.
  • Functional smoke tests (Korean, arithmetic, code, tool calling) pass.

License

NVIDIA Open Model Agreement (see LICENSE and NOTICE). Licensed by NVIDIA Corporation under the NVIDIA Open Model Agreement. GLM-5.3-Flash by Z.ai is MIT-licensed; the Huihui abliteration that Piecrust re-applied is MIT-licensed.

Acknowledgements

NVIDIA for the QAD checkpoint, Piecrust and Huihui for the abliteration, Z.ai for GLM-5.3-Flash, the FlashInfer / Local Inference Lab csf_32x2_v1 reference codec, and mlx-serve, which first ran this checkpoint on Apple Silicon.

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration