[whatmodel.sh](../../README.md) / GLM-4 9B Chat 1M # GLM-4 9B Chat 1M Zhipu AI (THUDM) · released 2024-06 · 9.48B params · other (glm-4) **score 53.8** ±4.4 · #306 of 732 · from 3 benchmark results across 2 sources Score within the [LMArena (text)](https://whatmodel.sh/?set=lmarena-text&score=set) comparison set only. ## What it's good at ● marks GLM-4 9B Chat 1M among every model on that task or test, worst to best.
test result vs the others in its run difficulty counts why Open PT-LLM Leaderboard average (… 74.1% ▃▁▁▁▁▁▁▁▂█●▁ beats 212/276 medium · avg 72% 43% at its level · noisy RULER 64k 86.7% ▁▁·▁·▂▃▄●▂·▁ beats 19/22 easy · avg 82% 35% typical RULER 128k 83.1% ▄··▂▄▂▆██▄●▂ beats 19/21 easy · avg 67% 13% at its level · noisy
source results share of the score NVIDIA RULER repository README results … 2 48% ▇▇▇▇▇▇ Open Portuguese LLM Leaderboard 1 43% ▇▇▇▇▇ prior: pull toward the middle 9% ▇ weighted average = 53.8Licences: NVIDIA RULER repository README results table ([Apache-2.0](https://github.com/NVIDIA/RULER/blob/c3f5e3b4f87f97e048793bb510a3a6b19a46bf3a/LICENSE)) · Open Portuguese LLM Leaderboard ([Apache-2.0](../../licenses/hf-leaderboard-spaces-Apache-2.0.txt)) ## How to run it ### llama.cpp (recommended) 1. Install llama.cpp. Homebrew and winget installs name the commands llama-cli and llama-server instead. [Other ways to install](https://github.com/ggml-org/llama.cpp/blob/master/docs/install.md) ```sh # macOS / Linux curl -LsSf https://llama.app/install.sh | sh # Windows irm https://llama.app/install.ps1 | iex ``` 2. Run GLM-4 9B Chat 1M (Q4_K_M, needs ~6.3 GB, from [huggingface.co/bartowski](https://huggingface.co/bartowski/glm-4-9b-chat-1m-GGUF/tree/f50cedd62a26b910d71feda1e021f88716d28b58)) ```sh llama cli -hf bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M ``` 3. Or start a local server and open the address it prints (http://localhost:9931) ```sh llama serve -hf bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M ``` Other versions: Q8_0 (~10.1 GB) `llama cli -hf bartowski/glm-4-9b-chat-1m-GGUF:Q8_0` ### LM Studio 1. Install LM Studio. Open the app once before using the lms command. [Download it (macOS / Windows / Linux)](https://lmstudio.ai/download) 2. Run GLM-4 9B Chat 1M (Q4_K_M, needs ~6.3 GB, from [huggingface.co/bartowski](https://huggingface.co/bartowski/glm-4-9b-chat-1m-GGUF/tree/f50cedd62a26b910d71feda1e021f88716d28b58)) ```sh lms get https://huggingface.co/bartowski/glm-4-9b-chat-1m-GGUF@Q4_K_M -y ``` 3. Then run lms ls to see its name, and lms chat followed by that name Other versions: Q8_0 (~10.1 GB) `lms get https://huggingface.co/bartowski/glm-4-9b-chat-1m-GGUF@Q8_0 -y` ### Ollama 1. Install Ollama. [Download it (macOS / Windows)](https://ollama.com/download) ```sh # Linux curl -fsSL https://ollama.com/install.sh | sh ``` 2. Run GLM-4 9B Chat 1M (Q4_K_M, needs ~6.3 GB, from [huggingface.co/bartowski](https://huggingface.co/bartowski/glm-4-9b-chat-1m-GGUF/tree/f50cedd62a26b910d71feda1e021f88716d28b58)) ```sh ollama run hf.co/bartowski/glm-4-9b-chat-1m-GGUF:Q4_K_M ``` Other versions: Q8_0 (~10.1 GB) `ollama run hf.co/bartowski/glm-4-9b-chat-1m-GGUF:Q8_0` ### Other ways to run it 1. Run it as published (BF16, needs ~18.97 GB, from [huggingface.co/zai-org](https://huggingface.co/zai-org/glm-4-9b-chat-1m/tree/f8579ac096986e44ba24a5060d2fb79bedb56ef3)) ```sh uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='zai-org/glm-4-9b-chat-1m', torch_dtype='auto', device_map='auto', trust_remote_code=True)('Once upon a time', max_new_tokens=40)[0]['generated_text'])" ``` Model repository and documentation: [huggingface.co/zai-org](https://huggingface.co/zai-org/glm-4-9b-chat-1m) [interactive version](https://whatmodel.sh/model/glm-4-9b-chat-1m) · [JSON](https://whatmodel.sh/api?format=json&all=1)