DE

DeepSeek-Coder-V2-Instruct

DeepSeekGGUF by legraphistaUpdated 2024-06-19
Download on Hugging Face
Parameters236B
Context160K
Layers60
Architecturedeepseek2
Smallest quant47.4 GB
Quick answer

DeepSeek-Coder-V2-Instruct needs about 142.4 GB of memory at Q3_K_S (a 101.7 GB file) with an 8K context window, which is more than a 48 GB GPU holds. This repository has 23 quants, from 47.4 GB (IQ1_S) to 250.6 GB (Q8_0). Longer context needs more: at 32K tokens the KV cache alone adds about 161.1 GB.

DeepSeek-Coder-V2-Instruct, 236B parameters, code‑centric LLM

DeepSeek-Coder-V2-Instruct is a 236B parameter code language model. It supports 338 programming languages and a 128K context window. The model is available in multiple GGUF quantizations for local inference.

Good at

  • Code completion
  • Mathematical reasoning
  • Large context handling

Limits

  • No vision support
  • Requires large VRAM for higher quants
  • License is other

Best for

  • Developers needing code generation
  • Researchers testing code models
  • Teams building code assistants

Who it’s for. The model is suited for developers and researchers who need a large, open‑source code model. It is ideal for those who can run it locally or via API and require extensive context and language coverage.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_S47.4 GB (2 parts) 88.2 GB
Too big Get file →
IQ1_M52.7 GB (3 parts) 93.4 GB
Too big Get file →
IQ2_XXS61.5 GB (3 parts) 102.3 GB
Too big Get file →
IQ2_XS68.7 GB (3 parts) 109.5 GB
Too big Get file →
IQ2_S69.9 GB (3 parts) 110.6 GB
Too big Get file →
IQ2_M76.9 GB (4 parts) 117.7 GB
Too big Get file →
Q2_K_S79.6 GB (4 parts) 120.4 GB
Too big Get file →
Q2_K85.9 GB (4 parts) 126.7 GB
Too big Get file →
IQ3_XXS90.8 GB (4 parts) 131.6 GB
Too big Get file →
IQ3_XS96.3 GB (5 parts) 137.1 GB
Too big Get file →
IQ3_S101.7 GB (5 parts) 142.4 GB
Too big Get file →
Q3_K_S101.7 GB (5 parts) 142.4 GB
Too big Get file →
IQ3_M103.4 GB (5 parts) 144.1 GB
Too big Get file →
Q3_K112.7 GB (5 parts) 153.4 GB
Too big Get file →
Q3_K_L122.4 GB (6 parts) 163.1 GB
Too big Get file →
IQ4_XS125.6 GB (6 parts) 166.3 GB
Too big Get file →
IQ4_NL132.9 GB (6 parts) 173.7 GB
Too big Get file →
Q4_K_S133.9 GB (6 parts) 174.6 GB
Too big Get file →
Q4_K142.5 GB (7 parts) 183.2 GB
Too big Get file →
Q5_K_S162.3 GB (7 parts) 203.1 GB
Too big Get file →
Q5_K167.2 GB (8 parts) 208.0 GB
Too big Get file →
Q6_K193.5 GB (9 parts) 234.3 GB
Too big Get file →
Q8_0250.6 GB (11 parts) 291.4 GB
Too big Get file →

For 8 GB VRAM, use IQ1_S or IQ1_M. For 16 GB VRAM, IQ2_XS or IQ2_S are suitable. For 32 GB VRAM, Q3_K or Q4_K are recommended. 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?

Q3_K_S (101.7 GB) is the middle option in this repository. A reasonable choice when a 4-bit file will not fit, mostly on larger models. Quality loss is noticeable but often acceptable.

If memory is tight, the smallest file is IQ1_S at 47.4 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 bylegraphista
FamilyDeepSeek
Licenseother
Downloads (HF)2,805
Last updated2024-06-19

Frequently asked questions about DeepSeek-Coder-V2-Instruct

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

About 142.4 GB at Q3_K_S with an 8K context window. That is the 101.7 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 88.2 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_S is 47.4 GB, IQ1_M is 52.7 GB, IQ2_XXS is 61.5 GB, IQ2_XS is 68.7 GB, IQ2_S is 69.9 GB, IQ2_M is 76.9 GB and 17 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 legraphista/DeepSeek-Coder-V2-Instruct-IMat-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_S or IQ1_M quantizations; they estimate 88.2 GB or 93.4 GB of memory at 8K context, which is beyond 8 GB VRAM, so it is not feasible.

What is the context length of this model?

The model supports a 128K token context length, as indicated by its trained context tokens.

Does the model support vision tasks?

No, the model has no vision support according to the provided facts.

Other GGUFs of DeepSeek-Coder-V2-Instruct

Similar models

Browse all →

More from legraphista

All by legraphista →

More DeepSeek models

All DeepSeek →

Other large models

All large models →