Newer models available: Zhipu followed GLM-4.6 with the GLM-5 line in 2026; the current one is covered on our GLM-5.2 page. This page covers GLM-4-9B, the GLM-4 model that runs on a home PC.
Run GLM-4 9B Locally
8GB GPU, 72.4 MMLU, Ollama Setup
GLM-4-9B-Chat is an open-source 9B parameter model from THUDM (Tsinghua University) / Zhipu AI -- one of the strongest Chinese-English bilingual local LLMs available. Its model card reports 72.4 on MMLU and 75.6 on C-Eval, making it a strong choice for bilingual local AI deployment.
Run it locally via Ollama with just ollama run glm4 -- a 5.5 GB download that needs about 6.6 GB of memory at a 4K context, so it fits an 8 GB graphics card. This guide covers the published benchmarks, VRAM per quantisation, and step-by-step local setup.
Important: About "GLM-4.6"
GLM-4.6 is a different, much larger model. Zhipu (Z.ai) released GLM-4.6 at the end of September 2025: a Mixture-of-Experts model of about 357B parameters with a roughly 200K-token context, under the MIT licence. It needs server hardware. The GLM-4 family from June 2024 (GLM-4-9B, GLM-4-9B-Chat and GLM-4V-9B for vision) is the one that runs on a home PC.
This page covers the GLM-4-9B-Chat model -- the most practical variant for local deployment. All benchmarks and specifications on this page refer to GLM-4-9B-Chat as reported by THUDM in the official GLM-4 GitHub repository.
GLM-4.6 local requirements: the full BF16 weights are 714 GB. Unsloth's GLM-4.6 GGUFs run from 84 GB (UD-TQ1_0) and 135 GB (UD-Q2_K_XL) to 204 GB (UD-Q4_K_XL) and 379 GB (Q8_0), so even the smallest needs about 96 GB of combined RAM and VRAM, and a 4-bit copy needs a 256 GB machine. There is no local GLM-4.6 tag on Ollama. On an ordinary PC, GLM-4-9B below is the GLM to run.
The URL path "glm-4-6" is retained for historical reasons. For the rest of the GLM family, see our GLM-4 overview page and the GLM-5.2 page.
GLM-4-9B Benchmarks (MMLU)
Comparing GLM-4-9B-Chat against other popular local models on MMLU (5-shot), each as published by its own team. Evaluation setups differ, so treat gaps of a point or two as noise.
GLM-4-9B-Chat Benchmark Summary
Source: the evaluation table on the GLM-4-9B-Chat model card (THUDM). This site has not re-run them; a 4-bit download will score a little lower.
VRAM Requirements by Quantization
GLM-4-9B-Chat download size and memory needed at each quantisation. GLM-4 uses only two key-value groups, so its cache is small: about 41 KB per token, or 0.17 GB at Ollama's 4K default.
| Ollama tag | Download | Memory at 4K | Fits |
|---|---|---|---|
glm4 (q4_0, the default) | 5.46 GB | ~6.6 GB | 8 GB GPU; 8 GB Mac |
glm4:9b-chat-q4_K_M | 6.25 GB | ~7.4 GB | 8 GB GPU, tight; 12 GB comfortable |
glm4:9b-chat-q5_K_M | 7.14 GB | ~8.3 GB | 12 GB GPU |
glm4:9b-chat-q6_K | 8.26 GB | ~9.4 GB | 12 GB GPU |
glm4:9b-chat-q8_0 | 9.99 GB | ~11.2 GB | 12 GB GPU, tight; 16 GB comfortable |
glm4:9b-chat-fp16 | 18.81 GB | ~20.0 GB | 24 GB GPU |
Sizes from the Ollama registry. Memory = download + key-value cache + about 1 GB of buffers, worked out rather than measured. The full 128K context adds about 5.4 GB of cache.
Quantization Guide
Q4_K_M (Recommended)
Q8_0 (High Quality)
FP16 (Full Precision)
Local AI Alternatives
How does GLM-4-9B-Chat stack up against other local models in the 7-9B parameter range? All models listed below can run on consumer hardware.
| Model | Ollama tag | Download | Speed ceiling, RTX 3060 | MMLU (source) | Licence |
|---|---|---|---|---|---|
| GLM-4-9B-Chat | glm4 | 5.46 GB | ~66 tok/s ceiling | 72.4 (THUDM) | GLM-4 License |
| Llama 3.1 8B | llama3.1:8b | 4.92 GB | ~73 tok/s ceiling | 66.7 base (Meta) | Llama 3.1 Community |
| Gemma 2 9B | gemma2:9b | 5.44 GB | ~66 tok/s ceiling | 71.3 (Google) | Gemma Terms of Use |
| Qwen 2.5 7B | qwen2.5:7b | 4.68 GB | ~77 tok/s ceiling | 74.2 base (Qwen) | Apache 2.0 |
| Mistral 7B | mistral:7b | 4.37 GB | ~82 tok/s ceiling | 62.5 v0.1 (Mistral) | Apache 2.0 |
The speed column is an upper bound: an RTX 3060 12GB's 360 GB/s memory bandwidth divided by the file size. Real generation lands below it.
When to Choose GLM-4-9B vs Alternatives
Choose GLM-4-9B-Chat When:
- - You need strong Chinese language understanding (C-Eval: 75.6)
- - Bilingual Chinese-English workflows are required
- - You want good coding ability for the size (HumanEval: 71.8)
- - Chinese document processing is a priority
Consider Alternatives When:
- - Qwen 2.5 7B: Higher MMLU (~74%), also bilingual
- - Llama 3.1 8B: Best English-only general use
- - Gemma 2 9B: Strong reasoning, Google ecosystem
- - Mistral 7B: Fastest inference, smallest VRAM
- - Yi-6B: The other bilingual option, lighter on VRAM but lower MMLU (~63%)
Installation & Setup
Get GLM-4-9B-Chat running locally in minutes using Ollama. Works on macOS, Linux, and Windows.
Install Ollama
Download and install Ollama for your platform
Pull GLM-4 Model
Download the GLM-4-9B-Chat model (Q4_K_M quantization, ~5.5GB)
Run GLM-4 Interactively
Start a chat session with GLM-4-9B-Chat
Serve via API (Optional)
Run Ollama as an OpenAI-compatible API server
System Requirements
Minimum and recommended hardware for running GLM-4-9B-Chat locally at Q4_K_M quantization.
System Requirements
Use Cases & Strengths
GLM-4-9B-Chat excels at bilingual tasks and has competitive coding ability for its parameter count.
Strengths
Chinese Language Understanding
With 75.6 on C-Eval (THUDM's figure), GLM-4-9B is one of the strongest open-source models of its size for Chinese language comprehension. It handles Chinese idioms, classical references, and technical Chinese effectively.
Code Generation
HumanEval score of ~71.8% makes GLM-4-9B competitive with models twice its size for coding tasks. It handles Python, JavaScript, and several other languages well.
Math Reasoning
GSM8K score of ~79.6% indicates strong mathematical reasoning ability, outperforming many 7B models on grade-school math problems.
Limitations
English-Only Tasks
For purely English workloads, Llama 3.1 8B or Qwen 2.5 7B may perform better. GLM-4 is optimized for bilingual use and its English-only performance can trail behind English-first models.
Community & Ecosystem
The Ollama and HuggingFace community around GLM-4 is smaller than for Llama or Mistral. Fine-tuning resources, LoRA adapters, and tutorials are less abundant in the English-speaking community.
Long Context Performance
While GLM-4 advertises a 128K context window, practical performance degrades significantly beyond 8-16K tokens in local quantized deployments. VRAM usage also increases substantially with longer contexts.
Resources & Further Reading
Official Resources
- GLM-4 GitHub Repository
Official source code and documentation from THUDM
- GLM-4-9B-Chat on HuggingFace
Model weights and community discussion
- GLM-4 on Ollama
One-command local installation
- Zhipu AI Platform
Official API and cloud deployment
Research & Benchmarks
- ChatGLM: A Family of Large Language Models (arXiv)
Technical paper covering the GLM architecture
- ChatGLM2-6B (Previous Generation)
Predecessor model for comparison
- C-Eval Leaderboard
Chinese evaluation benchmark rankings
Local AI Guides
- All Local AI Models
Compare 100+ models you can run locally
- AI Hardware Guide
Optimal GPU and CPU setups for local AI
- Understanding AI Benchmarks
What MMLU, C-Eval, HumanEval actually measure
Build Real AI on Your Machine
RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.
Go from reading about AI to building with AI
25 structured courses. Hands-on projects. Runs on your machine. Start free.

Written by
Barsha Mohapatra
Founder and Editor, Local AI Master · Founder, Little AI Master
Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.
Related Guides
Continue your local AI journey with these comprehensive guides
Continue Learning
Explore related local AI models and guides:
- PILLARblog/best-ollama-models
- Free Ollama Models (Nov 2026): 10 Best, No API Key
- AI on Steam Deck: Run Local LLMs with Ollama on SteamOS
- Run Hermes Agent Locally with Ollama (2026 Setup Guide)
- Pydantic AI + Ollama: Type-Safe Local Agents in Python
- Ollama + Vercel AI SDK: Build a Streaming Local AI Web App
- Gemma 7B by Google: 64% MMLU, Ollama Setup Guide (2026)
- Ollama in Production: Docker, SSL, Auth & Monitoring
- Langflow + Ollama Setup: Visual AI Agents, Fully Local
- Nomic Embed Text: Ollama Setup, 768 Dims, 8K Context, v2 MoE
Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide
No spam. Unsubscribe with one click.
Found your model? Now build something with it.
25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.