whatmodel.sh / GLM-4 9B Chat

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.

48.2±1.7#415 of 743 LLMsfrom 8 benchmark results across 7 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of GLM-4 9B Chat, out of 897 with a score.

#modelscorewhereRAMreleased
494Qwen1.5 110B Chat Alibaba48±1local~45GB2024-04
495Command R Plus (08-2024) Cohere48±1api $4.38/M +local~63GB2024-08
496GLM-4 9B Chat Zhipu AI (Z.ai)48±2local~7.2GB2024-06
497speechless-coder-ds-6.7b uukuguy48±1local~5.8GB2023-12
498Magicoder-S-CL-7B UIUC (ise-uiuc)48±1local~5.8GB2023-12

see all LLMs · find the ones that fit your machine

$ what it's good at

agent tasks▁▁▃▆█▄▅▅▃▃▂▁ #302 of 319 · 19% of its score · 3 tests

Trails Granite 4.0 H 350M, ChatGLM3-6B, Qwen3 0.6B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
BFCL V4 (2025-08-26 archive, models absent from later archives)21.2% ✎▄▄····█▄···▄ beats 1/5hard · avg 26%▇▇▇ 7.2%typical
BFCL v339.1% ✎▁▁▁▁▃▃▅█▅▄▁▁ beats 12/114medium · avg 51%▇▇▇ 6.5%blunt · at its level
BFCL (version not stated) lab81.0% ✎█·········██ beats 2/5easy · avg 77%▇▇ 5.5%blunt
other tests5 not in a task · 80% of its score
testresultvs the others in its rundifficultycountswhy
WildBench v2 WB-Score (task macro)39.0990 WB-Score ✎▁·▁▁·▃█▄▇▆▅▆ beats 28/52avg 43.352 WB-Score▇▇▇▇▇▇▇▇▇▇▇▇ 30%sharp
CPTUB average (SpeakLeash, 0-5 judge scale)59.0% ✎▁▂▂▂▃█▃▆▅▄▂▃ beats 28/95easy · avg 65%▇▇▇▇▇▇▇▇▇ 23%at its level
Polish EQ-Bench v2 (SpeakLeash)61.8% ✎▁··▁▁▂▂▆▅▆█▆ beats 43/70medium · avg 62%▇▇▇▇▇▇▇ 18%at its level
Open PT-LLM Leaderboard average (9 Portuguese tasks)75.0% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 225/276medium · avg 72%▇▇▇ 6.9%at its level · noisy
Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate)98.7% ✎▁▁▂▃▄▄█▆▃▂▃▁ beats 133/140very easy · avg 94%▇ 2.0%blunt · maxed out · noisy

$ where to run it

Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.

llama.cpp · recommended

version

  1. 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 | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run GLM-4 9B Chat · needs 7.2 GB memory, 6.25 GB download · from huggingface.co/bartowski
    chat in the terminal
    llama cli -hf bartowski/glm-4-9b-chat-GGUF:Q4_K_M
  3. 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

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run GLM-4 9B Chat · needs 7.2 GB memory, 6.25 GB download · from huggingface.co/bartowski

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/bartowski/glm-4-9b-chat-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run GLM-4 9B Chat · needs 7.2 GB memory, 6.25 GB download · from ollama.com
    chat in the terminal
    ollama run glm4:9b-chat-q4_K_M

Model repository and documentation: huggingface.co/zai-org ↗

$ how the score was worked out · WildBench v2 leaderboard data… 30%, SpeakLeash CPTUB (Complex Pol… 23%, SpeakLeash Polish EQ-Bench le… 18% 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

$ 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