Yi Coder 9B Chat needs about 34.3 GB of memory at Q4_K_M (a 33.0 GB file) with an 8K context window, so it fits on a 48 GB GPU. This repository has 13 quants, from 20.1 GB (Q2_K) to 44.6 GB (Q6_K). Longer context needs more: at 32K tokens the KV cache alone adds about 3.2 GB.
Yi Coder 9B Chat – a 54.3B‑parameter coding model with 128K context
Yi Coder 9B Chat is a mixture‑of‑experts model built on the Yi‑Coder family. It offers 54.3B parameters and a maximum context length of 131072 tokens. The model is licensed under apache‑2.0 and focuses on coding tasks.
Good at
- Long‑context code generation
- Multi‑language programming support
- Large‑scale code comprehension
Limits
- No vision support
- Requires high VRAM for full quant
- Mixture‑of‑experts increases memory footprint
Best for
- Developers needing extended code context
- Code review automation
- Large‑scale codebase analysis
Who it’s for. Engineers and researchers working with extensive codebases who need a model that can handle long prompts and multiple programming languages. The model is suitable for environments that can provide sufficient GPU memory.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| Q2_K | 20.1 GB | 21.4 GB | Too big | Get file → | |
| IQ3_XS | 22.5 GB | 23.8 GB | Too big | Get file → | |
| IQ3_S | 23.8 GB | 25.1 GB | Too big | Get file → | |
| Q3_K_S | 23.8 GB | 25.1 GB | Too big | Get file → | |
| IQ3_M | 24.9 GB | 26.2 GB | Too big | Get file → | |
| Q3_K_M | 26.2 GB | 27.5 GB | Too big | Get file → | |
| Q3_K_L | 28.0 GB | 29.3 GB | Too big | Get file → | |
| IQ4_XS | 29.5 GB | 30.8 GB | Too big | Get file → | |
| Q4_K_S | 31.1 GB | 32.4 GB | Too big | Get file → | |
| Q4_K_M | 33.0 GB | 34.3 GB | Too big | Get file → | |
| Q5_K_S | 37.4 GB | 38.7 GB | Too big | Get file → | |
| Q5_K_M | 38.6 GB | 39.9 GB | Too big | Get file → | |
| Q6_K | 44.6 GB | 45.9 GB | Too big | Get file → |
For 8 GB VRAM, no provided quant fits; the smallest quant requires 21.4 GB. With 16 GB VRAM, Q3_K_S (25.1 GB) or Q3_K_M (27.5 GB) are the closest options. For 32 GB VRAM, Q4_K_M (34.3 GB) or Q5_K_M (39.9 GB) can be used. Estimates are approximate.
What GPU do you need for Yi Coder 9B Chat?
These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.
- 4 GB VRAM: no quant fits at an 8K context.
- 6 GB VRAM: no quant fits at an 8K context.
- 8 GB VRAM: no quant fits at an 8K context.
- 12 GB VRAM: no quant fits at an 8K context.
- 16 GB VRAM: no quant fits at an 8K context.
- 24 GB VRAM: the best quant that fits is IQ3_XS (22.5 GB file, about 23.8 GB in use).
- 32 GB VRAM: the best quant that fits is IQ4_XS (29.5 GB file, about 30.8 GB in use).
- 48 GB VRAM: the best quant that fits is Q6_K (44.6 GB file, about 45.9 GB in use).
Which Yi Coder 9B Chat quant should you choose?
Q4_K_M is the usual starting point for Yi Coder 9B Chat: it balances file size and quality well. Here it is a 33.0 GB file.
If memory is tight, the smallest file is Q2_K at 20.1 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Frequently asked questions about Yi Coder 9B Chat
How much VRAM does Yi Coder 9B Chat need?
About 34.3 GB at Q4_K_M with an 8K context window. That is the 33.0 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.
Can I run Yi Coder 9B Chat on an 8 GB GPU?
Not at an 8K context. The smallest file needs about 21.4 GB, so you would need a larger GPU or CPU offloading.
What is the file size of Yi Coder 9B Chat GGUF?
It depends on the quant: Q2_K is 20.1 GB, IQ3_XS is 22.5 GB, IQ3_S is 23.8 GB, Q3_K_S is 23.8 GB, IQ3_M is 24.9 GB, Q3_K_M is 26.2 GB and 7 more.
What context length does Yi Coder 9B Chat support?
The GGUF header lists a trained context length of 131,072 tokens (128K). The KV cache grows with the context you use: about 0.8 GB at 8K and 3.2 GB at 32K.
Where can I download Yi Coder 9B Chat GGUF?
The files are on Hugging Face in the mradermacher/Yi-Coder-9B-Chat-8x-MoE-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
What license does Yi Coder 9B Chat use?
Hugging Face lists the license as apache-2.0. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.
Can I run Yi Coder 9B Chat on 8 GB VRAM?
No. The smallest quant requires 21.4 GB of VRAM at 8k context.
What is the maximum context length of this model?
The model supports up to 131072 tokens.
Is the model licensed for commercial use?
Yes, it is licensed under apache‑2.0.