Will It Run AI

Tsinghua/ZhipuTsinghua/Zhipu

CodeGeeX 4 9B

当前
11.4K下载量269点赞Jul 2024发布日期131K tokens上下文Apache 2.0许可证66 良好质量

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.

快速开始

— 复制粘贴即可本地运行

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.

你的硬件

检测中...

快速推荐

最佳硬件

CodeGeeX 4 9B 的最佳选择

运行此模型

量化选项

各量化级别的 VRAM 估算

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

硬件兼容性

全部硬件的适配估算

打开计算器

Computing compatibility...

内存详细分析

Reference: RTX 2060 6GB

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

常见问题

FAQ — CodeGeeX 4 9B

另请参阅