Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: zai-org/GLM-5.2-FP8
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
tags:
|
| 6 |
+
- glm
|
| 7 |
+
- mixture-of-experts
|
| 8 |
+
- int4
|
| 9 |
+
- apple-silicon
|
| 10 |
+
- ssd-streaming
|
| 11 |
+
library_name: safetensors
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# GLM-5.2 — int4 container for iliria (full 744B, SSD-streamed)
|
| 15 |
+
|
| 16 |
+
The **full** GLM-5.2 (744B total / 39B active) quantized to int4 with an int8 MTP head, packaged
|
| 17 |
+
as the container that [**iliria**](https://github.com/PhilipJohnBasile/iliria) serves directly.
|
| 18 |
+
|
| 19 |
+
iliria runs this model on a single 128 GB Apple Silicon machine by **streaming experts from the
|
| 20 |
+
SSD** rather than holding all 744B parameters in memory. This repo exists so you don't have to
|
| 21 |
+
run that conversion yourself — otherwise the on-ramp is downloading ~372 GB of FP8 weights and
|
| 22 |
+
converting them locally for hours.
|
| 23 |
+
|
| 24 |
+
## This is not the pruned build
|
| 25 |
+
|
| 26 |
+
If you came from
|
| 27 |
+
[GLM-5.2-Demolition-q4a4-soul-MLX](https://huggingface.co/philipjohnbasile/GLM-5.2-Demolition-q4a4-soul-MLX),
|
| 28 |
+
note these are different artifacts and **not interchangeable**:
|
| 29 |
+
|
| 30 |
+
| | this repo | the demolition build |
|
| 31 |
+
|---|---|---|
|
| 32 |
+
| model | full 744B, unpruned | expert-pruned + LoRA-healed |
|
| 33 |
+
| size | ~384 GB (int4) | ~98 GB |
|
| 34 |
+
| format | iliria container (`out-*.safetensors`) | MLX |
|
| 35 |
+
| runs on | iliria | MLX / mlx-lm |
|
| 36 |
+
|
| 37 |
+
## Requirements
|
| 38 |
+
|
| 39 |
+
- Apple Silicon **M-Max / M-Ultra class with 128 GB** unified memory
|
| 40 |
+
- **~384 GB free SSD** (the weights are streamed from disk, not loaded into RAM)
|
| 41 |
+
- [iliria](https://github.com/PhilipJohnBasile/iliria)
|
| 42 |
+
|
| 43 |
+
## Use
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
hf download philipjohnbasile/GLM-5.2-colibri-int4-with-int8-mtp --local-dir ./glm52-int4
|
| 47 |
+
# then, from iliria:
|
| 48 |
+
./illi serve --model ./glm52-int4 --ram 60
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
That exposes an OpenAI-compatible endpoint. See the iliria README for the engine's flags,
|
| 52 |
+
context/RAM tuning, and measured throughput — expect deep-tier speeds, not chat speeds: this is
|
| 53 |
+
a 744B model reading experts off an SSD for every token.
|
| 54 |
+
|
| 55 |
+
## Contents
|
| 56 |
+
|
| 57 |
+
164 `out-*.safetensors` shards (int4 experts + int8 MTP head) plus `config.json`,
|
| 58 |
+
`generation_config.json`, and the tokenizer. Nothing else — no runtime state, no caches.
|
| 59 |
+
|
| 60 |
+
## Provenance
|
| 61 |
+
|
| 62 |
+
Quantized from [`zai-org/GLM-5.2-FP8`](https://huggingface.co/zai-org/GLM-5.2-FP8) (MIT).
|
| 63 |
+
Quantization only — no pruning, no retraining, no distillation; the full expert set is intact.
|
| 64 |
+
Produced by iliria's `tools/convert_fp8_to_int4.py`. Released under MIT, matching the base model.
|