base_model:
- zai-org/GLM-5.3-Flash
- orcarouter/GLM-5.3-Flash-Uncensored-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
- uncensored
- multimodal
license: mit
model-index: []
widget: []
GLM-5.3-Flash · Uncensored · EXL3 2.00 bpw (mcg, K=2) — for SM70 / V100
306 GiB block-FP8 MoE → 93 GiB. Routed experts at exactly 2.00 bpw; everything else
deliberately left at FP16, because the SM70 EXL3 kernel refuses quantised non-experts
and reads only themcgcodebook.
Sibling repo bullix/GLM-5.3-Uncensored-EXL3-2.0bpw
holds the mul1 pack for modern cards. Same source revision; the difference is the target engine.
| Parent | orcarouter/GLM-5.3-Flash-Uncensored-FP8 — abliterated finetune, block-FP8, 62 shards, 76 108 tensors |
| Source revision | 993122712d2606d8a49f0b350d35b3c6672861c8 |
| Tool | stock exllamav3 v1.6.6, commit bd1f519 — no patches |
| Parameters | 321.3 B total · 304.4 B in routed experts (94.7 %) · ~16.9 B non-expert |
| Quantised | 36 288 expert matrices at exactly 2.00 bpw |
Why the sidebar says 49.7 B. Hugging Face counts tensors in the safetensors headers, and in
an EXL3 pack the trellis index tensor isint16of shape[in/16, out/16, 32]— so the counter
reads 39.9 B ofI16elements and reports them as parameters. Those are codebook indices, not
weights. The model itself is unchanged at 321.3 B parameters; what this repo stores is a
2-bit encoding of them. Every routed expert weight is still there, just packed 8 bits per
4 parameters.
Uncensoring inherited whole from orcarouter. This repo changes numerics only.
License MIT, inherited from GLM-5.3-Flash.
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 — the kernel dequantises dense EXL3
tensors to FP16 on load anyway, so quantising them would cost accuracy for nothing.
| 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 — exactly on target, because the recipe
spends nothing on non-experts. Average across the whole directory is ≈2.5 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;
last matching entry wins. -hq 2 under a recipe affects MTP layers only; the converter
prints a note saying so, that is expected. Tile order is sm80. refit_scales runs
automatically after LDLQ.
Calibration
128 rows × 8192 tokens = 1 048 576 tokens, built 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; 250 × 2048 barely
exercises either. -mae 1.0 builds each per-expert Hessian from a ~50/50 mix of all tokens
and routed tokens. Calibration state alone is ≈32 GiB of RAM per layer.
Expert matrix layout
<name>.trellis int16 [in/16, out/16, 32] K = 32/16 = 2
<name>.suh fp16 [in]
<name>.svh fp16 [out]
<name>.mcg int32 scalar 0xCBAC1FED
Measured accuracy
Produced 2026-11-01 against this exact pack, on one RTX PRO 6000 (SM120) withexllamav3 v1.6.6 at bd1f519. Raw numbers ship as metrics_glm_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 | FP16, not quantised |
| Errors / OOM | none |
⚠️ 90 FP16 tensors are BF16. V100 has no hardware BF16 path — the serving engine must
convert on load. This is a property of the source checkpoint.
Perplexity (50 rows × 2048, wikitext-2)
| Model | PPL |
|---|---|
| FP8 parent | 3.721 |
| This pack | 5.052 |
KL divergence (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.563 |
| KL(B‖A), pack → parent | 0.403 |
| KL per token, median / p90 | 0.161 / 1.504 |
| Top-1 agreement | 77.4 % |
| Label in top-1, parent → pack | 68.3 % → 62.0 % |
| Label in top-5, parent → pack | 88.1 % → 84.6 % |
Where the error comes from
Per-layer relative Frobenius error from the converter, split by attention type:
| Layer type | n | mean rfn |
median | mean SQNR |
|---|---|---|---|---|
deepseek_sparse_attention |
11 | 0.570 | 0.611 | 10.8 dB |
linear_attention (KDA) |
31 | 0.238 | 0.198 | 23.3 dB |
All eleven sparse-MLA layers (3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43) sit in the worst
part of the distribution. Layer error stays small through layer 16 (rfn 0.12 → 0.39),
then jumps and plateaus around 0.78–1.33. The sparse-MLA indexer decides which tokens
attention ever sees, so error there propagates through the whole layer instead of
degrading gracefully.
Reading the numbers honestly
KL 0.563 is high. The closest published comparison point we have isphilbert440/GLM-5.3-Flash-EXL3, which reports KL 0.132 with 87.8 % top-1 agreement
against its own parent — on different data, so not a clean comparison, but it is the same
architecture family and the same target hardware. Our pack is roughly 4× worse on that
axis. This is not a normal result for 2 bpw and should not be presented as one.
What is known: the error concentrates on the sparse-MLA layers, and it comes from the
2-bit expert weights — the non-expert layers feeding them are exact. What is not yet
known: how much of the gap is inherent to mcg + 2-bit experts versus fixable by raising
K on those eleven layers. A mul1 pack from the same source revision is being measured
with the identical harness; that comparison will be added here rather than guessed at.
Practical reading: the pack loads, produces coherent output, and keeps the right token
first in 77 % of positions. It is not a drop-in replacement for the FP8 parent on
quality-sensitive work.
Running it on V100
The pack is built for the SM70 kernel and validated structurally against its contract.
It was then 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. #1091 (MTP)
was merged. Check their state — they may have moved. - Author's build recipe: CUDA 12.8, gcc/g++ 14, Python 3.12,
TORCH_CUDA_ARCH_LIST=7.0. - Reference from the closest published pack on this hardware: ≈48 tok/s without
speculation, ≈76 tok/s with MTP at 3 draft tokens. Do not transplant those numbers
here without measuring — different calibration, source and tile order.
Expected fit: ≈23.3 GiB per card at TP=4 on 4×V100-32GB, leaving ≈8–9 GB per card for
KV cache, CUDA graphs and activations.
What this repo is not
- Not a fresh model. Behaviour inherited from
orcarouter/GLM-5.3-Flash-Uncensored-FP8. - Not loadable on stock exllamav3. By design — the
mcg/ FP16 shape is the SM70
kernel's contract. Rejection by stock exllamav3 is the expected behaviour. - Not yet loaded on a physical V100. Everything verifiable without V100 hardware has
been verified; the final step needs the fork on real cards.
Reporting a problem
Include engine name, PR numbers and commit, nvidia-smi --query-gpu=name,memory.total --format=csv,
the full traceback, and config.json's quantization_config. SHA256SUMS covers shards,
index and config.