Built from the refusal-removed ("uncensored") weights. This archive is built from
dealignai/GLM-5.3-Flash-UNCENSORED-FP8(MIT), a refusal-removed variant derived fromzai-org/GLM-5.3-Flash(MIT). It is NOT a compression of the originalzai-orgmodel and it inherits the behaviour of thedealignaiweights.
In one line: QTIP showed that trellis-coded 2-bit weights run fast when the model fits in GPU memory. APEX-FOLD makes them run fast when it doesn't: the routed experts live in system RAM (most of them pinned), stream over PCIe, and run on the GPU straight from their compressed code.
APEX-FOLD is a compression and execution method developed in this project for running a mixture-of-experts model that is far larger than the GPU. It codes every routed expert into a fixed-size 2-bit trellis record that is built to stream over PCIe, and it computes each expert on the GPU directly from that code. Applied to GLM-5.3-Flash (320B), it runs on one RTX 5090 at about 1.7-1.8x the decode speed of the most-downloaded 2-bit GGUF build, from expert weights about two-thirds its size, with statistically level HumanEval and GSM8K scores.
A 2-bit build of a 320B MoE model does not fit in 32 GiB of VRAM. The usual answers are to keep every weight on the GPU (which needs more memory than one card has) or to keep the experts in system RAM and compute them on the CPU (llama.cpp offload). APEX-FOLD does neither. It starts from the real bottleneck of a single-GPU workstation, the host-to-GPU link, and designs both the compressed format and the runtime around it:
What it builds on. The trellis and the HYB code come from QTIP (Tseng et al., 2024). The incoherence rotation
comes from QuIP#, the Hessian-aware rounding from LDLQ / GPTQ, the hash construction from ExLlamaV3, and the eviction
policy is GDSF. The new part is how they are combined and executed: a trellis-coded, prune-masked, router-repaired
expert archive with a fixed record layout for PCIe streaming, plus a runtime that serves it from one consumer GPU
with the experts still compressed in VRAM. Earlier rounds of the project (TCQ33, a 4,096-state trellis with trained
tables and sparse outlier slots) are documented in the GitHub repository (docs/WORK_RECORD.md) and in the whitepaper.
Conditions and caveats of the headline:
unsloth/GLM-5.3-Flash-GGUF, variant
UD-IQ2_XXS (101.8 GB), on the same machine through the same benchmark harness. That build keeps all experts and
ran under llama.cpp with about 27 GiB on the GPU (27.2 GiB measured) and the rest in RAM.Custom format, custom runtime. These files are not GGUF and not a transformers checkpoint. They are read only by the runtime at
https://github.com/Tvene88/glm53-flash-qtip-r39(Windows, one RTX 5090 class GPU, 128 GB RAM).
GLM-5.3-Flash is a mixture-of-experts model with 320B parameters: 42 routed MoE layers plus one MTP (draft) layer, 288 routed experts per layer, of which 8 are used for each token. This repository holds:
merged_routers_bf16.pt: the router weights after 16 steps of router-only distillation (0.1 GB);The runtime keeps the backbone and a pool of hot experts in VRAM, page-locks the expert files in host RAM, and copies the experts a token needs to the GPU on demand.
All on one RTX 5090 (32 GiB), 128 GB RAM, Windows 11, one request at a time, greedy decoding. Every number is from
the project's working record; the report or log file behind each one is in the GitHub repository (RESULTS.md,
results/, benchmark runs in results/benchmarks/).
| this repository (archive + router) | archive without the router | Unsloth UD-IQ2_XXS |
|
|---|---|---|---|
| HumanEval, 164 problems | 156 = 95.1 % (90.7-97.5) | 154 = 93.9 % (89.1-96.7) | 158 = 96.3 % (92.2-98.3) |
| GSM8K, fixed sample of 250 | 240 = 96.0 % (92.8-97.8) | 241 = 96.4 % (93.3-98.1) | 239 = 95.6 % (92.3-97.5) |
| decode tok/s, HumanEval / GSM8K | 20.90 / 23.82 | 20.97 / 23.81 | 12.26 / 12.94 |
| tok/s including the prompt, HumanEval / GSM8K | 15.72 / 11.23 | 15.81 / 11.13 | 7.84 / 5.92 |
| size | 76.6 GB (66.2 GB experts) | 101.8 GB |
In brackets: Wilson 95 % intervals. Paired, with router against Unsloth: HumanEval 2 problems only ours right, 4 only theirs (p = 0.69); GSM8K 7 against 6 (p = 1.0). With against without router: 3 against 1 and 1 against 2 (p = 0.63 and 1.0): the router is level with no router on these tests. No truncated answers. This runtime served with an expert pool of 14 GiB; the llama.cpp prompt is one token shorter on every item (it leaves the thinking block open and the model closes it with its first token), which was accepted as equivalent. A benchmark of the project's previously shipped archive (TCQ33P5) is to be added.
| configuration | tok/s overall | code | capital | math | systems |
|---|---|---|---|---|---|
archive without the router, expert kernel v2, R39_QTIP_WARPS=16 R39_QTIP_PF=16 |
25.90 | 23.66 | 28.69 | 24.54 | 26.70 |
| the same with the three copy-traffic flags, pool 18.47 GiB | +2.7 % in an alternating A/B (25.25 -> 25.92) | ||||
| archive without the router, expert kernel v1 | 22.06 | 20.65 | 23.74 | 21.20 | 22.65 |
| control: the previously shipped TCQ33P5 archive (75.02 GB), same runtime and script | 23.20 | 20.74 | 25.84 | 22.03 | 24.19 |
| archive + router (this repository), copy-traffic flags, pool 16 GiB, after the quality rows | 24.62 | 22.21 | 27.62 | 23.38 | 25.25 |
Served over HTTP the decode rate depends on the pool the server can keep: 20.97 / 23.81 tok/s at 14 GiB, 23.19 / 25.74 at 17 GiB with the copy-traffic flags (first 40 items of each task).
KL divergence to the exact FP8 model on 29 private chat rows (39,842 positions). The rows are not published, so these numbers cannot be checked by others.
| archive | KL nats | top-1 agreement |
|---|---|---|
| archive without the router | 0.295316 | 0.83658 |
| archive + router (this repository; final settings, pool 16 GiB) | 0.290724 | 0.83505 |
| previously shipped TCQ33P5 archive, same harness | 0.260544 | 0.84348 |
On this internal measure the archive is below the project's previously shipped one, and the original design package's gate (KL <= 0.230, top-1 >= 0.846) is not met. The router lowers the KL by 0.0046 and the top-1 agreement by 0.0015.
Bit-exactness, re-run on the final code (forced-decode logits, 3 prompts x 128 graph steps): this runtime against the original package runtime on this archive, flags off: 384 of 384 bitwise identical; with the production flags: 384 of 384; expert kernel v1 against kernel v2 (both with the production flags): 384 of 384. The speculative-decoding and copy-traffic changes did not alter the decode path at default settings.
Code, commands and all result files: https://github.com/Tvene88/glm53-flash-qtip-r39 (README.md, REPRODUCE.md).
Download this repository; keep the layer files, fold_manifest.json and merged_routers_bf16.pt together in one
folder (the runtime loads the router file by its name from that folder; the server log then shows
patched_routers=42) and point the runtime at the backbone folder (--fold-dir <download> --backbone-dir <download>\GLM53-backbone-r34h); set the production environment variables; then run the speed test,
the OpenAI-compatible server or the benchmark driver from the GitHub repository. Recommended serving settings: expert
pool 17 GiB, R39_QTIP_KERNEL=v2 R39_QTIP_WARPS=16 R39_QTIP_PF=16, R39T_FAST_DEMAND=2 R39T_PREEVICT=4 R39T_LAZY_STAGING=1 (GitHub REPRODUCE.md, section 9).
The first load writes one .slab sidecar file next to every layer file (another 66 GB, about 15 minutes); later loads
took 66 to 77 seconds.
Decoding is greedy by default, as in every figure on this card. Since 2026-11-19 the runtime also samples
(temperature / top_p / top_k / seed) and can cap the thinking block. For agent work with thinking on use
--serve-temperature 1.0 --serve-top-p 0.95 --serve-thinking-budget 6144: greedy decoding there can fail to end
its thinking or fall into repetition (GitHub docs/SAMPLER.md). The model files are unchanged.
dealignai variant. Use accordingly.| file | content |
|---|---|
layer_03_qtip_hyb.pt ... layer_45_qtip_hyb.pt |
routed experts of the 42 trunk MoE layers and the MTP layer (PyTorch .pt container: a dictionary of tensors and a small metadata dictionary) |
fold_manifest.json |
format, rule, recipe, layer list |
merged_routers_bf16.pt |
router weights (bf16) and bias (fp32) of the 42 trunk MoE layers after router-only distillation |
GLM53-backbone-r34h/ |
slim FP8 backbone: config, tokenizer, chat template, 47 safetensors shards |
zai-org/GLM-5.3-Flash (MIT). Weights used:
dealignai/GLM-5.3-Flash-UNCENSORED-FP8 (MIT).unsloth/GLM-5.3-Flash-GGUF. Benchmarks: HumanEval and GSM8K (both MIT).MIT.
GLM53-backbone-r34h/model-00001-of-00062.safetensors 2.0 GBlayer_45_qtip_hyb.pt 1.8 GBlayer_03_qtip_hyb.pt 1.7 GBlayer_42_qtip_hyb.pt 1.6 GBlayer_44_qtip_hyb.pt 1.6 GBlayer_43_qtip_hyb.pt 1.6 GBlayer_41_qtip_hyb.pt 1.6 GBlayer_18_qtip_hyb.pt 1.6 GBlayer_38_qtip_hyb.pt 1.6 GBlayer_40_qtip_hyb.pt 1.6 GBlayer_37_qtip_hyb.pt 1.6 GBlayer_33_qtip_hyb.pt 1.6 GBlayer_36_qtip_hyb.pt 1.6 GBlayer_39_qtip_hyb.pt 1.6 GBlayer_30_qtip_hyb.pt 1.5 GBlayer_35_qtip_hyb.pt 1.5 GBlayer_13_qtip_hyb.pt 1.5 GBlayer_14_qtip_hyb.pt 1.5 GBlayer_15_qtip_hyb.pt 1.5 GBlayer_34_qtip_hyb.pt 1.5 GBlayer_07_qtip_hyb.pt 1.5 GBlayer_29_qtip_hyb.pt 1.5 GBlayer_31_qtip_hyb.pt 1.5 GBlayer_06_qtip_hyb.pt 1.5 GBlayer_32_qtip_hyb.pt 1.5 GBlayer_05_qtip_hyb.pt 1.5 GBlayer_16_qtip_hyb.pt 1.5 GBlayer_17_qtip_hyb.pt 1.5 GBlayer_20_qtip_hyb.pt 1.5 GBlayer_21_qtip_hyb.pt 1.5 GBlayer_23_qtip_hyb.pt 1.5 GBlayer_24_qtip_hyb.pt 1.5 GBlayer_27_qtip_hyb.pt 1.5 GBlayer_04_qtip_hyb.pt 1.5 GBlayer_22_qtip_hyb.pt 1.5 GBlayer_28_qtip_hyb.pt 1.5 GBlayer_09_qtip_hyb.pt 1.5 GBlayer_19_qtip_hyb.pt 1.5 GBlayer_26_qtip_hyb.pt 1.5 GBlayer_10_qtip_hyb.pt 1.5 GBlayer_12_qtip_hyb.pt 1.5 GBlayer_25_qtip_hyb.pt 1.5 GBlayer_08_qtip_hyb.pt 1.5 GBlayer_11_qtip_hyb.pt 1.5 GBGLM53-backbone-r34h/model-00002-of-00062.safetensors 664 MBGLM53-backbone-r34h/model-00017-of-00062.safetensors 472 MBGLM53-backbone-r34h/model-00005-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00011-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00022-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00028-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00035-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00040-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00053-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00046-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00032-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00059-of-00062.safetensors 178 MBGLM53-backbone-r34h/model-00004-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00007-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00008-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00012-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00014-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00015-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00018-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00019-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00021-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00024-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00025-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00026-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00029-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00033-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00036-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00038-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00039-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00042-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00043-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00045-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00049-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00050-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00052-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00031-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00054-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00047-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00056-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00057-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00060-of-00062.safetensors 170 MBGLM53-backbone-r34h/model-00010-of-00062.safetensors 168 MBGLM53-backbone-r34h/model-00003-of-00062.safetensors 102 MBGLM53-backbone-r34h/model-00061-of-00062.safetensors 102 MBmerged_routers_bf16.pt 99 MBGLM53-backbone-r34h/model-00062-of-00062.safetensors 67 MBGLM53-backbone-r34h/model-00009-of-00062.safetensors 2 MBdealignai/GLM-5.3-Flash-UNCENSORED-FP8