CO

Yi Coder 9B Chat

CoderGGUF by mradermacherUpdated 2024-09-19
Download on Hugging Face
Parameters54.3B
Context128K
Layers48
Architecturellama
Smallest quant11.5 GB
Quick answer

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 21 quants, from 11.5 GB (IQ1_S) 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 Mixture‑of‑Experts code model

Yi Coder 9B Chat is a 54.3B‑parameter code model built with a mixture‑of‑experts architecture. It supports a maximum context length of 131072 tokens and is licensed under apache‑2.0. The model is optimized for coding tasks and can handle long‑context code understanding.

Good at

  • Long‑context code understanding
  • Large‑scale code generation
  • Multi‑language programming support

Limits

  • Requires high VRAM for full‑precision inference
  • No vision or multimodal capabilities
  • Large model size limits deployment on low‑memory devices

Best for

  • Developers needing long‑context code assistance
  • Large‑scale codebase refactoring
  • Complex code generation tasks

Who it’s for. Engineers and researchers who need a powerful code model with extensive context handling. The model is suitable for projects that can accommodate its memory requirements and are focused on code generation and analysis.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_S11.5 GB 12.8 GB
Too big Get file →
IQ1_M12.7 GB 14.0 GB
Too big Get file →
IQ2_XXS14.7 GB 16.0 GB
Too big Get file →
IQ2_XS16.3 GB 17.6 GB
Too big Get file →
IQ2_S16.5 GB 17.8 GB
Too big Get file →
IQ2_M18.1 GB 19.4 GB
Too big Get file →
Q2_K20.1 GB 21.4 GB
Too big Get file →
IQ3_XXS21.2 GB 22.5 GB
Too big Get file →
IQ3_XS22.5 GB 23.8 GB
Too big Get file →
IQ3_S23.8 GB 25.1 GB
Too big Get file →
Q3_K_S23.8 GB 25.1 GB
Too big Get file →
IQ3_M24.9 GB 26.2 GB
Too big Get file →
Q3_K_M26.2 GB 27.5 GB
Too big Get file →
Q3_K_L28.0 GB 29.3 GB
Too big Get file →
IQ4_XS29.2 GB 30.5 GB
Too big Get file →
Q4_030.8 GB 32.1 GB
Too big Get file →
Q4_K_S31.1 GB 32.4 GB
Too big Get file →
Q4_K_M33.0 GB 34.3 GB
Too big Get file →
Q5_K_S37.4 GB 38.7 GB
Too big Get file →
Q5_K_M38.6 GB 39.9 GB
Too big Get file →
Q6_K44.6 GB 45.9 GB
Too big Get file →

For 8 GB VRAM, use IQ1_S (file size 11.53 GB, estimated 12.8 GB memory). For 12 GB VRAM, IQ1_M (12.72 GB, 14 GB memory) or IQ2_XXS (14.69 GB, 16 GB memory). For 16 GB VRAM, IQ2_XS (16.27 GB, 17.6 GB memory) or IQ2_S (16.52 GB, 17.8 GB memory).

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: the best quant that fits is IQ2_XXS (14.7 GB file, about 16.0 GB in use).
  • 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.2 GB file, about 30.5 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 IQ1_S at 11.5 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

Architecturellama
Parameters54.3B (approximate, mixture of experts)
Layers48
Trained context131,072 tokens
KV cache (fp16)96 KB per token

Source

Quantized bymradermacher
FamilyCoder
Licenseapache-2.0
Downloads (HF)2,513
Last updated2024-09-19

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 12.8 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: IQ1_S is 11.5 GB, IQ1_M is 12.7 GB, IQ2_XXS is 14.7 GB, IQ2_XS is 16.3 GB, IQ2_S is 16.5 GB, IQ2_M is 18.1 GB and 15 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-i1-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?

Use the IQ1_S quant, which requires approximately 12.8 GB of VRAM at 8k context.

Does this model support vision or multimodal inputs?

No, it is a text‑only code model with no vision capabilities.

What license applies to this model?

The model is released under the apache‑2.0 license.

Other GGUFs of Yi-Coder-9B-Chat-8x-MoE

Similar models

Browse all →

More from mradermacher

All by mradermacher →

More Coder models

All Coder →

Other large models

All large models →