jlnsrk commited on
Commit
d88ff47
·
verified ·
1 Parent(s): 0d18099

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: zai-org/GLM-5.2-FP8
4
+ base_model_relation: quantized
5
+ language:
6
+ - en
7
+ - zh
8
+ tags:
9
+ - glm_moe_dsa
10
+ - int4
11
+ - cpu
12
+ - moe
13
+ - expert-streaming
14
+ - colibri
15
+ ---
16
+
17
+ # GLM-5.2 — colibrì int4 container (~370 GB)
18
+
19
+ Pre-converted weights for **[colibrì](https://github.com/JustVugg/colibri)** — the pure-C engine that runs GLM-5.2 (744B MoE) on a consumer machine with ~25 GB of RAM by streaming routed experts from disk.
20
+
21
+ This is the output of colibrì's `coli convert` (`convert_fp8_to_int4.py --ebits 4 --io-bits 8`, including the MTP head for native speculative decoding), uploaded so you don't have to download the 756 GB FP8 checkpoint and spend a day converting it.
22
+
23
+ **⚠️ This is NOT a GGUF / AWQ / GPTQ / MLX model.** It is colibrì's own container: for each quantized weight, `name` (U8, packed int4 nibbles) + `name.qs` (F32 per-row scales), quantized with math bit-identical to the engine's C kernels. It only works with the colibrì engine.
24
+
25
+ ## Usage
26
+
27
+ ```bash
28
+ # get the engine
29
+ git clone https://github.com/JustVugg/colibri && cd colibri/c && ./setup.sh
30
+
31
+ # download this repo to a FAST local disk (NVMe, ext4 — never a network/9p mount)
32
+ hf download jlnsrk/GLM-5.2-colibri-int4 --local-dir /nvme/glm52_i4
33
+
34
+ # chat (RAM budget, expert cache and MTP auto-detected)
35
+ COLI_MODEL=/nvme/glm52_i4 ./coli chat
36
+ ```
37
+
38
+ Requirements: Linux (or WSL2), gcc + OpenMP, AVX2, ≥16 GB RAM, ~400 GB free NVMe.
39
+
40
+ ## What's inside
41
+
42
+ | file | contents |
43
+ |---|---|
44
+ | `out-*.safetensors` | dense weights (attention/MLA, shared experts, embeddings) + 21,504 routed experts, int4 per-row scales; router/norms kept F32 |
45
+ | MTP shard | GLM-5.2's multi-token-prediction head (layer 78) — enables lossless speculative decoding (~2 tok/forward) |
46
+ | `config.json`, `tokenizer*.json`, `generation_config.json` | copied from the base repo |
47
+
48
+ Conversion: FP8 (e4m3, 128×128 block scales) → f32 → int4 with `np.rint` matching the engine's `lrintf` — token-identical to converting locally.
49
+
50
+ ## Provenance & license
51
+
52
+ Converted from [zai-org/GLM-5.2-FP8](https://huggingface.co/zai-org/GLM-5.2-FP8) (MIT). This derivative is likewise MIT. Conversion performed with colibrì's official converter, unmodified.