Image-Text-to-Text
MLX
Safetensors
English
Chinese
glm5_next
mlx-vlm
omlx
glm
glm5
glm5-next
native-mtp
speculative-decoding
mixture-of-experts
multimodal
vision-language
quantized
apple-silicon
conversational
4-bit precision
Instructions to use TensorFold/GLM-5.3-Flash-MLX-4bit-MTP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use TensorFold/GLM-5.3-Flash-MLX-4bit-MTP with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("TensorFold/GLM-5.3-Flash-MLX-4bit-MTP") config = load_config("TensorFold/GLM-5.3-Flash-MLX-4bit-MTP") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use TensorFold/GLM-5.3-Flash-MLX-4bit-MTP with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "TensorFold/GLM-5.3-Flash-MLX-4bit-MTP"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "TensorFold/GLM-5.3-Flash-MLX-4bit-MTP" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use TensorFold/GLM-5.3-Flash-MLX-4bit-MTP with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "TensorFold/GLM-5.3-Flash-MLX-4bit-MTP"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default TensorFold/GLM-5.3-Flash-MLX-4bit-MTP
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TensorFold/GLM-5.3-Flash-MLX-4bit-MTP with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "TensorFold/GLM-5.3-Flash-MLX-4bit-MTP"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "TensorFold/GLM-5.3-Flash-MLX-4bit-MTP" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add Mac memory chooser and reproducible demo prompt
Browse files
README.md
CHANGED
|
@@ -24,12 +24,14 @@ tags:
|
|
| 24 |
- apple-silicon
|
| 25 |
---
|
| 26 |
|
|
|
|
| 27 |
<div align="center">
|
| 28 |
<a href="https://huggingface.co/zai-org/GLM-5.3-Flash">
|
| 29 |
<img src="zai-logo.png" width="96" height="96" alt="Z.ai logo">
|
| 30 |
</a>
|
| 31 |
</div>
|
| 32 |
|
|
|
|
| 33 |
<p align="center">
|
| 34 |
<img src="https://img.shields.io/badge/Z.ai-GLM--5.3--Flash-111827?style=for-the-badge" alt="Z.ai GLM-5.3-Flash">
|
| 35 |
<img src="https://img.shields.io/badge/Apple_Silicon-MLX-000000?style=for-the-badge&logo=apple&logoColor=white" alt="Apple silicon MLX">
|
|
@@ -37,12 +39,15 @@ tags:
|
|
| 37 |
<img src="https://img.shields.io/badge/Vontra-MLX-6E56CF?style=for-the-badge&logo=huggingface&logoColor=white" alt="Vontra MLX">
|
| 38 |
</p>
|
| 39 |
|
|
|
|
| 40 |
<h1 align="center">GLM-5.3-Flash — MLX 4-bit with native MTP</h1>
|
| 41 |
|
|
|
|
| 42 |
<p align="center">
|
| 43 |
A native Apple-silicon conversion of <a href="https://huggingface.co/zai-org/GLM-5.3-Flash">zai-org/GLM-5.3-Flash</a>, quantised from the official checkpoint with its matching next-token prediction block preserved.
|
| 44 |
</p>
|
| 45 |
|
|
|
|
| 46 |
<p align="center">
|
| 47 |
<a href="https://huggingface.co/zai-org/GLM-5.3-Flash">Original model</a> ·
|
| 48 |
<a href="https://z.ai/blog/glm-5.3-flash">Z.ai overview</a> ·
|
|
@@ -51,8 +56,10 @@ tags:
|
|
| 51 |
<a href="LICENSE">MIT licence</a>
|
| 52 |
</p>
|
| 53 |
|
|
|
|
| 54 |
## At a glance
|
| 55 |
|
|
|
|
| 56 |
| Item | Value |
|
| 57 |
| --- | --- |
|
| 58 |
| Base model | [`zai-org/GLM-5.3-Flash`](https://huggingface.co/zai-org/GLM-5.3-Flash) |
|
|
@@ -70,10 +77,13 @@ tags:
|
|
| 70 |
| Configured context | 1,048,576 tokens |
|
| 71 |
| Architecture | `glm5_next`, multimodal sparse MoE |
|
| 72 |
|
|
|
|
| 73 |
Modules that are not eligible for MLX quantisation remain at their source-compatible precision. The checkpoint preserves the upstream tokenizer, chat template, multimodal processor, generation configuration, and native MTP metadata.
|
| 74 |
|
|
|
|
| 75 |
## Quantisation recipe
|
| 76 |
|
|
|
|
| 77 |
| Component | Treatment |
|
| 78 |
| --- | --- |
|
| 79 |
| Eligible language projections | 4-bit affine, group size 64 |
|
|
@@ -84,12 +94,16 @@ Modules that are not eligible for MLX quantisation remain at their source-compat
|
|
| 84 |
| Other non-quantisable tensors | Preserved at source-compatible precision |
|
| 85 |
| Converter | Vontra streamed MLX affine converter using MLX 0.32.0 |
|
| 86 |
|
|
|
|
| 87 |
This is a weight-only post-training quantisation. It does not retrain or fine-tune the upstream model.
|
| 88 |
|
|
|
|
| 89 |
## Runtime compatibility
|
| 90 |
|
|
|
|
| 91 |
GLM-5.3-Flash uses the new `glm5_next` multimodal architecture, hybrid linear and sparse attention, manifold-constrained hyper-connections, and an embedded next-token prediction layer. All four features need explicit runtime support.
|
| 92 |
|
|
|
|
| 93 |
| Runtime path | Status |
|
| 94 |
| --- | --- |
|
| 95 |
| oMLX `0.6.3rc3` | Validated for baseline generation; native MTP tensors recognised |
|
|
@@ -97,24 +111,31 @@ GLM-5.3-Flash uses the new `glm5_next` multimodal architecture, hybrid linear an
|
|
| 97 |
| MLX-VLM `0.6.3 with GLM5 Next runtime integration` | Required for `glm5_next` model and vision loading |
|
| 98 |
| Older or stock builds without GLM5 Next MTP integration | Unsupported for native MTP |
|
| 99 |
|
|
|
|
| 100 |
> [!IMPORTANT]
|
| 101 |
> A runtime that can load `glm5_next` is not automatically able to use its embedded MTP layer. Native MTP requires the GLM5 Next-specific draft, verification, and cache-reconciliation path. If that integration is absent, keep MTP disabled or use a compatible build.
|
| 102 |
|
|
|
|
| 103 |
## Download and use
|
| 104 |
|
|
|
|
| 105 |
```bash
|
| 106 |
hf download Vontra/GLM-5.3-Flash-MLX-4bit-MTP \
|
| 107 |
--local-dir GLM-5.3-Flash-MLX-4bit-MTP
|
| 108 |
```
|
| 109 |
|
|
|
|
| 110 |
In a compatible oMLX build:
|
| 111 |
|
|
|
|
| 112 |
1. Add the downloaded model directory.
|
| 113 |
2. Keep **Native MTP** disabled for the currently validated serving path.
|
| 114 |
3. Start a new conversation after changing model settings so the runtime rebuilds the model and caches.
|
| 115 |
|
|
|
|
| 116 |
For baseline generation without native MTP, a compatible MLX-VLM installation can use:
|
| 117 |
|
|
|
|
| 118 |
```bash
|
| 119 |
python -m mlx_vlm.generate \
|
| 120 |
--model Vontra/GLM-5.3-Flash-MLX-4bit-MTP \
|
|
@@ -122,14 +143,18 @@ python -m mlx_vlm.generate \
|
|
| 122 |
--max-tokens 512
|
| 123 |
```
|
| 124 |
|
|
|
|
| 125 |
## Apple M3 Studio performance
|
| 126 |
|
|
|
|
| 127 |
Measured on an Apple M3 Studio with a warmed model state:
|
| 128 |
|
|
|
|
| 129 |
| Mode | Prompt tokens | Output tokens | Decode | Model memory |
|
| 130 |
| --- | ---: | ---: | ---: | ---: |
|
| 131 |
| Baseline, MTP off | 63 | 512 | 6.2657 tokens/s | 173.39 GB |
|
| 132 |
|
|
|
|
| 133 |
| Benchmark detail | Value |
|
| 134 |
| --- | --- |
|
| 135 |
| Chip | Apple M3 Ultra |
|
|
@@ -139,10 +164,13 @@ Measured on an Apple M3 Studio with a warmed model state:
|
|
| 139 |
| Warm-up | one 64-token greedy request discarded before measurement |
|
| 140 |
| Sampling | greedy decoding, temperature 0, top-p 1, top-k 0, fixed seed 6330 |
|
| 141 |
|
|
|
|
| 142 |
These figures are a local reference, not a cross-platform guarantee. Prompt shape, image input, context growth, draft acceptance, sampling, memory pressure, thermal state, and runtime revisions can materially change performance.
|
| 143 |
|
|
|
|
| 144 |
### Native MTP status
|
| 145 |
|
|
|
|
| 146 |
The checkpoint contains the official matching NextN layer. A short deterministic
|
| 147 |
MTP smoke test produced the exact requested output and recorded an accepted
|
| 148 |
draft. Sustained testing on the current oMLX build exposed repeated speculative
|
|
@@ -151,10 +179,13 @@ therefore preserved for compatible future runtimes but is **not recommended for
|
|
| 151 |
sustained serving on the validated build**. Keep MTP disabled unless your
|
| 152 |
runtime has corrected that scheduler behaviour.
|
| 153 |
|
|
|
|
| 154 |
## Architecture
|
| 155 |
|
|
|
|
| 156 |
GLM-5.3-Flash is Z.ai's first natively multimodal GLM-5 model. It combines KDA linear-attention layers with periodic sparse-attention layers, a sparse mixture-of-experts feed-forward stack, manifold-constrained hyper-connections, and a native next-token prediction layer.
|
| 157 |
|
|
|
|
| 158 |
| Architecture detail | Upstream value |
|
| 159 |
| --- | ---: |
|
| 160 |
| Parameters | 320B total / 18B active |
|
|
@@ -170,10 +201,13 @@ GLM-5.3-Flash is Z.ai's first natively multimodal GLM-5 model. It combines KDA l
|
|
| 170 |
| Vision encoder | 24 layers, 1,024 hidden size, 448-pixel input |
|
| 171 |
| Configured maximum context | 1,048,576 tokens |
|
| 172 |
|
|
|
|
| 173 |
See the [official model card](https://huggingface.co/zai-org/GLM-5.3-Flash), [Z.ai overview](https://z.ai/blog/glm-5.3-flash), and [GLM-5 technical report](https://arxiv.org/abs/2602.15763) for upstream training, evaluations, intended uses, and safety guidance.
|
| 174 |
|
|
|
|
| 175 |
## Validation
|
| 176 |
|
|
|
|
| 177 |
| Check | Result |
|
| 178 |
| --- | --- |
|
| 179 |
| Config, processor, tokenizer, and chat-template files present | Passed — official tokenizer, updated chat template, processor, generation config, and MIT licence included |
|
|
@@ -186,10 +220,13 @@ See the [official model card](https://huggingface.co/zai-org/GLM-5.3-Flash), [Z.
|
|
| 186 |
| Vision tensor structure | Passed structurally — all 347 official vision tensors are preserved; image generation was not benchmarked |
|
| 187 |
| Long-context generation | Not claimed — configured context metadata is preserved, but no long-context generation result is reported |
|
| 188 |
|
|
|
|
| 189 |
Validation used oMLX `0.6.3rc3`, MLX `0.32.0`, and MLX-VLM `0.6.3 with GLM5 Next runtime integration`.
|
| 190 |
|
|
|
|
| 191 |
## Limitations
|
| 192 |
|
|
|
|
| 193 |
- Quantisation can reduce quality relative to the official checkpoint, especially on difficult reasoning, tool-use, multilingual, vision, and long-context workloads.
|
| 194 |
- Native MTP improves speed only when draft acceptance offsets drafting and verification cost. It may be neutral or slower for unpredictable output.
|
| 195 |
- The configured one-million-token context does not imply that every Apple-silicon system has enough memory for a full-context request.
|
|
@@ -197,16 +234,22 @@ Validation used oMLX `0.6.3rc3`, MLX `0.32.0`, and MLX-VLM `0.6.3 with GLM5 Next
|
|
| 197 |
- Runtime support for `glm5_next` and its native MTP path is evolving. Use the exact validated versions listed in this card.
|
| 198 |
- Validate numerical behaviour, output quality, safety, and tool use on representative workloads before production deployment.
|
| 199 |
|
|
|
|
| 200 |
This is a community quantisation and is not an official Z.ai release.
|
| 201 |
|
|
|
|
| 202 |
## Licence and attribution
|
| 203 |
|
|
|
|
| 204 |
The upstream model is released under the **MIT License**. The required licence text is included in this repository.
|
| 205 |
|
|
|
|
| 206 |
Model design, training, upstream evaluations, and documentation belong to Z.ai and the GLM-5 contributors. The MLX conversion, Apple-silicon validation, native-MTP integration work, and packaging are provided by [Vontra](https://huggingface.co/Vontra).
|
| 207 |
|
|
|
|
| 208 |
If you use this model in research, cite the upstream report:
|
| 209 |
|
|
|
|
| 210 |
```bibtex
|
| 211 |
@misc{glm5team2026glm5,
|
| 212 |
title = {GLM-5: from Vibe Coding to Agentic Engineering},
|
|
@@ -218,3 +261,35 @@ If you use this model in research, cite the upstream report:
|
|
| 218 |
url = {https://arxiv.org/abs/2602.15763}
|
| 219 |
}
|
| 220 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
- apple-silicon
|
| 25 |
---
|
| 26 |
|
| 27 |
+
|
| 28 |
<div align="center">
|
| 29 |
<a href="https://huggingface.co/zai-org/GLM-5.3-Flash">
|
| 30 |
<img src="zai-logo.png" width="96" height="96" alt="Z.ai logo">
|
| 31 |
</a>
|
| 32 |
</div>
|
| 33 |
|
| 34 |
+
|
| 35 |
<p align="center">
|
| 36 |
<img src="https://img.shields.io/badge/Z.ai-GLM--5.3--Flash-111827?style=for-the-badge" alt="Z.ai GLM-5.3-Flash">
|
| 37 |
<img src="https://img.shields.io/badge/Apple_Silicon-MLX-000000?style=for-the-badge&logo=apple&logoColor=white" alt="Apple silicon MLX">
|
|
|
|
| 39 |
<img src="https://img.shields.io/badge/Vontra-MLX-6E56CF?style=for-the-badge&logo=huggingface&logoColor=white" alt="Vontra MLX">
|
| 40 |
</p>
|
| 41 |
|
| 42 |
+
|
| 43 |
<h1 align="center">GLM-5.3-Flash — MLX 4-bit with native MTP</h1>
|
| 44 |
|
| 45 |
+
|
| 46 |
<p align="center">
|
| 47 |
A native Apple-silicon conversion of <a href="https://huggingface.co/zai-org/GLM-5.3-Flash">zai-org/GLM-5.3-Flash</a>, quantised from the official checkpoint with its matching next-token prediction block preserved.
|
| 48 |
</p>
|
| 49 |
|
| 50 |
+
|
| 51 |
<p align="center">
|
| 52 |
<a href="https://huggingface.co/zai-org/GLM-5.3-Flash">Original model</a> ·
|
| 53 |
<a href="https://z.ai/blog/glm-5.3-flash">Z.ai overview</a> ·
|
|
|
|
| 56 |
<a href="LICENSE">MIT licence</a>
|
| 57 |
</p>
|
| 58 |
|
| 59 |
+
|
| 60 |
## At a glance
|
| 61 |
|
| 62 |
+
|
| 63 |
| Item | Value |
|
| 64 |
| --- | --- |
|
| 65 |
| Base model | [`zai-org/GLM-5.3-Flash`](https://huggingface.co/zai-org/GLM-5.3-Flash) |
|
|
|
|
| 77 |
| Configured context | 1,048,576 tokens |
|
| 78 |
| Architecture | `glm5_next`, multimodal sparse MoE |
|
| 79 |
|
| 80 |
+
|
| 81 |
Modules that are not eligible for MLX quantisation remain at their source-compatible precision. The checkpoint preserves the upstream tokenizer, chat template, multimodal processor, generation configuration, and native MTP metadata.
|
| 82 |
|
| 83 |
+
|
| 84 |
## Quantisation recipe
|
| 85 |
|
| 86 |
+
|
| 87 |
| Component | Treatment |
|
| 88 |
| --- | --- |
|
| 89 |
| Eligible language projections | 4-bit affine, group size 64 |
|
|
|
|
| 94 |
| Other non-quantisable tensors | Preserved at source-compatible precision |
|
| 95 |
| Converter | Vontra streamed MLX affine converter using MLX 0.32.0 |
|
| 96 |
|
| 97 |
+
|
| 98 |
This is a weight-only post-training quantisation. It does not retrain or fine-tune the upstream model.
|
| 99 |
|
| 100 |
+
|
| 101 |
## Runtime compatibility
|
| 102 |
|
| 103 |
+
|
| 104 |
GLM-5.3-Flash uses the new `glm5_next` multimodal architecture, hybrid linear and sparse attention, manifold-constrained hyper-connections, and an embedded next-token prediction layer. All four features need explicit runtime support.
|
| 105 |
|
| 106 |
+
|
| 107 |
| Runtime path | Status |
|
| 108 |
| --- | --- |
|
| 109 |
| oMLX `0.6.3rc3` | Validated for baseline generation; native MTP tensors recognised |
|
|
|
|
| 111 |
| MLX-VLM `0.6.3 with GLM5 Next runtime integration` | Required for `glm5_next` model and vision loading |
|
| 112 |
| Older or stock builds without GLM5 Next MTP integration | Unsupported for native MTP |
|
| 113 |
|
| 114 |
+
|
| 115 |
> [!IMPORTANT]
|
| 116 |
> A runtime that can load `glm5_next` is not automatically able to use its embedded MTP layer. Native MTP requires the GLM5 Next-specific draft, verification, and cache-reconciliation path. If that integration is absent, keep MTP disabled or use a compatible build.
|
| 117 |
|
| 118 |
+
|
| 119 |
## Download and use
|
| 120 |
|
| 121 |
+
|
| 122 |
```bash
|
| 123 |
hf download Vontra/GLM-5.3-Flash-MLX-4bit-MTP \
|
| 124 |
--local-dir GLM-5.3-Flash-MLX-4bit-MTP
|
| 125 |
```
|
| 126 |
|
| 127 |
+
|
| 128 |
In a compatible oMLX build:
|
| 129 |
|
| 130 |
+
|
| 131 |
1. Add the downloaded model directory.
|
| 132 |
2. Keep **Native MTP** disabled for the currently validated serving path.
|
| 133 |
3. Start a new conversation after changing model settings so the runtime rebuilds the model and caches.
|
| 134 |
|
| 135 |
+
|
| 136 |
For baseline generation without native MTP, a compatible MLX-VLM installation can use:
|
| 137 |
|
| 138 |
+
|
| 139 |
```bash
|
| 140 |
python -m mlx_vlm.generate \
|
| 141 |
--model Vontra/GLM-5.3-Flash-MLX-4bit-MTP \
|
|
|
|
| 143 |
--max-tokens 512
|
| 144 |
```
|
| 145 |
|
| 146 |
+
|
| 147 |
## Apple M3 Studio performance
|
| 148 |
|
| 149 |
+
|
| 150 |
Measured on an Apple M3 Studio with a warmed model state:
|
| 151 |
|
| 152 |
+
|
| 153 |
| Mode | Prompt tokens | Output tokens | Decode | Model memory |
|
| 154 |
| --- | ---: | ---: | ---: | ---: |
|
| 155 |
| Baseline, MTP off | 63 | 512 | 6.2657 tokens/s | 173.39 GB |
|
| 156 |
|
| 157 |
+
|
| 158 |
| Benchmark detail | Value |
|
| 159 |
| --- | --- |
|
| 160 |
| Chip | Apple M3 Ultra |
|
|
|
|
| 164 |
| Warm-up | one 64-token greedy request discarded before measurement |
|
| 165 |
| Sampling | greedy decoding, temperature 0, top-p 1, top-k 0, fixed seed 6330 |
|
| 166 |
|
| 167 |
+
|
| 168 |
These figures are a local reference, not a cross-platform guarantee. Prompt shape, image input, context growth, draft acceptance, sampling, memory pressure, thermal state, and runtime revisions can materially change performance.
|
| 169 |
|
| 170 |
+
|
| 171 |
### Native MTP status
|
| 172 |
|
| 173 |
+
|
| 174 |
The checkpoint contains the official matching NextN layer. A short deterministic
|
| 175 |
MTP smoke test produced the exact requested output and recorded an accepted
|
| 176 |
draft. Sustained testing on the current oMLX build exposed repeated speculative
|
|
|
|
| 179 |
sustained serving on the validated build**. Keep MTP disabled unless your
|
| 180 |
runtime has corrected that scheduler behaviour.
|
| 181 |
|
| 182 |
+
|
| 183 |
## Architecture
|
| 184 |
|
| 185 |
+
|
| 186 |
GLM-5.3-Flash is Z.ai's first natively multimodal GLM-5 model. It combines KDA linear-attention layers with periodic sparse-attention layers, a sparse mixture-of-experts feed-forward stack, manifold-constrained hyper-connections, and a native next-token prediction layer.
|
| 187 |
|
| 188 |
+
|
| 189 |
| Architecture detail | Upstream value |
|
| 190 |
| --- | ---: |
|
| 191 |
| Parameters | 320B total / 18B active |
|
|
|
|
| 201 |
| Vision encoder | 24 layers, 1,024 hidden size, 448-pixel input |
|
| 202 |
| Configured maximum context | 1,048,576 tokens |
|
| 203 |
|
| 204 |
+
|
| 205 |
See the [official model card](https://huggingface.co/zai-org/GLM-5.3-Flash), [Z.ai overview](https://z.ai/blog/glm-5.3-flash), and [GLM-5 technical report](https://arxiv.org/abs/2602.15763) for upstream training, evaluations, intended uses, and safety guidance.
|
| 206 |
|
| 207 |
+
|
| 208 |
## Validation
|
| 209 |
|
| 210 |
+
|
| 211 |
| Check | Result |
|
| 212 |
| --- | --- |
|
| 213 |
| Config, processor, tokenizer, and chat-template files present | Passed — official tokenizer, updated chat template, processor, generation config, and MIT licence included |
|
|
|
|
| 220 |
| Vision tensor structure | Passed structurally — all 347 official vision tensors are preserved; image generation was not benchmarked |
|
| 221 |
| Long-context generation | Not claimed — configured context metadata is preserved, but no long-context generation result is reported |
|
| 222 |
|
| 223 |
+
|
| 224 |
Validation used oMLX `0.6.3rc3`, MLX `0.32.0`, and MLX-VLM `0.6.3 with GLM5 Next runtime integration`.
|
| 225 |
|
| 226 |
+
|
| 227 |
## Limitations
|
| 228 |
|
| 229 |
+
|
| 230 |
- Quantisation can reduce quality relative to the official checkpoint, especially on difficult reasoning, tool-use, multilingual, vision, and long-context workloads.
|
| 231 |
- Native MTP improves speed only when draft acceptance offsets drafting and verification cost. It may be neutral or slower for unpredictable output.
|
| 232 |
- The configured one-million-token context does not imply that every Apple-silicon system has enough memory for a full-context request.
|
|
|
|
| 234 |
- Runtime support for `glm5_next` and its native MTP path is evolving. Use the exact validated versions listed in this card.
|
| 235 |
- Validate numerical behaviour, output quality, safety, and tool use on representative workloads before production deployment.
|
| 236 |
|
| 237 |
+
|
| 238 |
This is a community quantisation and is not an official Z.ai release.
|
| 239 |
|
| 240 |
+
|
| 241 |
## Licence and attribution
|
| 242 |
|
| 243 |
+
|
| 244 |
The upstream model is released under the **MIT License**. The required licence text is included in this repository.
|
| 245 |
|
| 246 |
+
|
| 247 |
Model design, training, upstream evaluations, and documentation belong to Z.ai and the GLM-5 contributors. The MLX conversion, Apple-silicon validation, native-MTP integration work, and packaging are provided by [Vontra](https://huggingface.co/Vontra).
|
| 248 |
|
| 249 |
+
|
| 250 |
If you use this model in research, cite the upstream report:
|
| 251 |
|
| 252 |
+
|
| 253 |
```bibtex
|
| 254 |
@misc{glm5team2026glm5,
|
| 255 |
title = {GLM-5: from Vibe Coding to Agentic Engineering},
|
|
|
|
| 261 |
url = {https://arxiv.org/abs/2602.15763}
|
| 262 |
}
|
| 263 |
```
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
<!-- vontra-chooser-start -->
|
| 268 |
+
## Choose for your Mac
|
| 269 |
+
|
| 270 |
+
[64GB Macs](https://huggingface.co/collections/Vontra/mlx-models-for-64gb-macs-6a9fefda17932216ec9ab457) · [128GB Macs](https://huggingface.co/collections/Vontra/mlx-models-for-128gb-macs-6a9ff0abd31bc9abbe7922d7) · [256GB Macs](https://huggingface.co/collections/Vontra/mlx-models-for-256gb-macs-6a9ff0ef9fed7c5bdca15e9b)
|
| 271 |
+
|
| 272 |
+
No measured memory tier is assigned here. The collections use published M3 Studio peaks with at least 25% nominal headroom; fit on other Macs is an estimate, and full context is not guaranteed. Start with short context and one request.
|
| 273 |
+
|
| 274 |
+
### Runtime and evidence
|
| 275 |
+
|
| 276 |
+
oMLX version mentioned in the existing card: **0.6.3rc3**; consult its compatibility notes for whether this was tested and any required integrations. The original performance tables retain their benchmark conditions and speed figures; this documentation update adds no new test results.
|
| 277 |
+
|
| 278 |
+
### Quick start and demo prompt
|
| 279 |
+
|
| 280 |
+
```bash
|
| 281 |
+
hf download Vontra/GLM-5.3-Flash-MLX-4bit-MTP --local-dir ./models/GLM-5.3-Flash-MLX-4bit-MTP
|
| 282 |
+
```
|
| 283 |
+
|
| 284 |
+
Add the downloaded folder to oMLX model directories, refresh the list, and follow this card's architecture and MTP compatibility requirements before loading.
|
| 285 |
+
|
| 286 |
+
Try this in a new chat with a 128-token output limit:
|
| 287 |
+
|
| 288 |
+
```text
|
| 289 |
+
Explain why the sky looks blue in three short sentences.
|
| 290 |
+
```
|
| 291 |
+
|
| 292 |
+
This is a demo prompt to try, not a recorded successful run; a captured demonstration for this documentation update is not yet available.
|
| 293 |
+
|
| 294 |
+
[Follow Vontra for new Apple Silicon releases and fixes.](https://huggingface.co/Vontra)
|
| 295 |
+
<!-- vontra-chooser-end -->
|