codegeex4-all-9b
Z.ai (Zhipu) (China) · Language (text)
Which way is for me?
💻 On my own computer
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
zai-org/codegeex4-all-9b-GGUF - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- Press Download, then Load, and start talking in Chat.
Or, if you use Ollama, this one command is enough:
ollama run hf.co/zai-org/codegeex4-all-9b-GGUF🧑💻 For developers
vLLM
vllm serve zai-org/codegeex4-all-9bTransformers (Python)
from transformers import pipeline
pipe = pipeline("text-generation", model="zai-org/codegeex4-all-9b")llama.cpp
llama-server -hf zai-org/codegeex4-all-9b-GGUFWords used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
We introduce CodeGeeX4-ALL-9B, the open-source version of the latest CodeGeeX4 model series. It is a multilingual code generation model continually trained on the GLM-4-9B, significantly enhancing its code generation capabilities. Using a single CodeGeeX4-ALL-9B model, it can support comprehensive functions such as code completion and generation, code interpreter, web search, function call, repository-level code Q&A, covering various scenarios of software development.
Benchmarks (from the model card)
| Model | Seq Length | HumanEval | MBPP | NCB | LCB | HumanEvalFIM |
|---|---|---|---|---|---|---|
| Llama3-70B-intruct | 8K | 77.4 | 82.3 | 37.0 | 27.4 | - |
| DeepSeek Coder 33B Instruct | 16K | 81.1 | 80.4 | 39.3 | 29.3 | 78.2 |
| Codestral-22B | 32K | 81.1 | 78.2 | 46.0 | 35.3 | 91.6 |
| CodeGeeX4-All-9B | 128K | 82.3 | 75.7 | 40.4 | 28.5 | 85.0 |
Source: Hugging Face · zai-org/codegeex4-all-9b · License: codegeex4
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 6.3 GB
- Recommended Q8
- 11.3 GB
- Full quality FP16
- 22.6 GB
On common hardware
| RTX 4060 · 8 GB | Usable | Q4 · ≈ 19–31 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 19–32 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 34–57 tokens/s |
| Mac M4 Max · 128 GB | Usable | FP16 · ≈ 10–17 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 64–110 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 510–850 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: