card: README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
license_link: https://huggingface.co/zai-org/GLM-5.3-Flash/blob/main/LICENSE
|
| 4 |
+
base_model:
|
| 5 |
+
- zai-org/GLM-5.3-Flash
|
| 6 |
+
base_model_relation: quantized
|
| 7 |
+
quantized_by: AtomicChat
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
+
- zh
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
+
library_name: gguf
|
| 13 |
+
tags:
|
| 14 |
+
- atomic-chat
|
| 15 |
+
- glm
|
| 16 |
+
- glm-5
|
| 17 |
+
- zai-org
|
| 18 |
+
- moe
|
| 19 |
+
- multimodal
|
| 20 |
+
- gguf
|
| 21 |
+
- imatrix
|
| 22 |
+
- quantized
|
| 23 |
+
- llama.cpp
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# How to Run GLM-5.3-Flash Locally
|
| 27 |
+
<p style="margin-top: 0; margin-bottom: 0;">
|
| 28 |
+
<em>Built from Z.ai's original weights with our own importance matrix. The <a href="https://huggingface.co/datasets/AtomicChat/calib-corpora">calibration corpora</a> behind our builds are public.</em>
|
| 29 |
+
</p>
|
| 30 |
+
<div style="display: flex; gap: 8px; align-items: center; margin-top: 10px; margin-bottom: 10px;">
|
| 31 |
+
<a href="https://atomic.chat/?utm_source=huggingface&utm_medium=referral&utm_campaign=hf_glm_5_3_flash&utm_content=btn_atomic"><img src="https://huggingface.co/AtomicChat/GLM-5.3-Flash-GGUF/resolve/main/btn_atomic.png" width="162" alt="Atomic Chat"></a>
|
| 32 |
+
<a href="https://discord.gg/8wGSsvmg4V"><img src="https://huggingface.co/AtomicChat/GLM-5.3-Flash-GGUF/resolve/main/btn_discord.png" width="119" alt="Discord"></a>
|
| 33 |
+
<a href="https://github.com/AtomicBot-ai/Atomic-Chat"><img src="https://huggingface.co/AtomicChat/GLM-5.3-Flash-GGUF/resolve/main/btn_github.png" width="115" alt="GitHub"></a>
|
| 34 |
+
</div>
|
| 35 |
+
<ul style="margin: 0 0 12px 0;">
|
| 36 |
+
<li>GLM-5.3-Flash is the first natively multimodal model in the GLM-5 series (320B total, 18B active).</li>
|
| 37 |
+
<li>These GGUFs are self-quantized from Z.ai's original weights with our own importance matrix, published alongside the quants.</li>
|
| 38 |
+
<li>The quants are still uploading and need a llama.cpp build with GLM-5.3-Flash support; Atomic Chat runs it as support ships.</li>
|
| 39 |
+
</ul>
|
| 40 |
+
<hr style="margin: 0 0 16px 0;">
|
| 41 |
+
|
| 42 |
+
<img src="https://huggingface.co/AtomicChat/GLM-5.3-Flash-GGUF/resolve/main/hero.png" alt="Z.ai" style="width:150px; max-width:100%; height:auto;"/>
|
| 43 |
+
|
| 44 |
+
## Highlights
|
| 45 |
+
|
| 46 |
+
- **320B total / 18B active** Mixture-of-Experts. The first natively multimodal model in the GLM-5 series; per Z.ai it outperforms GLM-5.2 across benchmarks at about one-tenth the price, and approaches Claude Opus 4.8 on coding and agentic tasks.
|
| 47 |
+
- **Hybrid attention**: combines sparse and linear attention to sharply cut long-context serving cost while preserving precise long-context capability. A first for the GLM series.
|
| 48 |
+
- **Manifold-Constrained Hyper-Connections (mHC)** to further improve scaling efficiency.
|
| 49 |
+
- **Newly trained base** on a 30T-token multimodal pre-training corpus.
|
| 50 |
+
- **Bilingual**, English and Chinese.
|
| 51 |
+
- **Natively multimodal** (text and vision). These GGUF quants cover the text path.
|
| 52 |
+
- **Frontier coding and agentic scores** (Z.ai-reported): Terminal-Bench 2.1 84.3, DeepSWE 1.1 63.4, HLE w/ tools 55.3, AutomationBench 48.8.
|
| 53 |
+
- **Full imatrix quantization** with our public [calibration corpora](https://huggingface.co/datasets/AtomicChat/calib-corpora).
|
| 54 |
+
|
| 55 |
+
> [!NOTE]
|
| 56 |
+
> These GGUFs are **self-quantized from the original weights**, not a repack. The importance matrix keeps low-bit quants closer to the full-precision model.
|
| 57 |
+
|
| 58 |
+
> [!IMPORTANT]
|
| 59 |
+
> Always pass `--jinja` so the **GLM-5.3-Flash chat template** is applied. Without it the model can emit malformed turns.
|
| 60 |
+
|
| 61 |
+
## Model Overview
|
| 62 |
+
|
| 63 |
+
| Property | Value |
|
| 64 |
+
|---|---|
|
| 65 |
+
| Base model | `zai-org/GLM-5.3-Flash` |
|
| 66 |
+
| Total / active parameters | 320B total / 18B active |
|
| 67 |
+
| Architecture | Hybrid sparse + linear attention MoE with Manifold-Constrained Hyper-Connections (mHC) |
|
| 68 |
+
| Modality | Natively multimodal (text and vision); this repo covers the text path |
|
| 69 |
+
| Languages | English, Chinese |
|
| 70 |
+
| Pre-training | 30T-token multimodal corpus |
|
| 71 |
+
| Context length | Not stated by Z.ai; evaluations run up to 1,000,000 tokens with context management |
|
| 72 |
+
| This repo | GGUF quants (imatrix), text path. The importance matrix we built is published here too. |
|
| 73 |
+
|
| 74 |
+
<img src="https://huggingface.co/AtomicChat/GLM-5.3-Flash-GGUF/resolve/main/benchmark.png" alt="GLM-5.3-Flash benchmark scores" style="width:100%; max-width:900px;"/>
|
| 75 |
+
|
| 76 |
+
Scores are Z.ai's published results for the base `zai-org/GLM-5.3-Flash`. Quantization preserves the large majority of this; `Q4_K_M` and up sit within a point or two of full precision.
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
## Choosing a quant
|
| 80 |
+
|
| 81 |
+
| Quant | Size | Notes |
|
| 82 |
+
|---|---|---|
|
| 83 |
+
| `IQ2_M` | — | Smallest usable. Aggressive low-bit for memory-constrained boxes. |
|
| 84 |
+
| `IQ3_M` | — | Beats Q3 at similar size thanks to imatrix. Best low-RAM pick. |
|
| 85 |
+
| **`Q4_K_M`** | — | **Recommended default. Best balance of size, speed and quality.** |
|
| 86 |
+
| **`UD-Q4_K_XL`** | — | **Dynamic. Embeddings and output kept at Q8_0 for higher quality at a Q4 footprint.** |
|
| 87 |
+
| `Q6_K` | — | Near lossless. |
|
| 88 |
+
| `Q8_0` | — | Effectively lossless, reference quality. |
|
| 89 |
+
|
| 90 |
+
> [!TIP]
|
| 91 |
+
> Sizes fill in once the quants finish uploading. Pick the largest file that fits your (V)RAM with room for context.
|
| 92 |
+
|
| 93 |
+
## Get started
|
| 94 |
+
|
| 95 |
+
> [!NOTE]
|
| 96 |
+
> GLM-5.3-Flash uses a new hybrid sparse + linear attention architecture with Manifold-Constrained Hyper-Connections. The quants in this repo are still uploading, and running them needs a `llama.cpp` build that has landed GLM-5.3-Flash support. Until then, [Atomic Chat](https://atomic.chat) is the easiest way to run it as support ships.
|
| 97 |
+
|
| 98 |
+
Run GLM-5.3-Flash locally with:
|
| 99 |
+
|
| 100 |
+
- **[Atomic Chat](https://atomic.chat):** the easiest path. Open the app, search `AtomicChat/GLM-5.3-Flash-GGUF`, pick a quant, hit **Use this model**.
|
| 101 |
+
- **llama.cpp:** `llama-server -hf AtomicChat/GLM-5.3-Flash-GGUF:Q4_K_M --jinja -c 8192`
|
| 102 |
+
- **Ollama:** `ollama run hf.co/AtomicChat/GLM-5.3-Flash-GGUF:Q4_K_M`
|
| 103 |
+
- **LM Studio / Jan:** search the repo id, download any quant.
|
| 104 |
+
|
| 105 |
+
## Best practices
|
| 106 |
+
|
| 107 |
+
| Parameter | Value |
|
| 108 |
+
|---|---|
|
| 109 |
+
| temperature | 1.0 |
|
| 110 |
+
| top_p | 0.95 |
|
| 111 |
+
|
| 112 |
+
From Z.ai's evaluation settings (HLE w/ tools). Per-benchmark settings vary; see the base model card for details.
|
| 113 |
+
|
| 114 |
+
## Run in llama.cpp
|
| 115 |
+
|
| 116 |
+
```bash
|
| 117 |
+
git clone https://github.com/ggerganov/llama.cpp
|
| 118 |
+
cmake llama.cpp -B llama.cpp/build -DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
|
| 119 |
+
cmake --build llama.cpp/build --config Release -j --target llama-cli llama-server
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
```bash
|
| 123 |
+
./llama.cpp/build/bin/llama-server \
|
| 124 |
+
-hf AtomicChat/GLM-5.3-Flash-GGUF:UD-Q4_K_XL \
|
| 125 |
+
--jinja -ngl 99 -c 8192 -fa on
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
## How these were made
|
| 129 |
+
|
| 130 |
+
1. Download `zai-org/GLM-5.3-Flash` (original weights).
|
| 131 |
+
2. Convert to GGUF with a [llama.cpp](https://github.com/ggerganov/llama.cpp) build that supports the GLM-5.3-Flash architecture (hybrid sparse + linear attention, mHC).
|
| 132 |
+
3. Build an importance matrix over our public [calibration corpora](https://huggingface.co/datasets/AtomicChat/calib-corpora).
|
| 133 |
+
4. Quantize the ladder with `--imatrix`; `UD-Q4_K_XL` additionally pins the token-embedding and output tensors to `Q8_0`.
|
| 134 |
+
|
| 135 |
+
## License
|
| 136 |
+
|
| 137 |
+
Released by Z.ai (zai-org) under the MIT license. Quantized by Atomic Chat.
|
| 138 |
+
|