llmrun
DeepSeekDeepSeek CoderDeepseekV2ForCausalLM

DeepSeek Coder v2 Instruct — Hardware Requirements & GPU Compatibility

ChatCode

DeepSeek-Coder-V2-Instruct is DeepSeek's mixture-of-experts code and math model, continuing pretraining from an intermediate DeepSeek-V2 checkpoint with an additional 6 trillion tokens focused on code. It has about 235.7 billion total parameters with roughly 21.4 billion active per token, and DeepSeek reports coding and mathematical reasoning performance comparable to GPT-4 Turbo, expanding supported programming languages from 86 to 338 versus the original DeepSeek-Coder line. It is an instruction-tuned chat model, not a base model, intended for code generation, completion, and reasoning tasks. Given its total size, DeepSeek recommends an eight-GPU, 80GB-class server for BF16 inference, so it needs a substantial multi-GPU setup even once quantized. Context length is 163,840 tokens; DeepSeek's own materials describe this as an extension "from 16K to 128K" over the original Deepseek Coder. Model weights are released under DeepSeek's custom model license, which permits commercial use, while the surrounding code is MIT-licensed. It was published in June 2024.

235.7B params · MoE21B active164K contextOther3.8K downloads718 likes5.4K quant downloads

DeepSeek Coder v2 Instruct runs on a 192 GB+ Mac or a datacenter GPU

Best local pick → Mac Pro M2 Ultra (192 GB) · Q4_K_M · 142.9 GB · ~28 tok/s

Macs from96 GB IQ2_XS · ~42 tok/s

Other

Not set up for it?

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run DeepSeek Coder v2 Instruct

One recommended way. Every other method, OS and quant is in the step-by-step guide.Each way opens a step-by-step guide for your OS and quant.

Ways to runOther ways

each opens step-by-step

Run in cloud

Runs on B200 (192 GB) (49 GB headroom) · Q4_K_M

Generation speed
~172 tok/s
generation speed
Cost per 1M output tokens
$9.66
per 1M output tokens

How Much VRAM Does DeepSeek Coder v2 Instruct Need?

Select a quantization level; the listed hardware adheres to it.

QuantizationVRAM+32KRuns on
103.0 GB102.8 GB2-bit · K-quant — 2-bit quantization with K-quant improvementsRuns on Instinct MI250X 128 GB
106.0 GB105.7 GB3-bit small — 3-bit small quantizationRuns on Instinct MI250X 128 GB
117.7 GB117.5 GB3-bit medium — 3-bit medium quantizationRuns on Instinct MI250X 128 GB
120.7 GB120.4 GB4-bit · legacy — 4-bit legacy quantizationRuns on Instinct MI250X 128 GB
144.3 GB144 GB4-bit medium — 4-bit medium quantization — most popular sweet spotRuns on GH200 Grace Hopper Superchip 144 GB
170.8 GB170.5 GB5-bit medium — 5-bit medium quantization — good quality/size tradeoffRuns on B200 192 GB
197.3 GB197.1 GB6-bit, very good — 6-bit quantization, very good qualityRuns on Instinct MI325X 256 GB
238.6 GB238.3 GB8-bit, near-lossless — 8-bit quantization, near-losslessRuns on Instinct MI325X 256 GB
est.calculated, no published file yet

Selected Q4_K_M

4-bit medium quantization

142.9GBat 16K context

Weights
141.4 GB
KV cache
1.1 GB
Overhead
0.3 GB

Server-class: ~142.9 GB at 16K context · one GH200 Grace Hopper Superchip 144 GB

Or .

Which Hardware Can Run DeepSeek Coder v2 Instruct?

Q4_K_M · 144.3 GB

DeepSeek Coder v2 Instruct (Q4_K_M) requires 144.3 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 188+ GB is recommended. Using the full 164K context window can add up to 8.8 GB, bringing total usage to 153.1 GB. No consumer GPU has enough memory. 4 devices with unified memory can run DeepSeek Coder v2 Instruct, including Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB), Mac Pro M2 Ultra (192 GB).

By VRAM tier · typical GPUs and Macs at Q4_K_M

Consumer GPUs (up to 32 GB) and Macs up to 64 GB: too small for this model (needs ≥ 72.2 GB)8 GB tier →12 GB tier →16 GB tier →24 GB tier →Macs →

How good is DeepSeek Coder v2 Instruct?

llmrun Score blends public benchmark boards into one number; 100 = the average open model.

Not enough data yet for an llmrun Score.

A Score needs results on enough independent boards. How the Composite Score is built

Benchmarks

Here are all 3 boards that have results for this model, sorted by their weight in the llmrun Score; badges show who ran the test.

  • LMArena Text

    LMArena · Oct 2026Arena

    1265.4

    #126/188 open

    Arena
  • MMLU-Pro

    TIGER-LabIndependent

    63.6%

    #51/146 open

    Independent
  • GSM8K

    Epoch AI · Jun 2024Lab-reported

    94.5%

    #1/62 open

    Lab-reported

Alternatives to DeepSeek Coder v2 Instruct

DeepSeek Coder family · 11 models →

Similar models

6
ModelScoreVRAMWhy it is similar
MiniMax M2.7MiniMax107.4139.6 GBsame size
Command A Plus 05 2026 BF16Cohere—132.1 GBsame size
Qwen3 VL 235B A22B InstructAlibaba—143.3 GBsame size
Laguna M.1poolside—138.1 GBsame size
Llama 3 1 Nemotron Ultra 253B V1NVIDIA—564.2 GBsame size
DeepSeek V2.5 1210DeepSeek—142.9 GBsame size

Specifications

Publisher
DeepSeek
Parameters
235.7B
Active parameters
21.4B per token
Architecture
DeepseekV2ForCausalLM
Context Length
163,840 tokens
Vocabulary Size
102,400
Release Date
2024-06-14
License
Other

Frequently Asked Questions

How much VRAM does DeepSeek Coder v2 Instruct need?

DeepSeek Coder v2 Instruct requires 144.3 GB of VRAM at Q4_K_M, or 474.3 GB at BF16. Full 164K context adds up to 8.8 GB (153.1 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 235.7B × 4.8 bits ÷ 8 = 141.4 GB

KV Cache + Overhead ≈ 2.9 GB (at 2K context + ~0.3 GB framework)

Fit ratings and hardware model lists check this model with room for a 16K-token context, which needs a little more memory.

KV Cache + Overhead ≈ 11.7 GB (at full 164K context)

VRAM usage by quantization

144.3 GB
153.1 GB

Learn more about VRAM estimation →

Can NVIDIA GeForce RTX 5090 run DeepSeek Coder v2 Instruct?

No — DeepSeek Coder v2 Instruct requires at least 73.5 GB at IQ2_XS, which exceeds the NVIDIA GeForce RTX 5090's 32 GB of VRAM.

What's the best quantization for DeepSeek Coder v2 Instruct?

For DeepSeek Coder v2 Instruct, Q4_K_M (144.3 GB) offers the best balance of quality and VRAM usage. Q5_0 (150.2 GB) provides better quality if you have the VRAM. The smallest option is IQ2_XS at 73.5 GB.

VRAM requirement by quantization

IQ2_XS
73.5 GB
Q3_K_M
117.7 GB
Q4_K_M ★
144.3 GB
Q5_0
150.2 GB
Q5_K_M
170.8 GB
BF16
474.3 GB

★ Recommended — best balance of quality and VRAM usage.

Learn more about quantization →

Can I run DeepSeek Coder v2 Instruct on a Mac?

Yes — Mac Studio (M3 Ultra, 96GB) and 20 other Macs can run DeepSeek Coder v2 Instruct, the smallest at IQ2_XS. Apple Silicon uses unified memory, so the model shares RAM with the system. At Q4_K_M you need at least 144.3 GB of usable unified memory (RAM minus macOS overhead), from Mac Pro M2 Ultra (192 GB).

Can I run DeepSeek Coder v2 Instruct locally?

Yes — DeepSeek Coder v2 Instruct can run locally on consumer hardware. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is DeepSeek Coder v2 Instruct?

At Q4_K_M, DeepSeek Coder v2 Instruct can reach ~68 tok/s on AMD Instinct MI350X. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = 1000 ÷ (active GB ÷ (bandwidth GB/s × efficiency) × 1000 + layers × routing ms)

Mixture-of-Experts: just the active experts get read for each token, along with a fixed routing cost per layer.

Example: NVIDIA B200 → 13.1 GB active ÷ (8000 × 0.65) = 2.52 ms, plus 60 layers × 0.055 ms = 3.30 ms, so 1000 ÷ 5.82 ms = ~172 tok/s

Estimated speed at Q4_K_M (144.3 GB)

~172 tok/s
~172 tok/s
~68 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of DeepSeek Coder v2 Instruct?

At Q4_K_M, the download is about 141.44 GB. The full-precision BF16 version is 471.48 GB. The smallest option (IQ2_XS) is 70.72 GB.

Which GPUs can run DeepSeek Coder v2 Instruct?

No single consumer GPU has enough VRAM to run DeepSeek Coder v2 Instruct at Q4_K_M (144.3 GB). Multi-GPU or professional hardware is required.

Which devices can run DeepSeek Coder v2 Instruct?

4 devices with unified memory can run DeepSeek Coder v2 Instruct at Q4_K_M (144.3 GB), including Mac Pro M2 Ultra (192 GB), Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB), Mac Studio M2 Ultra (192 GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.