CanMyPCRunAILocal AI compatibility

Zhipu AI · chatglm

Can I run codegeex4?

A versatile model for AI software development scenarios, including code completion.

9.4B parameters128K contexttextThe glm-4-9b License6 builds

codegeex4 system requirements

Memory needed at 4K context, counting model weights, KV cache, compute buffers and runtime overhead. Download sizes come from the official Ollama registry.

Download size and memory required for each codegeex4 build
BuildQuantizationDownloadMemory needed
codegeex4:9bQ4_05.1 GB~7.7 GB(est.)
codegeex4:9b-all-q4_K_MQ4_K_M5.8 GB~8.7 GB(est.)
codegeex4:9b-all-q5_K_MQ5_K_M6.7 GB~9.9 GB(est.)
codegeex4:9b-all-q6_KQ6_K7.7 GB~11.4 GB(est.)
codegeex4:9b-all-q8_0Q8_09.3 GB~13.7 GB(est.)
codegeex4:9b-all-fp16F1617.5 GB~25.4 GB(est.)

Figures marked (est.) approximate the KV cache because this model's architecture details are not published. They are indicative rather than exact.

How to run codegeex4 locally

  1. 1.Install Ollama for Windows, macOS or Linux.
  2. 2.Run this in a terminal:ollama run codegeex4:9b
  3. 3.The weights download on first run, then an interactive prompt opens.

Frequently asked questions about codegeex4

How much VRAM do I need to run codegeex4?
At 4K context, the smallest published build of codegeex4 (Q4_0) needs roughly 7.7 GB of GPU memory once weights, KV cache, compute buffers and runtime overhead are counted. Bigger quantizations and longer context windows need more. It can also run partly or entirely on the CPU using system RAM, more slowly.
Can I run codegeex4 without a dedicated GPU?
Yes, but slowly. Without a GPU the model runs on the CPU using system RAM, which usually means a few tokens per second rather than dozens. You would need at least 7.7 GB of free RAM for the smallest build.
How big is the codegeex4 download?
The smallest published build is 5.1 GB. There are 6 builds in total, the largest being 17.5 GB. Leave some extra free disk space beyond the download itself.
How do I run codegeex4 locally?
Install Ollama, then run "ollama run codegeex4:9b" in a terminal. The weights download on first use and an interactive session opens.

Will codegeex4 run on your PC?

Scan your hardware once and get a verdict for this model and every build — free, no account.

Check my PC

Model data from the official Ollama registry · verified 13/09/2026