GLM-5.3-Flash - Heretic-Maya-2bit
A weight-level uncensored GLM-5.3-Flash that is smaller and faster than the reference build: the refusal directions are removed from the weights (no runtime vector needed), and the model is packed into Maya's own runtime format with 2-bit experts.
- base model: GLM-5.3-Flash (Z.ai, MIT) - 46 layers, 288 experts / 8 active, 1M context, vision (image input)
- ablation: Heretic-V3 - the Optuna-optimized adapter, merged into the weights
- build: Heretic-Maya-2bit - the 67 edited tensors taken byte-wise from Heretic-V3, every other tensor from the 1-bit expert build. No re-quantization, no calibration, no FP8 parent.
Measured: 0 hard refusals in 20 runs, 24.9-25.8 tok/s decode, 74-76 % cache hit, vision checked on 4/4 images, quality probe 5/5 correct.
What was done and how
The Heretic-V3 adapter changes exactly 67 tensors:
blk.15..39 .attn_output.weight blk.18..40 .ffn_down_shexp.weight
blk.25..43 .ffn_down_exps.weight <- the routed experts
The splice is byte-wise: for those 67 tensors the bytes are taken from
MorinoNushi/GLM-5.3-Flash-Heretic-Abliterated-LoRA-V3-GGUF, everything else (the attention
blocks, the embeddings, the dense parts) from the 1-bit expert build. Because nothing is
re-quantized, the quality of the two sources is preserved exactly - only the tensor bytes
change.
Why this is better than the reference builds:
| Build | Ablation | Size | Decode | Cache hit | RAM free | hard refusals |
|---|---|---|---|---|---|---|
| Heretic-Maya-2bit (this repo) | weight, optimized | ~70 GB | 24.9-25.8 tok/s | 74-76 % | 45 GB | 0/20 |
| Heretic-V3 IQ1_M (upstream) | weight, optimized | 97.8 GB | 15.6-17.1 tok/s | 65-69 % | 25 GB | 0/16 |
| orcarouter (upstream) | weight, 1 direction | 97.1 GB | 14.5-15.8 tok/s | 63-65 % | 32 GB | 0/16 |
The 2-bit build is 25 % smaller, ~55 % faster and leaves 20 GB more RAM free than the reference build, with the same weight-level ablation.
Files
| File | Role | Size |
|---|---|---|
GLM-5.3-Flash-Heretic-Maya-2bit.gguf | the model: the 2-bit routed experts, the attention blocks, the embeddings | 68.4 GB |
pack-2bit/index.txt | per-tensor manifest (name, quant type, offset, byte size) of the pack | small |
pack-2bit/native_experts.txt | which experts stay resident on the GPU and where their bytes sit (absolute offsets in the GGUF) | small |
pack-2bit/sources.json, compat-bf16.json | provenance of the pack: the source file and the source type of every tensor | small |
pack-2bit/dense.bin | the non-expert tensors that the engine loads directly | 900 MB |
pack-2bit/slots/*.bin | the GPU-resident expert shards (the "native experts") | 4 x ~215 MB |
pack-2bit/tokenizer/ | tokenizer + chat template | ~8 MB |
vision/mmproj-GLM-5.3-Flash-F16.gguf | vision projector (image input) | 1.05 GB |
vision/GLM-5.3-Flash-vocab.gguf | the vision vocabulary | 9 MB |
README.md | this card | small |
The pack is not a GGUF. The engine reads the model as manifest + blobs: the tensor index
points into the big GGUF (absolute offsets) or into the pack's own blobs. llama.cpp cannot
load this repository's runtime layout - for llama.cpp use the upstream
AliceThirty/GLM-5.3-Flash-UNCENSORED-GGUF (UD-IQ1_M, 97.8 GB) instead, or the
MorinoNushi/GLM-5.3-Flash-Heretic-Abliterated-LoRA-V3-GGUF.
Engine: Maya's own strata engine
This build targets the strata engine (maya.exe), not llama.cpp. Differences that matter:
| strata (this repo) | llama.cpp | |
|---|---|---|
| model layout | GGUF + pack (--glm-pack), the experts live in slots/blobs | plain GGUF only |
| expert tier | the experts can live in RAM and run on the CPU; the KV for extra conversations comes out of the same "experts' room" | all experts in VRAM (or partial CPU offload) |
| KV / cache | the KV cache of additional conversations is taken from the experts' room -> the RAM tier holds model and KV | VRAM only (or --no-kv-offload) |
| concurrency | --parallel N: extra conversations fit as long as the RAM tier has room | --parallel N with --ctx split per slot |
| quants | IQ1_M natively (custom iq_kernels.hpp), Q2_0/Q4_0 | standard ggml quants |
maya.exe --glm-pack <pack-2bit dir> \
--max-context 131072 --expert-cache auto --prefill auto \
--kv-streaming on --kv int8 --ablate-default off
# vision: the mmproj + vocab from vision/ (engine flag: --glm-vision)
Sampling
| Setting | Value |
|---|---|
temperature | 1.0 |
top_p | 0.95 |
top_k | 20 |
min_p | 0 |
Memory plan
- VRAM: the attention blocks, the embeddings, the native experts and the KV of the running conversation. The rest of the experts are in the RAM tier (the CPU lane).
- RAM: the offloaded experts (~40 GB) plus the expert cache; the pack's
slots/hold the GPU-resident part. - Measured on a 3090 (24 GB) + 128 GB RAM: 45 GB RAM free after loading, 74-76 % cache hit.
Rebuilding this repo
- Base weights: GLM-5.3-Flash (MIT) from Z.ai.
- Ablation: the Optuna-optimized Heretic-V3 adapter (the 67 tensors above), merged into the
weights -
MorinoNushi/GLM-5.3-Flash-Heretic-Abliterated-LoRA-V3-GGUF. - Splice: a byte-wise tensor splice of the 67 edited tensors (from step 2) into the 1-bit expert build; every other tensor byte-identical to the 1-bit source.
- Pack: write the manifest (
index.txt,native_experts.txt), the dense tensors (dense.bin), the GPU-resident expert shards (slots/) and the tokenizer. - Vision: the stock mmproj + vocabulary, unchanged (the ablation does not touch the tower).
Model details
- Architecture:
glm5-next- 46 layers, 288 experts per layer, 8 active, hybrid attention with a linear-attention part, 1M context (Maya: 131k by default,--max-context) - Parameters: ~30B total, ~2.5B active
- Vision: image input through the mmproj, unchanged by the ablation
- License of the base model: MIT