antjeworring commited on
Commit
36e9aa7
·
verified ·
1 Parent(s): dd71808

readme: clean Zen5 branding

Browse files
Files changed (1) hide show
  1. README.md +42 -28
README.md CHANGED
@@ -2,63 +2,77 @@
2
  license: mit
3
  library_name: gguf
4
  base_model: deepseek-ai/DeepSeek-V4-Flash
 
 
 
 
5
  tags:
6
- - gguf
7
- - imatrix
8
- - iq2_xxs
9
- - deepseek
10
  - zen5
 
11
  - zenlm
12
  - hanzo
13
- - mixture-of-experts
 
 
14
  - moe
15
  - 1m-context
16
- language:
17
- - en
18
- - zh
19
- pipeline_tag: text-generation
20
  ---
21
 
22
- # Zen-5 Flash (GGUF)
 
 
 
 
23
 
24
- The Zen LLM family flagship-flash tier, served by the [`zen5-engine`](https://github.com/zenlm/zen5-engine) (a [`antirez/ds4`](https://github.com/antirez/ds4) fork rebranded for the Zen family). Weights are the **DeepSeek V4 Flash** 284B-parameter sparse-MoE base, quantized to `IQ2_XXS` on routed expert up/gate, `Q2_K` on down, with shared experts, attention projections, routing logits and the LM head left at higher precision.
25
 
26
- This asymmetric quant is what makes the model runnable on a single Mac with 128 GB unified memory and on a DGX Spark / GB10 / single H100 80 GB on Linux.
 
 
 
 
 
 
27
 
28
  ## Files
29
 
30
- | File | Size | Quant policy |
31
  |---|---|---|
32
- | `DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix.gguf` | 81 GB | routed `IQ2_XXS` + `Q2_K`, shared `Q8_0`, attn `Q8_0`, out `Q8_0`, imatrix-tuned |
 
 
 
 
 
33
 
34
  ## Run
35
 
36
- These weights only load under `zen5-engine` / upstream `antirez/ds4`. They are **not** a generic GGUF — they assume the engine's tensor layout, quantization mix, metadata, and optional MTP state.
 
 
37
 
38
  ```sh
39
  git clone https://github.com/zenlm/zen5-engine
40
- cd zen5-engine
41
- make # macOS Metal
42
- mkdir -p gguf
43
- hf download zenlm/zen-5-flash-gguf --local-dir gguf
44
- ln -sf gguf/DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix.gguf zen5flash.gguf
45
- ./zen5 -p "Explain MoE inference in one paragraph."
46
  ./zen5-server --ctx 100000 --kv-disk-dir /tmp/zen5-kv --kv-disk-space-mb 8192
47
  ```
48
 
49
- The HTTP server speaks four wire APIs: `POST /v1/chat/completions`, `/v1/completions`, `/v1/responses`, `/v1/messages` (Anthropic), all with native SSE streaming and DSML tool-call canonicalization.
50
-
51
- ## Performance (single-run Metal, `--ctx 32768 --nothink`)
52
 
53
  | Machine | Prompt | Prefill | Generation |
54
  |---|---|---:|---:|
55
  | MacBook Pro M3 Max 128 GB | short | 58.5 t/s | 26.7 t/s |
56
  | MacBook Pro M3 Max 128 GB | 11709 tok | 250.1 t/s | 21.5 t/s |
57
- | Mac Studio M3 Ultra 512 GB | 12018 tok | 448.8 t/s | 26.6 t/s |
 
58
  | DGX Spark GB10 128 GB | 7047 tok | 343.8 t/s | 13.7 t/s |
59
 
60
  ## Acknowledgements
61
 
62
- This artifact would not exist without Salvatore Sanfilippo (antirez) and the [`antirez/ds4`](https://github.com/antirez/ds4) project, on whose engine all of this is built; nor without the [`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp) community whose GGUF format, quantization math, and dot-product kernels are the foundation. The MIT LICENSE files in `zen5-engine` preserve both copyrights unchanged.
63
-
64
- The base model is [`deepseek-ai/DeepSeek-V4-Flash`](https://huggingface.co/deepseek-ai) — thank you to the DeepSeek team for releasing it.
 
2
  license: mit
3
  library_name: gguf
4
  base_model: deepseek-ai/DeepSeek-V4-Flash
5
+ pipeline_tag: text-generation
6
+ language:
7
+ - en
8
+ - zh
9
  tags:
 
 
 
 
10
  - zen5
11
+ - zen5-pro
12
  - zenlm
13
  - hanzo
14
+ - gguf
15
+ - imatrix
16
+ - iq2_xxs
17
  - moe
18
  - 1m-context
19
+ - mtp
 
 
 
20
  ---
21
 
22
+ # Zen5 Pro
23
+
24
+ High-quality Zen5 tier that fits on a single 128 GB unified-memory machine. Sparse MoE with 284B total / 37B active parameters per token, 1M context, asymmetric routed-MoE quantization (routed `IQ2_XXS` up/gate, `Q2_K` down; shared experts, attention projections, routing logits and the LM head left at higher precision).
25
+
26
+ Runs on **a single 128 GB Apple Silicon (M3/M4 Max), DGX Spark (GB10), or H100 80 GB** with the [zen5-engine](https://github.com/zenlm/zen5-engine).
27
 
28
+ Part of the canonical Zen5 ladder:
29
 
30
+ | SKU | Hardware fit | This repo |
31
+ |---|---|---|
32
+ | `zen5-flash` | anything | [zen-5-flash-gguf](https://huggingface.co/zenlm/zen-5-flash-gguf) |
33
+ | `zen5-mini` | 32 GB | [zen-5-mini-gguf](https://huggingface.co/zenlm/zen-5-mini-gguf) |
34
+ | `zen5` (default) | 24 GB+ VRAM | [zen-5-gguf](https://huggingface.co/zenlm/zen-5-gguf) |
35
+ | **`zen5-pro`** | **128 GB single-machine** | **← you are here** |
36
+ | `zen5-max` | 512 GB / 8x H100 | [zen-5-max-gguf](https://huggingface.co/zenlm/zen-5-max-gguf) |
37
 
38
  ## Files
39
 
40
+ | File | Size | Notes |
41
  |---|---|---|
42
+ | `DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix.gguf` | 81 GB | **Recommended** — IQ2_XXS routed-MoE with imatrix calibration |
43
+ | `DeepSeek-V4-Flash-Layers37-42Q4KExperts-OtherExpertLayersIQ2XXSGateUp-Q2KDown-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-fixed.gguf` | 91 GB | Mixed-quant — higher quality at the boundary layers, fits 128 GB |
44
+ | `DeepSeek-V4-Flash-Q4KExperts-F16HC-F16Compressor-F16Indexer-Q8Attn-Q8Shared-Q8Out-chat-v2-imatrix.gguf` | 153 GB | Q4-imatrix — for 256 GB+ machines (Mac Studio M3 Ultra) |
45
+ | `DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf` | 3.5 GB | Optional speculative-decoding draft heads (use with `--mtp`) |
46
+ | `DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2.gguf` | 81 GB | Legacy non-imatrix Q2 — prefer the `-imatrix` version above |
47
+ | `DeepSeek-V4-Flash-Q4KExperts-F16HC-F16Compressor-F16Indexer-Q8Attn-Q8Shared-Q8Out-chat-v2.gguf` | 153 GB | Legacy non-imatrix Q4 — prefer the `-imatrix` version above |
48
 
49
  ## Run
50
 
51
+ Hosted via the Hanzo gateway (`api.hanzo.ai`) as `zen5-pro`.
52
+
53
+ Local with the [zen5-engine](https://github.com/zenlm/zen5-engine):
54
 
55
  ```sh
56
  git clone https://github.com/zenlm/zen5-engine
57
+ cd zen5-engine && make # macOS Metal
58
+ # or: make cuda-spark # DGX Spark GB10
59
+ # or: make cuda-generic # generic CUDA box
60
+
61
+ ./download_model.sh q2-imatrix # pulls this repo's recommended GGUF
62
+ ./zen5 -p "Hello"
63
  ./zen5-server --ctx 100000 --kv-disk-dir /tmp/zen5-kv --kv-disk-space-mb 8192
64
  ```
65
 
66
+ ## Performance (Metal, `--ctx 32768 --nothink`)
 
 
67
 
68
  | Machine | Prompt | Prefill | Generation |
69
  |---|---|---:|---:|
70
  | MacBook Pro M3 Max 128 GB | short | 58.5 t/s | 26.7 t/s |
71
  | MacBook Pro M3 Max 128 GB | 11709 tok | 250.1 t/s | 21.5 t/s |
72
+ | Mac Studio M3 Ultra 512 GB | short | 84.4 t/s | 36.9 t/s |
73
+ | Mac Studio M3 Ultra 512 GB | 12018 tok (Q4) | 448.8 t/s | 26.6 t/s |
74
  | DGX Spark GB10 128 GB | 7047 tok | 343.8 t/s | 13.7 t/s |
75
 
76
  ## Acknowledgements
77
 
78
+ Built on [`deepseek-ai/DeepSeek-V4-Flash`](https://huggingface.co/deepseek-ai). The asymmetric routed-MoE quantization scheme, GGUF layout, MTP draft-token support, imatrix calibration, and inference engine all come from Salvatore Sanfilippo's [`antirez/ds4`](https://github.com/antirez/ds4) project, on whose shoulders this distribution stands. MIT-licensed; both `antirez/ds4` and [`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp) copyrights are preserved in the `zen5-engine` LICENSE file.