whatmodel.sh / GLM-4 9B Chat
GLM-4 9B Chat
↗ share
+ contribute
GLM-4 9B Chat is an open-weights language model from Zhipu AI (Z.ai), released June 2024. Its published size is 9.4B parameters and a 128k-token context window. Licence: glm-4.
Catalogue identity notes
Maker repo zai-org/glm-4-9b-chat @bd8234f: licence tag other (glm-4). 9,399,951,392 parameters from the Hugging Face safetensors metadata. Dense, so active = total. Released 2024-06: month the maker's Hugging Face repo was created (createdAt 2024-06-04). The repo was previously published as THUDM/glm-4-9b-chat (the Hugging Face API redirects that id here); leaderboard rows may use the old id. Ollama tags glm4:9b-chat-q4_K_M, glm4:9b-chat-q8_0 are the library's instruct/chat builds of this checkpoint (tag names on the pinned tags page); download sizes are estimated from the parameter count.
$ how it compares
The LLMs ranked either side of GLM-4 9B Chat, out of 828 with a score.
| # | model | score | where |
|---|---|---|---|
| 470 | 47±1 | local | |
| 471 | 47±1 | api $4.38/M +local | |
| 472 | 47±2 | local | |
| 473 | 47±3 | local | |
| 474 | 47±2 | api $0.13/M +local |
$ what it's good at
agent tasks▁▁▃▆█▆▅▅▅▄▃▁ #284 of 300 · 20% of its score · 3 tests
Trails Granite 4.0 H 350M, ChatGLM3-6B, Qwen3 0.6B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BFCL V4 (2025-08-26 archive, models absent from later archives) | 21.2% ✎ | ▄▄····█▄···▄ beats 1/5 | 7.8% |
| BFCL v3 | 39.1% ✎ | ▁▁▁▁▃▃▅█▅▄▁▁ beats 12/114 | 6.5% |
| BFCL (version not stated) lab | 81.0% ✎ | █·········██ beats 2/5 | 5.6% |
other tests5 not in a task · 79% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| WildBench v2 WB-Score (task macro) | 39.0990 WB-Score ✎ | ▁·▁▁·▃█▄▇▆▅▆ beats 28/52 | 33% |
| CPTUB average (SpeakLeash, 0-5 judge scale) | 59.0% ✎ | ▁▂▂▂▃█▃▆▅▄▂▃ beats 28/95 | 21% |
| Polish EQ-Bench v2 (SpeakLeash) | 61.8% ✎ | ▁··▁▁▂▂▆▅▆█▆ beats 43/70 | 17% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 75.0% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 225/276 | 6.4% |
| Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate) | 98.7% ✎ | ▁▁▂▃▄▄█▆▃▂▃▁ beats 133/140 | 2.0% |
$ where to run it
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run GLM-4 9B Chat · needs ~6.3 GB · from huggingface.co/bartowskichat in the terminal
llama cli -hf bartowski/glm-4-9b-chat-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf bartowski/glm-4-9b-chat-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run GLM-4 9B Chat · needs ~6.3 GB · from huggingface.co/bartowski
- Or download it in the terminal
lms get https://huggingface.co/bartowski/glm-4-9b-chat-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run GLM-4 9B Chat · needs ~6.14 GB · from ollama.comchat in the terminal
ollama run glm4:9b-chat-q4_K_M
Weights and documentation: huggingface.co/zai-org ↗
$ how the score was worked out · WildBench v2 leaderboard data… 33%, SpeakLeash CPTUB (Complex Pol… 21%, SpeakLeash Polish EQ-Bench le… 17% and 4 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
| source | results | share of the score |
|---|---|---|
| 1 | 33% | |
| 1 | 21% | |
| 1 | 17% | |
| 2 | 14% | |
| 1 | 6% | |
| 1 | 6% | |
| 1 | 2% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 47.2 |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json