base_model:
- zai-org/GLM-5.3-Flash
- pqhaz/apex-flash-1-heretic-v2-FP8
base_model_relation: quantized
library_name: exllamav3
pipeline_tag: image-text-to-text
tags: - glm
- glm-5.3
- moe
- fp8
- exl3
- exllamav3
- quantized
- 2.0bpw
- k2
- mcg
- sm70
- v100
- heretic
- abliterated
- uncensored
- multimodal
license: mit
model-index: []
widget: []
GLM-5.3-Flash Apex (heretic v2) · EXL3 2.00 bpw (mcg, K=2) — for SM70 / V100
A fine-tuned, abliterated GLM-5.3-Flash: 306 GiB block-FP8 → 92.6 GiB. Routed experts at
exactly 2.00 bpw; every other linear deliberately left at FP16, because the SM70 EXL3 kernel
refuses quantised non-experts and reads only themcgcodebook.
| Parent | pqhaz/apex-flash-1-heretic-v2-FP8 — heretic/abliterated fine-tune, block-FP8 |
| Source revision | 579b25eb6c10d04be436ce3030fed68c41a9ab7a |
| Tool | stock exllamav3 v1.6.6, commit bd1f519 — no patches |
| Quantised | 36 288 expert matrices at exactly 2.00 bpw |
| Built on | 1× RTX PRO 6000 Blackwell (SM120), 6 h 21 min |
Sibling packs from the same toolchain: bullix/GLM-5.3-Uncensored-EXL3-2.0bpw-v100 (mcg, base
model) and bullix/GLM-5.3-Uncensored-EXL3-2.0bpw (mul1, modern cards). Different source
revisions, so their numbers are not directly comparable.
Why the bits are where they are
Three hard requirements of the V100 kernel shape this pack:
mcgonly —mul1is rejected at load.- Routed experts K ≤ 4, one K per MoE layer — K=2 everywhere here.
- Every non-expert linear arrives unquantised.
| Part | Rate | Share |
|---|---|---|
| Routed experts, 42 MoE layers | 2 bpw, K=2 | ≈94 % of params |
| MTP experts | 4 bpw (-mb 4) |
≈2 % |
MTP attention / shared / eh_proj |
8 / 8 / 6 bpw | fractions of a % |
Attention (KDA + sparse MLA), shared experts, dense MLP, lm_head |
FP16 | ≈3 % |
embed_tokens, vision tower |
FP16 | — |
Measured Final bitrate (excluding head): 2.00. Average across the whole directory is
≈2.34 bits/param — that is the price of the engine's FP16 requirement, not a choice.
The command
python convert.py \
-i glm_src -o glm_exl3_mcg_v100 -w glm_work_v100 \
-rcp recipe_v100.yaml -hb 16 -eb 16 -vb 16 -mb 4 -hq 2 \
-cb mcg -mae 1.0 -cd cal_128x8192.safetensors -cr 128 -cc 8192
recipe_v100.yaml is generated, not hand-written — "*": 16 then "*.mlp.experts.*": 2.
Tile order is sm80. refit_scales runs automatically after LDLQ.
Calibration
128 rows × 8192 tokens = 1 048 576 tokens, from exllamav3's in-repo corpus with its standard
mixture. Long rows because the sparse-MLA indexer (index_topk 2048) and the KDA layers only show
representative statistics at long sequence lengths. -mae 1.0 builds each per-expert Hessian from a
~50/50 mix of all tokens and routed tokens.
Measured accuracy
Produced 2026-11-16 against this exact pack, on one RTX PRO 6000 (SM120) with exllamav3 v1.6.6.
Raw numbers ship as metrics_glm_apex_mcg_v100.json.
Structural acceptance
| Check | Result |
|---|---|
| Shards / tensors | 12 / 150 117, index matches shards |
| Routed experts | 36 288, all K=2, bpw 2.000, 0 fallbacks |
| MTP experts | 864 at K=4 |
| Codebook marker | 0xCBAC1FED on all 37 161 quantised matrices; no .mul1 |
| Non-expert linears | FP16/as-is, no .trellis |
| Vision tower | BF16, not quantised |
| Errors / OOM | none |
⚠️ 90 FP16 tensors are BF16, and the whole vision tower is BF16. V100 has no hardware BF16
path — the serving engine must convert on load.
Perplexity (50 rows × 2048, wikitext-2)
| Model | PPL |
|---|---|
| FP8 parent | 3.784 |
| This pack | 5.064 |
KL divergence vs its own parent (100 rows × 2048 = 204 800 positions)
eval/model_diff.py loads both models one layer at a time, so the 306 GiB parent fits alongside the
pack on one card.
| Metric | Value |
|---|---|
| KL(A‖B), parent → pack | 0.578 |
| KL(B‖A), pack → parent | 0.407 |
| KL per token, median / p90 | 0.160 / 1.554 |
| Top-1 agreement | 77.2 % |
| Label in top-1, parent → pack | 68.2 % → 61.6 % |
| Label in top-5, parent → pack | 88.0 % → 84.4 % |
KL by parent confidence — the pack is faithful exactly where the model was sure:
| Parent top-prob | Share of tokens | Mean KL |
|---|---|---|
| [0.95, 1.00] | 28.6 % | 0.058 |
| [0.75, 0.95) | 18.6 % | 0.489 |
| [0.50, 0.75) | 20.2 % | 0.825 |
| [0.25, 0.50) | 23.2 % | 0.945 |
| [0.00, 0.25) | 9.4 % | 0.904 |
| Overall | 100 % | 0.578 |
Where the error comes from
Per-module relative Frobenius error against the parent, isolated per module (model_diff.py):
| Module | rfn_err |
SQNR |
|---|---|---|
| dense layers 0–2 | 0.000000 | 68–74 dB |
| layer 3 (first MoE) | 0.119 | 40.8 dB |
| layers 4–16 | 0.141 → 0.384 | 24.8 → 9.2 dB |
| layers 17–33 | 1.03 → 1.86 | 9.0 → 5.3 dB |
| layers 34–44 | 0.96 → 0.79 | 6.2 → 4.9 dB |
| final norm | 0.577 | 5.2 dB |
The step is at layer 17: error stays under 0.4 through layer 16, then jumps past 1.0 and stays
there. That is cumulative drift through the 2-bit experts, not a property of any single attention
type — by layer 17 the per-module error no longer distinguishes the eleven deepseek_sparse_attention
layers from the thirty-four KDA layers.
A note for anyone reading the converter log: its own rfn column reports 0.78 on unquantised
dense layer 0, which looks alarming. It is a measurement artefact — it averages a Frobenius ratio
over 5 reference rows, and one bad row dominates. The independent per-module comparison above gives
exactly 0.000000 on those same layers with 68–74 dB SQNR. Trust the second number.
Reading the numbers honestly
KL 0.578 is high, and this pack is not a drop-in replacement for its FP8 parent on
quality-sensitive work. The closest published comparison point is philbert440/GLM-5.3-Flash-EXL3
at KL 0.132 on its own parent, same architecture family and target hardware but different data,
so not a clean comparison — still, it puts us roughly 4× worse on that axis.
The parent was not degraded by this: the pack's KL is essentially identical to the mcg pack built
from the base, non-fine-tuned GLM-5.3-Flash with the same flags (0.563 there). A heretic fine-tune
quantises exactly like its base. What is known is that the error is concentrated from layer 17
onward; what is not yet measured is how far raising K on those layers closes the gap. That needs a
separate full run and is not inferred here.
Running it on V100
The pack is built for the SM70 kernel and validated structurally against its contract. It was
also loaded and run with stock exllamav3 on SM120 — mcg, K=2 experts and FP16 non-experts all read
back correctly. The SM70 path itself was not exercised by us:
- Engine: 1Cat-vLLM fork. Needs PR #1092, #1102 (EXL3 MoE on SM70) and #1125
(sparse-MLA kernels); the latter were draft at the time of writing. Check their state. - Author's build recipe: CUDA 12.8, gcc/g++ 14, Python 3.12,
TORCH_CUDA_ARCH_LIST=7.0. - Expected fit: ≈23.2 GiB per card at TP=4 on 4×V100-32GB.
What this repo is not
- Not a fresh model. Behaviour and uncensoring inherited whole from
pqhaz/apex-flash-1-heretic-v2-FP8. This repo changes numerics only. - Not loadable on stock exllamav3. By design — the
mcg/ FP16 shape is the SM70 kernel's
contract. - Not yet loaded on a physical V100.