★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once

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.

GLM-4-9B-Chat|THUDM / Zhipu AI

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.

72.4
MMLU (THUDM)
75.6
C-Eval (Chinese, THUDM)
5.5GB
Ollama download (~6.6 GB in use)
9B
Parameters

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

72.4
MMLU (5-shot)
14,042 questions
75.6
C-Eval
Chinese benchmark
79.6
GSM8K
Math reasoning
71.8
HumanEval
Code generation

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 tagDownloadMemory at 4KFits
glm4 (q4_0, the default)5.46 GB~6.6 GB8 GB GPU; 8 GB Mac
glm4:9b-chat-q4_K_M6.25 GB~7.4 GB8 GB GPU, tight; 12 GB comfortable
glm4:9b-chat-q5_K_M7.14 GB~8.3 GB12 GB GPU
glm4:9b-chat-q6_K8.26 GB~9.4 GB12 GB GPU
glm4:9b-chat-q8_09.99 GB~11.2 GB12 GB GPU, tight; 16 GB comfortable
glm4:9b-chat-fp1618.81 GB~20.0 GB24 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)

Memory at 4K: ~7.4GB (q4_0 default: ~6.6GB)
Download: 6.25GB (q4_0 default: 5.46GB)
Quality loss: Small; the usual choice for 4-bit
Best for: 8GB cards (tight), 12GB cards, 16GB Macs

Q8_0 (High Quality)

Memory at 4K: ~11.2GB
Download: 9.99GB
Quality loss: Negligible
Best for: 12GB cards (tight), 16GB cards, 16GB+ Macs

FP16 (Full Precision)

Memory at 4K: ~20.0GB
Download: 18.81GB
Quality loss: None (reference weights)
Best for: 24GB cards, 32GB+ Macs
Model
GLM-4-9B
THUDM / Zhipu AI
Context Window
128K
Tokens (advertised)
License
GLM-4 License
Open weights, Zhipu's own terms
MMLU
72.4
5-shot, THUDM model card

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.

ModelOllama tagDownloadSpeed ceiling, RTX 3060MMLU (source)Licence
GLM-4-9B-Chatglm45.46 GB~66 tok/s ceiling72.4 (THUDM)GLM-4 License
Llama 3.1 8Bllama3.1:8b4.92 GB~73 tok/s ceiling66.7 base (Meta)Llama 3.1 Community
Gemma 2 9Bgemma2:9b5.44 GB~66 tok/s ceiling71.3 (Google)Gemma Terms of Use
Qwen 2.5 7Bqwen2.5:7b4.68 GB~77 tok/s ceiling74.2 base (Qwen)Apache 2.0
Mistral 7Bmistral:7b4.37 GB~82 tok/s ceiling62.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.

1

Install Ollama

Download and install Ollama for your platform

$ curl -fsSL https://ollama.com/install.sh | sh
2

Pull GLM-4 Model

Download the GLM-4-9B-Chat model (Q4_K_M quantization, ~5.5GB)

$ ollama pull glm4
3

Run GLM-4 Interactively

Start a chat session with GLM-4-9B-Chat

$ ollama run glm4
4

Serve via API (Optional)

Run Ollama as an OpenAI-compatible API server

$ ollama serve & curl http://localhost:11434/api/generate -d '{"model":"glm4","prompt":"Hello"}'
Terminal
$ollama run glm4
pulling manifest pulling 8929e2048499... 100% |████████████████████| 5.5 GB pulling 43070e2d4e53... 100% |████████████████████| 11 KB pulling 3bad39cd189a... 100% |████████████████████| 483 B verifying sha256 digest writing manifest success >>> Hello! Tell me about your capabilities. I'm GLM-4-9B-Chat, developed by Zhipu AI (THUDM). I can help with: - Chinese and English language tasks - Code generation and debugging - Mathematical reasoning - General knowledge Q&A - Text summarization and translation - Creative writing in both languages I'm particularly strong at Chinese language understanding. How can I help you today?
$ollama show glm4 --modelfile
# Modelfile for glm4 FROM glm4:latest PARAMETER temperature 0.7 PARAMETER top_p 0.8 PARAMETER num_ctx 8192 SYSTEM "You are a helpful assistant." LICENSE (GLM-4 license text)
$_

System Requirements

Minimum and recommended hardware for running GLM-4-9B-Chat locally at Q4_K_M quantization.

System Requirements

▸
Operating System
macOS 12+ (Apple Silicon recommended), Ubuntu 22.04+, Windows 11
▸
RAM
8GB minimum (16GB recommended)
▸
Storage
8GB free space for Q4_K_M quantization
▸
GPU
Optional: 8GB+ VRAM for the default q4_0 (RTX 3060, RTX 4060) or Apple M1+ with 8GB
▸
CPU
4+ cores (8+ recommended for CPU inference)

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.

Reading now
Join the discussion

Resources & Further Reading

Official Resources

Research & Benchmarks

Local AI Guides

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.

🎯
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Barsha Mohapatra

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.

📅 Published: October 8, 2025🔄 Last Updated: November 2, 2026✓ Manually Reviewed

Related Guides

Continue your local AI journey with these comprehensive guides

More on Ollama
See the full Best Ollama Models 2026 guide.
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators