whatmodel.sh / ChatGLM-6B

ChatGLM-6B is an open-weights language model from Zhipu AI (THUDM), released March 2023. Its published size is 6.2B parameters. Licence: chatglm-6b-license.

Catalogue identity notes

Comparison-only. Arena entry 'chatglm-6b' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'chatglm-6b' as 'ChatGLM-6B' (Tsinghua, Non-commercial), linking https://huggingface.co/THUDM/chatglm-6b. Maker repo zai-org/chatglm-6b @bf0f5cf: licence tag none tagged. Parameters: card: 'with 6.2 billion parameters'. Released 2023-03: month the maker's Hugging Face repo was created (createdAt 2023-03-13).

Model information sources

· Weights licence ↗

20.3±1.6#688 of 719 LLMsfrom 7 benchmark results across 5 sources

$ how it compares

The LLMs ranked either side of ChatGLM-6B, out of 828 with a score, then more from Zhipu AI (THUDM).

#modelscorewhereRAMreleased
792Phi-1 (1.3B) Microsoft21±4local~2.4GB2023-09
793Qwen1.5 0.5B Chat Alibaba21±3local~1.8GB2024-01
794ChatGLM-6B Zhipu AI (THUDM)20±2local~16GB2023-03
795Pythia 2.8B (deduped) EleutherAI20±1local~3.4GB2023-02
796Flan-T5 Base Google20±3local~2.5GB2022-10
more from Zhipu AI (THUDM)
349GLM-4 9B Chat 1M Zhipu AI (THUDM)53±5local~8.1GB2024-06
485CogVLM2 Llama3 Chinese Chat 19B Zhipu AI (THUDM)47±7comparison only2024-05
569CogVLM2 Llama3 Chat 19B Zhipu AI (THUDM)43±3local~43GB2024-05

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▃▁▃▆██▇▆▄▃▁ #456 of 458 * · 13% of its score · 1 test

Trails GPT-Neo 2.7B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval3.1% ✎▄··▄····▄▄█▄ beats 1/6easy · avg 71%▇▇▇▇▇ 13%sharp · too hard for it
chat & writing▃▁▁▃▅▄▅█▆▆▇▃ #391 of 393 · 67% of its score · 4 tests

Trails Gemma 3 270M IT, SmolLM2 360M Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)874.0 ✎▃▁▂▁▃▇█▆▇▄▂▂ beats 3/95avg 1201▇▇▇▇▇▇▇▇▇ 24%blunt
LMArena (text)995.8 ✎▃▁▁▂▃▃▃▆▆▇█▃ beats 4/379avg 1268▇▇▇▇▇▇▇▇▇ 23%blunt
MT-Bench (GPT-4 single-answer grading, LMSYS runs)4.5000 MT-Bench score (1-10) ✎▆▂▂▆▆▄██▂▄▄▆ beats 6/28avg 8.819 MT-Bench score (1-10)▇▇▇▇▇▇▇▇ 21%sharp · noisy
MixInstruct GPT-Rank (LLM-Blender, mean rank among 11 instruction-tuned LLMs, ChatGPT pairwise judge)5.6300 mean rank (1-11) ✎█···▄··▄···▄ beats 3/4avg 6.444 mean rank (1-11)▇ 0.0%blunt · noisy
other tests2 not in a task · 18% of its score
testresultvs the others in its rundifficultycountswhy
BIG-Bench Hard31.3% ✎███··█·█·█·█ beats 2/6easy · avg 76%▇▇▇▇▇ 12%sharp · too hard for it
MMLU36.1% ✎▄▄·▄···▄▄·██ beats 4/8easy · avg 77%▇▇ 6.2%typical

$ where to run it

Other ways to run it

  1. Run it as published · needs ~13.42 GB, NVIDIA only · from huggingface.co/zai-org
    pip install protobuf==3.20.0 transformers==4.27.1 icetk cpm_kernels torch && python -c "from transformers import AutoTokenizer, AutoModel; t=AutoTokenizer.from_pretrained('THUDM/chatglm-6b', trust_remote_code=True); m=AutoModel.from_pretrained('THUDM/chatglm-6b', trust_remote_code=True).half().cuda().eval(); print(m.chat(t, '你好', history=[])[0])"

Weights and documentation: huggingface.co/zai-org ↗

$ how the score was worked out · InstructEval (DeCLaRe Lab) RE… 32%, Polyrating: A Cost-Effective… 24%, LMArena leaderboard dataset 23% and 2 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