llmrun
DeepSeekDeepSeek CoderDeepseekV2ForCausalLM

DeepSeek Coder v2 Lite Base — Hardware Requirements & GPU Compatibility

ChatCode

DeepSeek Coder v2 Lite Base is a 15.7B-parameter open language model from DeepSeek in the DeepSeek Coder family. It supports a context window of up to 163,840 tokens. At Q4_K_M it needs about 10.18 GB of VRAM — see which GPUs and Macs can run it below.

15.7B params · MoE2.7B active164K contextOther11.4K downloads143 likes
S

Runs great on a 24 GB GPU

Runs from8 GB Q2_K · 32KBest on24 GB Q4_K_M · ~243 tok/s · 160KMacs from16 GB Q4_K_M · ~56 tok/s

Other

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run DeepSeek Coder v2 Lite Base

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.

Recommended

vLLM
one command · needs vLLM installed
$vllm serve deepseek-ai/DeepSeek-Coder-V2-Lite-Base --max-model-len 16384

vLLM repo with its own quantisation

Download: Weights on Hugging Face

install, OS, other quants

Ways to runOther ways

each opens step-by-step

Run in cloud

Runs on RTX A4000 (16 GB) (5 GB headroom) · Q4_K_M

Generation speed
~135 tok/s
generation speed
Cost per 1M output tokens
$0.18
per 1M output tokens

How Much VRAM Does DeepSeek Coder v2 Lite Base Need?

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

QuantizationVRAM+32KOn RTX 4090 (reference)
7.4 GB8 GB2-bit · K-quant — 2-bit quantization with K-quant improvementsFits: 160K context · ~294 tok/s
8.4 GB9 GB3-bit medium — 3-bit medium quantizationFits: 160K context · ~273 tok/s
10.2 GB10.8 GB4-bit medium — 4-bit medium quantization — most popular sweet spotFits: 160K context · ~243 tok/s
11.9 GB12.5 GB5-bit medium — 5-bit medium quantization — good quality/size tradeoffFits: 160K context · ~219 tok/s
13.7 GB14.3 GB6-bit, very good — 6-bit quantization, very good qualityFits: 160K context · ~199 tok/s
16.5 GB17 GB8-bit, near-lossless — 8-bit quantization, near-losslessFits: 160K context · ~174 tok/s
32.2 GB32.7 GB16-bit · bfloat — Brain floating point 16 — preferred for trainingDoes not fit: needs 32.2 GB
est.calculated, no published file yet

Selected Q4_K_M

4-bit medium quantization

10.2GBat 16K context

Weights
9.4 GB
KV cache
0.5 GB
Overhead
0.3 GB

Fits RTX 4090 (reference) · 13.8 GB free · ~243 tok/s

≥50 tok/s needs ≥143 GB/s · RTX 5090 ~337, RTX 3090 Ti ~243

Which Hardware Can Run DeepSeek Coder v2 Lite Base?

Q4_K_M · 10.2 GB

DeepSeek Coder v2 Lite Base (Q4_K_M) requires 10.2 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 14+ GB is recommended. Using the full 164K context window can add up to 4.6 GB, bringing total usage to 14.8 GB. 38 GPUs can run it, including NVIDIA GeForce RTX 5090, NVIDIA GeForce RTX 3090 Ti, NVIDIA GeForce RTX 3080 Ti. 150 devices with unified memory can run DeepSeek Coder v2 Lite Base, including Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB), Mac Mini M2 Pro (16 GB).

By VRAM tier · typical GPUs and Macs at Q4_K_M
8 GB · RTX 4060Q2_K · 7.5 GB · ~116 tok/s · 32K8 GB tier →
12 GB · RTX 3060 12GBQ4_K_M · 10.2 GB · ~113 tok/s · 64K12 GB tier →
16 GB · RTX 5060 Ti 16GBQ4_K_M · 10.2 GB · ~135 tok/s · 160K16 GB tier →
24 GB · RTX 4090referenceQ4_K_M · 10.2 GB · ~243 tok/s · 160K24 GB tier →
Mac 32 GB · Mac Mini M4Q4_K_M · 10.2 GB · ~39 tok/s · 160KMacs →
Mac 64 GB · Mac Studio M4 MaxQ4_K_M · 10.2 GB · ~101 tok/s · 160KMacs →

How good is DeepSeek Coder v2 Lite Base?

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 5 boards that have results for this model, sorted by their weight in the llmrun Score; badges show who ran the test.

  • MMLU-Pro

    TIGER-LabIndependent

    34.4%

    #112/146 open

    Independent
  • MMLU

    Epoch AI · Jun 2024Lab-reported

    60.5%

    #46/85 open

    Lab-reported
  • GSM8K

    Epoch AI · Jun 2024Lab-reported

    67.1%

    #21/62 open

    Lab-reported
  • ARC Challenge

    Epoch AI · Jun 2024Lab-reported

    57.3%

    #26/56 open

    Lab-reported
  • WinoGrande

    Epoch AI · Jun 2024Lab-reported

    72.9%

    #21/51 open

    Lab-reported

Alternatives to DeepSeek Coder v2 Lite Base

DeepSeek Coder family · 11 models →

Similar models

6
ModelScoreVRAMtok/sWhy it is similar
Apriel 1.6 15B ThinkerServiceNow-AI—13.2 GB~67same size
Kimi VL A3B InstructMoonshot AI—10.7 GB~208same size
Phi 4 ReasoningMicrosoft—12.5 GB~69same size
JiRackUltra 14BCMSManhattan—12.4 GB~69same size
Nemotron Terminal 14BNVIDIA—11.9 GB~69same size
LLaDA2.1 MiniInclusion AI—33.5 GB—needs > 24 GBsame size

Specifications

Publisher
DeepSeek
Parameters
15.7B
Active parameters
2.7B 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 Lite Base need?

DeepSeek Coder v2 Lite Base requires 10.2 GB of VRAM at Q4_K_M, or 32.2 GB at BF16. Full 164K context adds up to 4.6 GB (14.8 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 15.7B × 4.8 bits ÷ 8 = 9.4 GB

KV Cache + Overhead ≈ 0.8 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 ≈ 5.4 GB (at full 164K context)

VRAM usage by quantization

10.2 GB
14.8 GB

Learn more about VRAM estimation →

Can NVIDIA GeForce RTX 4090 run DeepSeek Coder v2 Lite Base?

Yes, at Q8_0 (16.5 GB) or lower. Higher quantizations like BF16 (32.2 GB) exceed the NVIDIA GeForce RTX 4090's 24 GB.

What's the best quantization for DeepSeek Coder v2 Lite Base?

For DeepSeek Coder v2 Lite Base, Q4_K_M (10.2 GB) offers the best balance of quality and VRAM usage. Q5_K_M (11.9 GB) provides better quality if you have the VRAM. The smallest option is Q2_K at 7.4 GB.

VRAM requirement by quantization

Q2_K
7.4 GB
Q4_K_M ★
10.2 GB
Q5_K_M
11.9 GB
Q6_K
13.7 GB
Q8_0
16.5 GB
BF16
32.2 GB

★ Recommended — best balance of quality and VRAM usage.

Learn more about quantization →

Can I run DeepSeek Coder v2 Lite Base on a Mac?

Yes — Mac Mini M2 Pro (16 GB) and 133 other Macs can run DeepSeek Coder v2 Lite Base. Apple Silicon uses unified memory, so the model shares RAM with the system. At Q4_K_M you need at least 10.2 GB of usable unified memory (RAM minus macOS overhead).

Can I run DeepSeek Coder v2 Lite Base locally?

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

How fast is DeepSeek Coder v2 Lite Base?

At Q4_K_M, DeepSeek Coder v2 Lite Base can reach ~174 tok/s on AMD Instinct MI350X. On NVIDIA GeForce RTX 4090: ~243 tok/s. 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 → 1.7 GB active ÷ (8000 × 0.65) = 0.33169 ms, plus 27 layers × 0.055 ms = 1.48500 ms, so 1000 ÷ 1.81669 ms = ~550 tok/s

Estimated speed at Q4_K_M (10.2 GB)

~551 tok/s
~243 tok/s
~551 tok/s
~494 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 Lite Base?

At Q4_K_M, the download is about 9.42 GB. The full-precision BF16 version is 31.41 GB. The smallest option (Q2_K) is 6.68 GB.

Which GPUs can run DeepSeek Coder v2 Lite Base?

38 consumer GPUs can run DeepSeek Coder v2 Lite Base at Q4_K_M. Top options include AMD Radeon RX 6800, AMD Radeon RX 6800 XT, AMD Radeon RX 6900 XT, AMD Radeon RX 6700 XT. 26 GPUs have plenty of headroom for comfortable inference.

Which devices can run DeepSeek Coder v2 Lite Base?

150 devices with unified memory can run DeepSeek Coder v2 Lite Base at Q4_K_M (10.2 GB), including AMD Ryzen AI 9 HX 370 (Strix Point) Laptop, ASUS Ascent GX10, Beelink GTR9 Pro (Ryzen AI Max+ 395, 128 GB), Framework Desktop (Ryzen AI Max+ 395, 128 GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.