Downloads · 30 days
715
5% of all-time downloads
philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX
GLM-5.2-Demolition-q4a4-soul-MLX is a text generation model from philipjohnbasile. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
Explore the model guide · All public work
Downloads · 30 days
715
5% of all-time downloads
All-time downloads
15.9K
Public
Parameters
186B
381 GB on disk
Likes
12
Public
Click a slice to open those files.
.safetensors188 GB · 100%
How the weights are stored.
U32186B · 100%
From the Hugging Face model README
Explore the model guide · All public work
| This artifact | |
|---|---|
| Purpose | An expert-pruned GLM 5.2 build with quantized root weights and separately published adapter experiments. |
| Runtime | MLX with the release's GLM DSA setup. This is distinct from the unpruned iliria SSD container. |
| Status | Recorded runtime; see the evidence and limits below. |
| Tensor download | 104.89 GB (97.68 GiB) of root .safetensors files, including any root sidecars. This is a file-size total, not peak RAM. |
| Read first | Root tensors are about 104.89 GB (97.68 GiB). A whole-repository download includes many adapter checkpoints and is substantially larger. |
A demolition of zai-org/GLM-5.2 (744B total / 39B active MoE,
MIT) down to a ~105 GB (98 GiB) 4-bit model that loads and runs fully on a single Apple M5 Max (128 GB). v3's
distinguishing move is soul-targeted expert pruning — the kept experts are chosen by saliency measured on
our facet data, not a generic corpus — plus a deliberately pure vanilla-code core with swappable
heritage "souls" mounted on demand.
The root model tensors total 104.89 GB (97.68 GiB). This repository also
contains nested adapter checkpoints: all .safetensors files together total
187.51 GB. An unfiltered download retrieves those
additional experiments too. This does not change the core model's memory use.
Select core files first, then download a specific adapter if your recipe needs it:
hf download philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX \
--include 'model*.safetensors' --include 'model.safetensors.index.json' \
--include 'config.json' --include 'tokenizer*' --include 'chat_template.jinja' --include '*.py' --include '*.md' \
--local-dir ./glm52-demolition-core
This is a download command, not a validated launch command. Read the bundled GLM DSA setup and extended model card before running it.
This repo is a pruned ~105 GB (98 GiB) MLX build; its weights are not compatible with iliria.
If you want the full 744B GLM-5.2 (unpruned, int4) on the same 128 GB Mac, iliria streams the full model's experts from SSD. A ready-to-run container is at GLM-5.2-colibri-int4-with-int8-mtp — ~384 GB, no conversion needed.
| ver | prune | quant | size | result |
|---|---|---|---|---|
| v1 | keep 30% experts (generic calib) | 3-bit | 99 GB | broke — hallucinates, sentence-loops |
| v2 | keep 23% experts (code calib) | 4-bit | 98 GB | design coherent; trivia gone (by design) |
| v3 | keep 23% experts (soul calib) | 4-bit | 104.89 GB / 97.68 GiB | coherent FOCUS-9 vanilla code (healed) |
Why 4-bit, not 3: 3-bit was just below the quality cliff; 4-bit is just above it and MLX's best-optimized kernel (cleanest packing). 2-bit is worse. These experiments did not establish superiority over an appropriately sized unpruned model; this artifact is one measured pruning-and-quantization experiment; it does not establish an optimal recipe.
23_stream_calibrate) on our facet corpus → score each routed expert.24_apply_prune --ratio 0.77) → keep the top-saliency experts.24b_stream_requantize --bits 4) → uniform 4-bit experts, 4-bit attn, 6-bit head.06_heal_lora) — LoRA on vanilla FOCUS-9 gold; souls heal separately per facet.MISSION_SUMMARY.md is not included in this Hub revision.Built with the open pipeline at glm52-demolition. Public (MIT — GLM-5.2 is Z.ai Pure-Open).