LLMs ·

GLM-4 9B Chat 1M

Parameters
9.5B
Architecture
Dense
Max context
1,024K tokens
License
glm-4
Released
2024-06

How to run it

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/bartowski/glm-4-9b-chat-1m-GGUF (opens in a new tab)

ollama run hf.co/bartowski/glm-4-9b-chat-1m-GGUF

Original weights · Hugging Face

Full-precision files from Zhipu AI, for fine-tuning, vLLM, Transformers.

huggingface.co/zai-org/glm-4-9b-chat-1m (opens in a new tab)

No sign-in needed.

Apps that run GLM-4 9B Chat 1M

Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or device in the Model Finder for an exact answer.

Mac (Apple silicon)

LM Studio

Runs the MLX build, typically 20–35% faster than GGUF for a model with 9.5B active parameters on Apple silicon.

Also good:

Windows PC, NVIDIA GPU

LM Studio

Point-and-click: search, download and chat in one window.

Also good:

Windows PC, AMD Radeon

Lemonade

AMD’s own app: llama.cpp tuned for Radeon on Vulkan and ROCm.

Also good:

Linux, NVIDIA GPU

LM Studio

Point-and-click: search, download and chat in one window.

Also good:

Linux server, 80 GB+ GPUs

vLLM

The full model fits in GPU memory at 8-bit, so it can batch many requests: best for serving a team or an app.

Also good:

App Type Opens it as Systems Engine Start
LM Studio Desktop app GGUF or MLX macOSWindowsLinux llama.cpp, MLX Open in LM Studio
Ollama CLI + API GGUF from Hugging Face macOSWindowsLinux llama.cpp, MLX
ollama run hf.co/bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M
llama.cpp CLI + API GGUF macOSWindowsLinux llama.cpp
llama-server -hf bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M
Jan Desktop app GGUF or MLX macOSWindowsLinux llama.cpp, MLX Open in Jan
MLX LM CLI + API MLX macOS MLX
mlx_lm.chat --model mlx-community/glm-4-9b-chat-1m-4bit
vLLM Server Original weights WSLWindowsLinux vLLM
vllm serve zai-org/glm-4-9b-chat-1m
SGLang Server Original weights WSLWindowsLinux SGLang
python3 -m sglang.launch_server --model-path zai-org/glm-4-9b-chat-1m
Docker Model Runner CLI + API GGUF macOSWindowsLinux llama.cpp, vLLM
docker model run hf.co/bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M
Lemonade Desktop app GGUF macOSWindowsLinux llama.cpp, ONNX Runtime GenAI
lemonade pull bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M
Unsloth Desktop Desktop app GGUF or MLX macOSWindowsLinux llama.cpp, MLX, stable-diffusion.cpp Open in Unsloth Desktop
Atomic Chat Desktop app GGUF or MLX macOSWindowsLinux llama.cpp, MLX-VLM Open in Atomic Chat
GPT4All Desktop app GGUF macOSWindowsLinux llama.cpp Get GPT4All
KoboldCpp Desktop app GGUF macOSWindowsLinux llama.cpp Get KoboldCpp
Text Generation WebUI Desktop app GGUF macOSWindowsLinux llama.cpp, Transformers, ExLlamaV3 Get Text Generation WebUI
llamafile CLI + API GGUF macOSWindowsLinux llama.cpp Get llamafile
Msty Studio Desktop app GGUF or MLX macOSWindowsLinux Ollama, llama.cpp, MLX Open in Msty Studio
Llama (macOS) Desktop app GGUF macOS llama.cpp Open in Llama (macOS)
RecurseChat Desktop app GGUF macOS llama.cpp Open in RecurseChat
Inferencer Desktop app MLX macOS MLX Get Inferencer
node-llama-cpp Library GGUF macOSWindowsLinux llama.cpp Get node-llama-cpp
exo Server MLX macOSLinux MLX Get exo
PocketPal AI Mobile app GGUF iOSAndroid llama.cpp App Store Google Play
ChatterUI Mobile app GGUF Android llama.cpp Download the APK
LLM Farm Mobile app GGUF iOS llama.cpp Not on the App Store or TestFlight for now (checked 2026-11-09).

Which apps can open a model depends on the files published for it: GGUF for llama.cpp-based apps, MLX for Apple’s engine, the original weights for vLLM and SGLang. Compare every app.

Memory needed

Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps. Try another context length.

Quantization Quality Weights Total at 8K context Total at 32K context Download
Q2_K Low 3.8 GB 5.1 GB 7.1 GB GGUF (opens in a new tab)
Q3_K_M Low 4.6 GB 5.9 GB 7.9 GB GGUF (opens in a new tab)
Q4_K_M Good 5.8 GB 7.1 GB 9.1 GB GGUF (opens in a new tab)
Q5_K_M High 6.7 GB 8.0 GB 10.0 GB GGUF (opens in a new tab)
Q6_K High 7.8 GB 9.0 GB 11.1 GB GGUF (opens in a new tab)
Q8_0 Very high 10.0 GB 11.3 GB 13.3 GB GGUF (opens in a new tab)
F16 Full 19.0 GB 20.2 GB 22.2 GB GGUF (opens in a new tab) Original weights (opens in a new tab)

Best hardware for GLM-4 9B Chat 1M

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A380 (launch price $139) at Q2_K.

Quality Hardware Quant Memory Speed Runs
48Fair quality (C) · 48 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 4070 Ti SUPERNVIDIA GeForce RTX 4070 Ti SUPER Q8_0 12.1 GB / 16.0 GB 44.3 tok/s Runs great
48Fair quality (C) · 48 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 4080 SUPERNVIDIA GeForce RTX 4080 SUPER Q8_0 12.1 GB / 16.0 GB 48.5 tok/s Runs great
48Fair quality (C) · 48 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. ASUS TUF Gaming GeForce RTX 5070 Ti 16GB GDDR7 OC EditionNVIDIA GeForce RTX 5070 Ti Q8_0 12.1 GB / 16.0 GB 59.1 tok/s Runs great
48Fair quality (C) · 48 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 5080 Founders EditionNVIDIA GeForce RTX 5080 Q8_0 12.1 GB / 16.0 GB 63.3 tok/s Runs great
48Fair quality (C) · 48 of 100: how capable the model is at F16, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 5090 Founders EditionNVIDIA GeForce RTX 5090 F16 21.8 GB / 32.0 GB 54.4 tok/s Runs great
47Fair quality (C) · 47 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 4070 SUPERNVIDIA GeForce RTX 4070 SUPER Q6_K 9.6 GB / 12.0 GB 45.3 tok/s Runs great
46Fair quality (C) · 46 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. NVIDIA GeForce RTX 3060 12GBNVIDIA GeForce RTX 3060 12GB Q5_K_M 8.6 GB / 12.0 GB 38.5 tok/s Runs great
47Fair quality (C) · 47 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. Sapphire NITRO+ AMD Radeon RX 9070 XT OCAMD Radeon RX 9070 XT Q6_K 9.8 GB / 16.0 GB 49.5 tok/s Runs great
47Fair quality (C) · 47 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. ASUS Dual GeForce RTX 5060 Ti 16GB GDDR7 OC EditionNVIDIA GeForce RTX 5060 Ti 16GB Q6_K 9.8 GB / 16.0 GB 40.2 tok/s Runs great
45Fair quality (C) · 45 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking. Intel Arc B580 Limited EditionIntel Arc B580 Q4_K_M 7.7 GB / 12.0 GB 45.1 tok/s Runs great

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.

Was this page helpful?