DE

DeepSeek-Coder-V2-Instruct

DeepSeekGGUF by bartowskiUpdated 2024-06-23
Download on Hugging Face
Parameters236B
Context160K
Layers60
Architecturedeepseek2
Smallest quant52.7 GB
Quick answer

DeepSeek-Coder-V2-Instruct needs about 183.2 GB of memory at Q4_K_M (a 142.5 GB file) with an 8K context window, which is more than a 48 GB GPU holds. This repository has 7 quants, from 52.7 GB (IQ1_M) to 142.5 GB (Q4_K_M). Longer context needs more: at 32K tokens the KV cache alone adds about 161.1 GB.

DeepSeek-Coder-V2-Instruct: 230B code‑focused LLM with 128K context

DeepSeek-Coder-V2-Instruct is a 230‑billion‑parameter Mixture‑of‑Experts model optimized for coding tasks. It supports 338 programming languages and a 128‑K token context window. The model is available in multiple GGUF quantizations for local inference.

Good at

  • Code generation and completion
  • Mathematical reasoning in code
  • Large context handling

Limits

  • Requires large VRAM for high‑quality quants
  • No vision or multimodal support
  • License type is other, not standard open source

Best for

  • Developers needing long‑form code assistance
  • Educational coding tutors
  • Automated code review tools

Who it’s for. Engineers and researchers who need a powerful, open‑source code model that matches closed‑source performance. The model is suitable for local deployment with sufficient GPU memory and for integration into custom tooling.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_M52.7 GB (2 parts) 93.4 GB
Too big Get file →
IQ2_XS68.7 GB (2 parts) 109.5 GB
Too big Get file →
Q2_K85.9 GB (3 parts) 126.7 GB
Too big Get file →
Q2_K_L87.4 GB (3 parts) 128.2 GB
Too big Get file →
Q3_K_M112.7 GB (3 parts) 153.4 GB
Too big Get file →
Q3_K_XL123.8 GB (4 parts) 164.6 GB
Too big Get file →
Q4_K_M142.5 GB (4 parts) 183.2 GB
Too big Get file →

For 8‑GB VRAM, use IQ1_M (52.68 GB file, ~93 GB memory at 8K context). For 16‑GB VRAM, IQ2_XS (68.71 GB file, ~109 GB memory). For 32‑GB VRAM, Q2_K (85.95 GB file, ~127 GB memory). Memory estimates are approximate.

What GPU do you need for DeepSeek-Coder-V2-Instruct?

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: no quant fits at an 8K context.
  • 32 GB VRAM: no quant fits at an 8K context.
  • 48 GB VRAM: no quant fits at an 8K context.

Which DeepSeek-Coder-V2-Instruct quant should you choose?

Q4_K_M is the usual starting point for DeepSeek-Coder-V2-Instruct: it balances file size and quality well. Here it is a 142.5 GB file.

If memory is tight, the smallest file is IQ1_M at 52.7 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

Architecturedeepseek2
Parameters236B (approximate, mixture of experts)
Layers60
Trained context163,840 tokens
KV cache (fp16)4800 KB per token

Source

Quantized bybartowski
FamilyDeepSeek
Licenseother
Downloads (HF)3,415
Last updated2024-06-23

Frequently asked questions about DeepSeek-Coder-V2-Instruct

How much VRAM does DeepSeek-Coder-V2-Instruct need?

About 183.2 GB at Q4_K_M with an 8K context window. That is the 142.5 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 DeepSeek-Coder-V2-Instruct on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 93.4 GB, so you would need a larger GPU or CPU offloading.

What is the file size of DeepSeek-Coder-V2-Instruct GGUF?

It depends on the quant: IQ1_M is 52.7 GB, IQ2_XS is 68.7 GB, Q2_K is 85.9 GB, Q2_K_L is 87.4 GB, Q3_K_M is 112.7 GB, Q3_K_XL is 123.8 GB and 1 more.

What context length does DeepSeek-Coder-V2-Instruct support?

The GGUF header lists a trained context length of 163,840 tokens (160K). The KV cache grows with the context you use: about 40.3 GB at 8K and 161.1 GB at 32K.

Where can I download DeepSeek-Coder-V2-Instruct GGUF?

The files are on Hugging Face in the bartowski/DeepSeek-Coder-V2-Instruct-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 DeepSeek-Coder-V2-Instruct use?

Hugging Face lists the license as other. 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 DeepSeek-Coder-V2-Instruct on 8 GB VRAM?

Use the IQ1_M quant; it requires about 93 GB of memory at 8K context, so it will need CPU RAM or a larger GPU.

Does the model support image input?

No, the model only handles text and code; it has no vision capabilities.

What is the context length of this model?

The model supports up to 128,000 tokens of context.

Other GGUFs of DeepSeek-Coder-V2-Instruct

Similar models

Browse all →

More from bartowski

All by bartowski →

More DeepSeek models

All DeepSeek →

Other large models

All large models →