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 ↗

24.5±1.4#702 of 743 LLMsfrom 11 benchmark results across 9 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
840GPT-J 6B EleutherAI25±1local~14GB2021-06
841OpenLLaMA 3B v2 OpenLM Research25±1local~4.2GB2023-07
842ChatGLM-6B Zhipu AI (THUDM)25±1local~16GB2023-03
843StableLM-Base-Alpha 3B v2 Stability AI24±1local~13GB2023-08
844OPT-6.7B Meta24±1local~16GB2022-05
more from Zhipu AI (THUDM)
379GLM-4 9B Chat 1M Zhipu AI (THUDM)54±4local~8.1GB2024-06
522CogVLM2 Llama3 Chinese Chat 19B Zhipu AI (THUDM)47±7comparison only2024-05
609CogVLM2 Llama3 Chat 19B Zhipu AI (THUDM)44±3local~12GB2024-05

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▃▁▃▆▇█▆▆▃▃▁ #471 of 474 * · 13% of its score · 1 test

Trails GPT-Neo 2.7B, Phi-1 (1.3B), Pythia 6.9B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval3.1% ✎▄··▄····▄▄█▄ beats 1/6medium · avg 63%▇▇▇▇▇ 13%sharp · too hard for it
chat & writing▃▁▁▃▅▄▆█▇▇▇▃ #403 of 405 · 56% 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
LMArena (text)996.0 ✎▃▁▁▂▃▂▃▆▆▇█▃ beats 4/388avg 1262▇▇▇▇▇▇▇▇ 21%blunt
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)874.0 ✎▃▁▂▁▃▇█▆▇▄▂▂ beats 3/95avg 1189▇▇▇▇▇▇▇▇ 20%typical
MT-Bench (GPT-4 single-answer grading, LMSYS runs)4.5000 MT-Bench score (1-10) ✎▆▂▂▆▆▄██▂▄▄▆ beats 6/28avg 8.567 MT-Bench score (1-10)▇▇▇▇▇▇ 15%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.709 mean rank (1-11)▇ 0.0%blunt · noisy
other tests6 not in a task · 29% of its score
testresultvs the others in its rundifficultycountswhy
BIG-Bench Hard31.3% ✎███··█·█·█·█ beats 2/6medium · avg 68%▇▇▇▇▇▇ 14%sharp · too hard for it
MMLU36.1% ✎▄▄·▄···▄▄·██ beats 4/8easy · avg 74%▇▇▇ 8.2%typical
API-Bank evaluation system, zero-shot API-call correctness (Total)16.4% ✎▄······█··▄▄ beats 2/4medium · avg 50%▇ 2.7%typical
Conic10K mathQA (zero-shot CoT)1.5% ✎█··▄·······▄ beats 2/3very hard · avg 10%▇ 2.1%too hard for it
CAIL charge prediction, zero-shot open question (accuracy)41.4% ✎█···█··█···█ beats 0/3medium · avg 54%▇ 1.2%blunt · at its level
MenatQA (all factors), exact match, zero-shot3.8% ✎▃····▂··▂·█▄ beats 0/8medium · avg 36%▇ 1.2%blunt

$ 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.

Other ways to run it

  1. Run it as published · needs 15.6 GB memory, 13.4 GB download, 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])"

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

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