// Yi (01.AI) · Text LLM
Yi-Coder-9B: VRAM & local deployment
8.83B parameters. About 7.2 GB at 4-bit and 20.7 GB at BF16 with one 8K-token request.
released 2024-08-15licence: Commercial OKmemory figures are estimates
01Specs
| Publisher | 01.AI · 01-ai |
|---|---|
| Family / series | Yi (01.AI) · Yi-Coder |
| Type | Text LLM (text-generation) |
| Parameters | 8.83B Source: counted from official safetensors weights |
| Context length | 128K tokens (131,072)max_position_embeddings in config.json |
| Architecture | 48 layers · GQA |
| Released weights | BF16 · 17.7 GBdownload |
| Licence | Apache-2.0 · Commercial OKPermissive licence (Apache-2.0 / MIT / CC-BY / OpenMDW): commercial use allowed. |
| Released | 2024-08-15 (Hugging Face repo created) |
02How much VRAM it needs (estimate)
Total = weights + 10% + 0.5GB overhead + KV cache for one request (FP16 KV). More concurrent users multiply the KV column.
| Precision | Weights | Total @ 8K | Total @ 32K | Total @ 128K | Smallest GPU | Mac |
|---|---|---|---|---|---|---|
| BF16 / FP16 (original) | 17.7 GB | 20.7 GB | 23.1 GB | 32.8 GB | RTX 4090 24GB | Mac 36GB |
| FP8 / INT8 / Q8_0 | 9.4 GB | 11.6 GB | 14.0 GB | 23.7 GB | 16GB GPU | Mac 24GB |
| 4-bit (Q4_K_M / AWQ / GPTQ-Int4) | 5.3 GB | 7.2 GB | 9.6 GB | 19.3 GB | 8GB GPU | Mac 16GB |
KV cache per request: 8K 0.8 GB · 32K 3.2 GB · 128K 12.9 GB
Bits per weight: BF16 16, FP8 8.5, 4-bit 4.85. “Fits” = total ≤ 90% of memory; Mac GPU can use ~2/3 of unified memory (≤36GB) or ~3/4 (larger). For MoE, all experts must be in memory, so size by total parameters. Method →
03How to run it
Only runtimes the publisher or the runtime’s official library names for this model.
- Transformers — mentioned in the official model card
- Ollama — in the official Ollama library · yi-coder:9b
ollama run yi-coder:9b 04Official repositories & quantised builds
2 official repo(s) from 01-ai.
- Yi-Coder-9B main
- Yi-Coder-9B-Chat Instruct
05Other Yi (01.AI) models
All 9 →| Model | Params | 4-bit total | Released |
|---|---|---|---|
| Yi-Coder-1.5B-Chat · same series | 1.48B | 3.1 GB | 2024-08-21 |
| Yi-1.5-9B-Chat-16K | 8.83B | 7.2 GB | 2024-05-15 |
| Yi-1.5-34B-Chat-16K | 34.4B | 25.4 GB | 2024-05-15 |
| Yi-1.5-9B-32K | 8.83B | 7.2 GB | 2024-05-15 |
| Yi-1.5-34B-32K | 34.4B | 25.4 GB | 2024-05-15 |
| Yi-1.5-6B | 6.06B | 5.1 GB | 2024-05-11 |
| Yi-1.5-9B-Chat | 8.83B | 7.2 GB | 2024-05-10 |
| Yi-1.5-34B-Chat | 34.4B | 25.4 GB | 2024-05-10 |
06Similar-size Text LLM models from other families
Within ±35% of 8.83B parameters; same estimate method, so the memory columns are directly comparable.
| Model | Family | Params | Context | 4-bit total | Licence | Released |
|---|---|---|---|---|---|---|
| Yi-Coder-9B | Yi (01.AI) | 8.83B | 128K | 7.2 GB | Commercial OK | 2024-08-15 |
| internlm3-8b-instruct | InternLM / Intern-S | 8.8B | 32K | 6.8 GB | Commercial OK | 2025-01-13 |
| granite-4.1-8b-llmon-preview | IBM Granite | 8.79B | 128K | 7.7 GB | Commercial OK | 2026-10-01 |
| granite-4.2-8b | IBM Granite | 8.79B | 128K | 7.7 GB | Commercial OK | 2026-08-07 |
| granite-4.1-8b | IBM Granite | 8.79B | 128K | 7.7 GB | Commercial OK | 2026-04-06 |
| granite-switch-4.1-8b | IBM Granite | 8.78B | 128K | 7.8 GB | Commercial OK | 2026-10-14 |
| NVIDIA-Nemotron-Nano-9B-v2-Japanese | NVIDIA Nemotron | 8.89B | 128K | 6.6 GB | Commercial with conditions | 2026-02-04 |
07Sources
Data checked 2024-09-23. Parameters, context and licence are copied from the official repository; memory figures are our estimates.