VOOZH about

URL: https://willitrunai.com/models/codegeex-4-9b

โ‡ฑ CodeGeeX 4 9B VRAM Requirements โ€” GPU Compatibility


๐Ÿ‘ Tsinghua/Zhipu
Tsinghua/Zhipu

CodeGeeX 4 9B

Current
๐Ÿ‘ huggingface
HuggingFace
8.1KDownloads271LikesJul 2024Released131K tokensContextApache 2.0License66 GoodQuality

CodeGeeX 4 9B (9B parameters) requires approximately 7.9 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 10 GB of VRAM.

Get started

โ€” copy & paste to run locally

Copy-paste commands to run CodeGeeX 4 9B on your machine.

Run

docker run --rm -it ghcr.io/ggerganov/llama.cpp:full \ --hf-repo "THUDM/codegeex4-all-9b" \ --hf-file "codegeex4-all-9b-Q4_K_M.gguf" \ -c 4096 -ngl 99

Quick specs

Parameters9B
Architecturedense
Context131K tokens
Modalitytext
Min RAM3.5 GB
Rec. RAM5.5 GB (Q4_K_M)
LicenseApache 2.0
FamilyCodeGeeX

About this model

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. CodeGeeX4-ALL-9B has achieved highly competitive performance on public benchmarks, such as BigCodeBench and NaturalCodeBench.

Your hardware

Detecting...

Quick picks

๐Ÿ‘ Intel
Best budgetA
Intel Arc B570 10GB~$219 โ€” 41 tok/s
๐Ÿ‘ NVIDIA
Best overallA
RTX 3080 10GB~$699 โ€” 97 tok/s

Best hardware

Top picks for CodeGeeX 4 9B

RTX 3080 10GBA
10 GB
RTX 3080 Ti 12GBA
12 GB
RTX 3080 12GBA
12 GB
RTX 5070 12GBA
12 GB
RTX 2080 Ti 11GBA
11 GB

Run this model

CodeGeeX 4 9B on RTX 3080 10GBCodeGeeX 4 9B on RTX 3080 Ti 12GBCodeGeeX 4 9B on RTX 3080 12GB

Quantization options

VRAM estimates by quant level

No hardware detected โ€” fit column shows raw VRAM estimates

QuantBitsVRAMQualityFit
Q2_K
2
3.5 GB
Lowโ€”
Q3_K_S
3
4.4 GB
Lowโ€”
NVFP4
4
5.0 GB
Mediumโ€”
Q4_K_M
4
5.5 GB
Mediumโ€”
Q5_K_M
5
6.5 GB
Highโ€”
Q6_K
6
7.4 GB
Highโ€”
Q8_0
8
9.6 GB
Very Highโ€”
F16
16
18.5 GB
Maximumโ€”

Quality benchmarks

CodeGeeX 4 9B benchmark scores

Benchmark verified

Coding

SWE-bench Verifiedโ€”
HumanEval+82.3%
Aider Polyglotโ€”
LiveCodeBenchโ€”

Source: official ยท 2024-07-10

Hardware compatibility

Fit estimates across all hardware

Open calculator

Computing compatibility...

Memory breakdown

Reference: RTX 2060 6GB

Weights5.5 GB
KV Cache0.6 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” CodeGeeX 4 9B

See also

Quantization GuideScoring MethodologyVRAM Calculator