Z.ai · First MLX build 17 Apr 2025
GLM-4-9B-0414
MLX
Text mit
A 9.4B parameter text generation model from Z.ai, with 4 MLX builds, from 4-bit to bf16.
- Parameters
- 9.4B From Hugging Face
- Quantisation
- 4-bit GLM-4-9B-0414-4bit
- Memory needed
- 8 GB Estimate, unified memory
- Download
- 5.3 GB Weights, estimated
- Downloads
- 857 This build, last 30 days
- Task
- Text generation Text
- MLX builds
- 4 On mlx-community
- Devices
- Mac Apple silicon
Memory
Will it fit?Needs about 8 GB at 4-bit
8 GB
16 GB
24 GB
32 GB
64 GB
128 GB
Fits with headroomTight, close other appsWon’t fit
Estimated from the size of the weights, plus a fifth for context and working memory and 2 GB for macOS and your apps. Long contexts need more.
Run it
Terminal · mlx-lm$ pip install -U mlx-lm
$ mlx_lm.generate --model mlx-community/GLM-4-9B-0414-4bit --prompt "Hello"
MLX builds
4 on mlx-community| GLM-4-9B-0414-4bit | 4-bit | 5.3 GB | 8 GB | 857 |
|---|---|---|---|---|
| GLM-4-9B-0414-6bit | 6-bit | 7.6 GB | 11 GB | 58 |
| GLM-4-9B-0414-8bit | 8-bit | 10.0 GB | 14 GB | 112 |
| GLM-4-9B-0414-bf16 | bf16 | 18.8 GB | 24 GB | 60 |
Sizes are estimated from Hugging Face’s parameter counts and the quantisation. Downloads are for the last 30 days.