★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once

DeepSeek · Open-Weight · MIT Licensed

DeepSeek V4: Run a Frontier-Class Model on Your Own Hardware

DeepSeek V4 shipped April 24, 2026 in two sizes — V4-Pro (1.6T total / 49B active MoE) and V4-Flash (284B / 13B active). Both are MIT licensed, both have 1-million-token context windows, and both can be downloaded from Hugging Face and run on your own hardware. This is the closest open-weight equivalent to closed frontier models like Gemini 3.1 Pro. It's also the rare frontier model you can rentcheaply — DeepSeek's own API (prices read 2 November 2026) charges $1.32 input / $3.96 output per million tokens for V4-Pro at peak and half that off-peak, several times less per output token than GPT-5.5 or Claude Opus 4.7. Below: hardware requirements, Ollama/vLLM/llama.cpp setup, the cloud-API pricing, and how V4 compares with closed frontier models on DeepSeek's published benchmarks.

📅 Published: May 9, 2026🔄 Last Updated: November 2, 2026✓ Manually Reviewed

Why this matters: DeepSeek V4 is the only open-weight model with a 1M-token context window that ships under MIT license. No closed competitor offers self-hosting; no other open-weight model matches the spec. If you need frontier capabilities without sending data to OpenAI, Anthropic, or Google, this is the answer.

Key takeaways

  • →Two sizes: V4-Pro 1.6T/49B active for serious infra; V4-Flash 284B/13B active for prosumer hardware.
  • →1M context — the same window as Gemini 3.1 Pro.
  • →MIT licensed — unlimited commercial use, no royalties, no usage caps.
  • →80.6% SWE-Bench Verified (V4-Pro, max reasoning) — level with Gemini 3.1 Pro and 0.2 points behind Claude Opus 4.6 in DeepSeek's own model-card table.
  • →Runs on llama.cpp and vLLM — V4-Flash's smallest GGUF is 82.5 GB, so one RTX 5090 needs 64 GB+ of system RAM behind it; 4× 5090 (128 GB) holds the 2–3-bit builds, and the native 155 GB build wants 192 GB.

Quick verdict

DeepSeek V4-Flash is the new default for serious self-hosters. If you have a multi-GPU rig — even a consumer 4× RTX 5090 build — V4-Flash gives you 1M context, MIT licensing, and benchmark scores close to closed frontier models on DeepSeek's published tables, at zero per-token cost.

V4-Pro is for research labs and infrastructure providers. The 1.6T MoE ships as 864.7 GB of weights, so it needs an 8× H200 or 8× B200-class server; most teams get more value from running V4-Flash and reaching for a closed model such as Claude Sonnet 4.6 or GPT-5.5 via API for the hardest problems.

Can an RTX 5090 run DeepSeek V4 Flash?

Not inside its own 32 GB of VRAM, at any quantization. The smallest DeepSeek-V4-Flash-0731 GGUF that exists is unsloth's UD-IQ1_S at 82.5 GB — 50 GB more than the card holds — and the native-precision UD-Q4_K_XL is 155.1 GB. A single 5090 runs V4 Flash only as an offload rig: the 256 routed experts per layer live in system RAM (llama.cpp's --n-cpu-moe) while the card keeps the attention layers, the shared expert and the KV cache. So the real requirement is 64 GB of DDR5 for the smallest build and 96–128 GB for the builds worth running. The 13B “active” figure sets compute per token, not memory: every expert must be resident before the first token, which is why the file size, not the active count, is the number to plan around.

V4-Flash-0731 buildFileFits 32 GB VRAM alone?Overflow past the 5090DDR5 to pair with one 5090
UD-IQ1_S (unsloth)82.5 GBNo50.5 GB64 GB (little headroom)
UD-IQ2_M (unsloth)90.9 GBNo58.9 GB96 GB
UD-Q2_K_XL (unsloth)96.8 GBNo64.8 GB96 GB
UD-IQ3_XXS (unsloth's recommended build)104.2 GBNo72.2 GB96 GB; unsloth says “at least 110GB RAM” in total, so 128 GB is the comfortable kit
UD-Q3_K_XL (unsloth)128.2 GBNo96.2 GB128 GB
UD-Q4_K_XL (unsloth, native precision — the experts ship as FP4)155.1 GBNo123.1 GB192 GB (128 GB leaves no room for the OS and cache)
MXFP4 (bartowski)156 GBNo124 GB192 GB
UD-Q8_K_XL (unsloth)161.9 GBNo129.9 GB192 GB; unsloth says “at least 169GB of available RAM/VRAM”

Sizes are the shard sums the Hugging Face API reports for unsloth/DeepSeek-V4-Flash-0731-GGUF and bartowski/DeepSeek-V4-Flash-GGUF; the DDR5 column is the overflow plus about 10 GB for the OS and cache, rounded up to the next common kit. The optional DSpark speculative-decoding head is a separate 10.9 GB Q8_0 file in the unsloth repo and costs about that much extra memory if you enable it. Whether an offload rig is fast enough depends on your PCIe and DDR5 bandwidth, and we have not measured it, so no tokens-per-second figure is given here.

What context length fits next to the 5090?

Once the experts are in RAM, the card's job is the KV cache. Flash's config.json declares one KV head of 512 dimensions per layer across 43 layers, so the cache is at most 43 × 512 = 22,016 values per token — 22 KB at 1 byte per value (an fp8 cache) or 44 KB at f16. That is 0.7 GB at the 32K context unsloth recommends, 2.8 GB at 128K, 8.5 GB at the 384K output length DeepSeek recommends for its max reasoning effort, and 23 GB at the full 1,048,576-token window (46 GB at f16). So a 5090 comfortably holds 32K–384K beside the resident attention layers; the full 1M window is most of the card at fp8 and does not fit at f16. Treat these as ceilings: the config sets sliding_window: 128, so many layers store far less. The hardware requirements page extends this table to Strix Halo, Mac Studio and multi-GPU boxes, and dual-3090 versus single-5090 build math covers the case for spending the budget on system RAM instead of a second card.

Specs at a glance

PropertyV4-ProV4-Flash
Total parameters1,650 billion (MoE)284 billion (MoE)
Active parameters49B per token13B per token
Experts per layer384 routed + 1 shared (top-6), 61 layers256 routed + 1 shared (top-6), 43 layers
Context window1,000,000 tokens1,000,000 tokens
LicenseMITMIT
Storage (official release: FP4 experts + FP8)864.7 GB159.6 GB
Storage (if converted to BF16)~3.3 TB~570 GB
Storage (4-bit GGUF)No GGUF checked; the official release is already 4-bit in the experts155.1 GB (unsloth UD-Q4_K_XL); smallest build 82.5 GB
Hugging Facedeepseek-ai/DeepSeek-V4-Prodeepseek-ai/DeepSeek-V4-Flash

V4-Pro vs V4-Flash: pick by hardware

DeepSeek V4-Flash

  • ✓ 4× RTX 5090 (128 GB) holds the 82.5–104 GB builds; native Q4 (155 GB) needs 192 GB
  • ✓ Or 2× H100 (tight) / 1× B200 for the 155–160 GB native builds
  • ✓ 79.0% SWE-Bench Verified at max reasoning (DeepSeek model card, April release)
  • ✓ 1M context with stable long-context recall
  • ✓ Recommended starting point for self-hosters

DeepSeek V4-Pro

  • ✓ Needs 8× H200 / 8× B200-class servers (864.7 GB of weights)
  • ✓ 80.6% SWE-Bench Verified at max reasoning (DeepSeek model card)
  • ✓ Better 1M-token recall: MRCR 1M 83.5 vs Flash's 78.7 (model card)
  • ✓ Best for AI providers / research labs
  • ✓ Most users don't need this — start with Flash

Hardware requirements

ConfigurationHardwareQuantizationFit (memory arithmetic)
V4-Flash budget4× RTX 5090 (32GB each, 128GB total)UD-IQ3_XXS (104.2 GB) or UD-Q2_K_XL (96.8 GB)Fits, with 24-31 GB left for KV cache
V4-Flash sweet spot2× H100 80GB (160GB total)UD-Q3_K_XL (128.2 GB); UD-Q4_K_XL (155.1 GB)Q3 fits with ~32 GB spare; native Q4 leaves under 5 GB
V4-Flash production1× B200 180GBOfficial release (159.6 GB, FP4 experts + FP8)Fits, ~20 GB left for KV cache; BF16 (~570 GB) does not
V4-Pro minimum8× H200 141GB (1,128 GB total)Official release (864.7 GB)Fits; 8× H100 (640 GB) does not
V4-Pro production8× B200 180GB (1,440 GB total)Official release (864.7 GB)Fits with room for long contexts; BF16 (~3.3 TB) does not

Both V4 models are mixture-of-experts, so this page gives no tokens-per-second figure: speed depends on how the experts are placed across GPUs and system RAM and on the interconnect, not on file size alone, and none of these configurations has been measured here. The fit column is arithmetic from the Hugging Face file sizes (official release: 864.7 GB for V4-Pro and 159.6 GB for V4-Flash, read 2 November 2026). For multi-user serving, vLLM's continuous batching raises aggregate throughput over single-user runs.

Local setup

Option 1 · Ollama: cloud only, not local

Ollama lists DeepSeek V4, but only as a cloud model: no official tag downloads the weights. As of 2 November 2026 Ollama has retired its deepseek-v4-flash entry (retired 27 August 2026; no tags), and the live official tags are deepseek-v4-pro:cloud and deepseek-v4.1-flash:cloud. Running ollama run deepseek-v4-pro:cloud sends your prompt to Ollama's servers, which is not local inference. A community account, frob, has repackaged the V4-Flash-0731 GGUF builds as Ollama tags (for example frob/deepseek-v4-flash-0731:284b-a13b-ud-iq1_s, 83 GB); those download the weights, but they are not published by Ollama or DeepSeek. If the point is to keep your data on your own machine, Option 2 is the documented route.

Sources: ollama.com/library/deepseek-v4-flash, deepseek-v4-pro and frob/deepseek-v4-flash-0731 (read 2 November 2026). Details and the full size table: DeepSeek V4 hardware requirements.

Option 2 · llama.cpp (the local route)

Best for: when you need exact quantization control or are on Apple Silicon / non-CUDA hardware.

# Build llama.cpp with CUDA support
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
make GGML_CUDA=1 -j

# Download a GGUF build (unsloth's recommended UD-IQ3_XXS is 104.2 GB in 4 shards)
huggingface-cli download unsloth/DeepSeek-V4-Flash-0731-GGUF \
  --include "UD-IQ3_XXS/*" \
  --local-dir models

# Serve OpenAI-compatible API on :8080
./llama-server \
  -m models/UD-IQ3_XXS/DeepSeek-V4-Flash-0731-UD-IQ3_XXS-00001-of-00004.gguf \
  -ngl 99 \        # attention layers on the GPU
  --n-cpu-moe 43 \ # keep the routed experts in system RAM on a single-GPU box; lower it as VRAM allows
  -c 32768 \       # context (unsloth's recommended default)
  --host 0.0.0.0 --port 8080

Option 3 · vLLM (production / multi-user)

Best for: serving many users. Continuous batching raises aggregate throughput well above single-user llama.cpp or Ollama runs. The official V4-Flash weights are 159.6 GB, so give vLLM four 80 GB cards: two hold the weights but leave almost nothing for the KV cache.

pip install vllm

# Serve V4-Flash on 4× H100 with tensor parallelism
python -m vllm.entrypoints.openai.api_server \
  --model deepseek-ai/DeepSeek-V4-Flash \
  --tensor-parallel-size 4 \
  --max-model-len 1000000 \
  --gpu-memory-utilization 0.92 \
  --port 8000

# OpenAI-compatible: use any OpenAI client with base_url=http://...:8000/v1

For full production deployment patterns including multi-GPU sharding, KV-cache management, and high-throughput serving, see our Local AI Deployment course — full GitHub repo included.

Benchmarks

BenchmarkV4-Pro (Max)V4-Flash (Max)Claude Opus 4.6 (Max)GPT-5.4 (xHigh)Gemini 3.1 Pro (High)
SWE-Bench Verified80.6%79.0%80.8%—80.6%
SWE-Bench Pro55.4%52.6%57.3%57.7%54.2%
Terminal Bench 2.067.9%56.9%65.4%75.1%68.5%
MMLU-Pro87.5%86.2%89.1%87.5%91.0%
GPQA Diamond90.1%88.1%91.3%93.0%94.3%
LiveCodeBench93.5%91.6%88.8%—91.7%
HMMT 2026 Feb95.2%94.8%96.2%97.7%94.7%
MRCR 1M (long-context recall)83.578.792.9—76.3
AIME 2025Not reported in DeepSeek's V4 model card
ARC-AGI-2Not reported in DeepSeek's V4 model card
Aider polyglot (coding)Not reported in DeepSeek's V4 model card

Source: every number is from the DeepSeek-V4 model card on Hugging Face (read 2 November 2026): the “DeepSeek-V4-Pro-Max vs Frontier Models” table for the closed-model columns and the “Comparison across Modes” table for V4-Flash. These are DeepSeek's own reported scores at maximum reasoning effort, not independent tests; “—” means the card gives no score. The V4-Flash column is the April release; the official V4-Flash-0731 card reports only agentic benchmarks (for example Terminal Bench 2.1: 82.7 for 0731 against 61.8 for the April Flash and 72.1 for the V4-Pro preview). DeepSeek's card does not compare against Claude Sonnet 4.6 or GPT-5.5.

DeepSeek V4 cloud API pricing

Everything above is about self-hosting — but V4 is the rare frontier model you can also rent from the vendor cheaply. DeepSeek's pricing page, read 2 November 2026, lists two tiers, both with a 1M context and a 384K maximum output. Prices are per million tokens, shown as peak / off-peak; off-peak is half the peak rate, and peak hours are 01:00–04:00 and 06:00–10:00 UTC on weekdays:

DeepSeek API (per 1M tokens)Input (cache miss)Input (cache hit)Output
Flash tier (deepseek-flash, now V4.1-Flash-1017)$0.30 / $0.15$0.006 / $0.003$1.20 / $0.60
V4-Pro (deepseek-v4-pro, V4-Pro-0813)$1.32 / $0.66$0.044 / $0.022$3.96 / $1.98

Two things changed since this page first listed prices in June 2026 ($0.14 / $0.28 for V4-Flash and $0.435 / $0.87 for V4-Pro): DeepSeek introduced peak and off-peak rates, and it retired the original V4-Flash from the API. The pricing page says the legacy deepseek-v4-flash model name is still accepted but is now answered by DeepSeek-V4.1-Flash-1017 at the Flash price, so the cheap tier is no longer the same model as the V4-Flash weights on Hugging Face. Context caching is automatic, and cache hits cost 1/50th of the cache-miss input rate on the Flash tier ($0.006 vs $0.30) and 1/30th on V4-Pro ($0.044 vs $1.32), so repeated-prefix workloads (RAG, long system prompts, agentic loops) get cheaper still. Third-party hosts set their own rates; check their pages directly.

One correction worth flagging: there was never a “DeepSeek R2.” V4 isthe 2026 release. DeepSeek folded reasoning into the main line — V4-Pro and V4-Flash both ship with a thinking/non-thinking mode — so if you're waiting on R2, you're waiting on a model that was never shipped.

Self-host vs cheap API: which is actually cheaper?

Because V4 is both downloadable and rentable for pennies, the usual “self-host to escape API bills” math is different here than it is for closed models. The API is so cheap that, for most individuals and small teams, renting V4 beats buying GPUs on pure cost — self-hosting wins on privacy, control, and offline operation, not necessarily on dollars.

Path to running V4Up-frontMarginal costBest when
DeepSeek API (Flash tier)$0$0.30 / $1.20 per Mtok peak, half off-peakLow/spiky volume, no privacy requirement, fastest start
DeepSeek API (V4-Pro)$0$1.32 / $3.96 per Mtok peak, half off-peakHardest tasks without owning an 8× H200 server
Self-host V4-Flash~$10K (4× RTX 5090) up to ~$25KPower + amortized hardwareData can't leave your network, steady high volume, offline
Self-host V4-Pro8× H200 / 8× B200-class serverPower + amortized hardwareAI providers / research labs serving V4-Pro at scale

Rough break-even: at $1.20 per million output tokens, $10,000 buys about 8.3 billion Flash-tier output tokens at peak (about 16.7 billion off-peak), so a $10K V4-Flash rig only beats the API once you're producing billions of tokens before the hardware is obsolete — so for most people the API is the cheaperand easier option, and self-hosting earns its keep through privacy, latency control, and no third-party dependency rather than raw price. The same workload on GPT-5.5 ($30 output) or Claude Opus 4.7 ($25 output; see which Claude model to use for coding) costs roughly 6–8× more per output token than V4-Pro at peak ($3.96) and 13–15× more than V4-Pro off-peak ($1.98), which is why V4 is a common “cheap frontier” API even for teams that never plan to self-host.

When to pick DeepSeek V4

  • ✓You need frontier-class capability without sending data to a third party.
  • ✓You want predictable monthly costs (one-time hardware vs per-token API).
  • ✓You need 1M-token context and don't want to pay Gemini 3.1 Pro's API rate.
  • ✓You're building a product where the model is core IP and MIT licensing matters.

When to use a closed model instead

  • →You need the absolute best coding quality → GPT-5.5 or a current Claude Opus model.
  • →You want frontier-class quality at the lowest price → Claude Sonnet 4.6 ($3/$15 per Mtok, 1M context — best value of the closed flagships).
  • →Hard math / reasoning where every percent counts → GPT-5.5.
  • →You don't have multi-GPU hardware and don't want to manage infra → use any closed-API model.

Frequently asked questions

What is DeepSeek V4?
DeepSeek V4 is the April 24, 2026 successor to DeepSeek V3.2 (the model DeepSeek's V4 model card compares it against), shipped in two sizes: V4-Pro (1.6 trillion total parameters with 49 billion active per forward pass) and V4-Flash (284 billion total / 13 billion active). Both are Mixture-of-Experts models with 1-million-token context windows, MIT licensed for unrestricted commercial use, and downloadable from Hugging Face. They're the closest open-weight alternative to closed frontier models like Gemini 3.1 Pro and GPT-5.5.
How much VRAM do I need to run DeepSeek V4 locally?
DeepSeek V4-Pro ships with its experts already in 4-bit: the official Hugging Face release is 864.7 GB, so it needs more than 865 GB of GPU memory, for example 8× H200 (1,128 GB) or 8× B200 (1,440 GB); a BF16 copy would be about 3.3 TB. V4-Flash is much more accessible: the official release is 159.6 GB and the native-precision UD-Q4_K_XL GGUF is 155.1 GB (2× H100 only just, or 192 GB of system RAM), and the smallest published build, UD-IQ1_S, is 82.5 GB. No single consumer GPU holds any Flash build; one RTX 5090 runs it only with the experts offloaded to 64–128 GB of system RAM, and 4× RTX 5090 (128 GB) holds the 82.5–104 GB builds.
How do I install DeepSeek V4 with Ollama?
Not locally, through the official library. Ollama retired its deepseek-v4-flash entry on 27 August 2026 (the page now lists no tags), and the two DeepSeek V4-family entries still live, deepseek-v4-pro and deepseek-v4.1-flash, carry only cloud tags, so `ollama run deepseek-v4-pro:cloud` sends your prompt to Ollama's servers (checked 2 November 2026). Community uploads such as frob/deepseek-v4-flash-0731 repackage the Hugging Face GGUF builds, from 83 GB up. The documented route for running V4-Flash on your own hardware is to download a GGUF build from Hugging Face and load it with llama.cpp; the smallest published build is about 82.5 GB, so it needs a large-memory machine rather than a single consumer graphics card. See the hardware section on this page for the sizes.
How does DeepSeek V4 compare to Claude Sonnet 4.6 and GPT-5.5?
DeepSeek's own V4 model card does not test against Claude Sonnet 4.6 or GPT-5.5; it compares V4-Pro in its maximum reasoning mode with Claude Opus 4.6, GPT-5.4 and Gemini 3.1 Pro. In that table V4-Pro scores 80.6% on SWE-Bench Verified (Opus 4.6 80.8%, Gemini 3.1 Pro 80.6%), 87.5% on MMLU-Pro (Opus 4.6 89.1%, GPT-5.4 87.5%, Gemini 3.1 Pro 91.0%) and 90.1% on GPQA Diamond (Opus 4.6 91.3%, GPT-5.4 93.0%, Gemini 3.1 Pro 94.3%), and it leads that group on LiveCodeBench (93.5%). It trails on Terminal Bench 2.0 (67.9% against GPT-5.4's 75.1%) and on 1M-token recall (MRCR 1M 83.5 against Opus 4.6's 92.9). These are vendor-reported scores, not independent tests. For a head-to-head with Sonnet 4.6 or GPT-5.5, use an independent leaderboard that lists both. V4-Pro shares Gemini 3.1 Pro's 1M-token context window.
Why MIT license matters for DeepSeek V4
MIT is the most permissive open-source license — you can use DeepSeek V4 commercially with no restrictions, no royalties, no usage caps, no acceptable-use policies, and no required disclosure of derivatives. Compare this to Llama 4 (modified license with usage thresholds), Gemma 3 (Google's "Gemma Terms"), or proprietary models (you can't self-host at all). For startups and enterprises, MIT means you can fine-tune, distill, embed in products, or rebrand without legal review.
V4-Pro vs V4-Flash: which should I download?
V4-Flash (284B/13B active) is the right choice for most self-hosters. It fits 2× H100 at native precision only just (155.1 GB of 160 GB) or 4× RTX 5090 with the 82.5–104 GB builds, and has the same 1M context. In DeepSeek's model-card comparison of the April releases at maximum reasoning effort, Flash scores 79.0% on SWE-Bench Verified against V4-Pro's 80.6%, 88.1% against 90.1% on GPQA Diamond, and 78.7 against 83.5 on 1M-token recall (MRCR 1M); the widest gap is factual knowledge (SimpleQA-Verified 34.1% against 57.9%). The official V4-Flash-0731 release, per its model card, outperforms the V4-Pro preview on the agentic benchmarks it lists (for example Terminal Bench 2.1, 82.7 against 72.1). V4-Pro is for serious infrastructure: research labs, AI providers, or teams with 8× H200 / 8× B200-class servers (the weights alone are 864.7 GB). For most users: start with V4-Flash, and move to V4-Pro only if you have the hardware and V4-Flash falls short on your real workloads.
Can DeepSeek V4 replace ChatGPT or Claude in my workflow?
For many coding, research and writing tasks it can. On DeepSeek's published benchmarks V4-Pro sits within about a point of Claude Opus 4.6 and Gemini 3.1 Pro on SWE-Bench Verified, but behind the closed leaders on several agentic and knowledge tests, so the hardest problems (novel algorithm design, multi-file refactors with subtle dependencies, ambiguous specifications) are where a closed model is still most likely to help. A common setup is to run V4 for routine work and keep a closed-model API account for the hard cases. How much that saves depends entirely on your volume and hardware; the self-host vs API section on this page shows the arithmetic. The privacy benefit only applies when V4 runs on your own hardware, not through DeepSeek's or Ollama's cloud.
How much does the DeepSeek V4 cloud API cost?
It is cheap to rent. DeepSeek's pricing page, read 2 November 2026, charges V4-Pro $1.32 input (cache miss) / $3.96 output per million tokens at peak and half that off-peak ($0.66 / $1.98); peak is 01:00–04:00 and 06:00–10:00 UTC on weekdays. The Flash tier, model name deepseek-flash, is now served by DeepSeek-V4.1-Flash-1017 (the original V4-Flash has been retired from the API) at $0.30 / $1.20 peak and $0.15 / $0.60 off-peak. Cache hits cost $0.044 (Pro) and $0.006 (Flash) per million at peak, and both include the 1M context. For comparison, GPT-5.5 standard is $5 / $30 on OpenAI's pricing page (read the same day) and Claude Opus 4.7 is $5 / $25 as listed on our Claude coding page, so V4-Pro output costs roughly 6–8× less at peak and 13–15× less off-peak.
Did DeepSeek R2 ever release?
No. DeepSeek R2 was never shipped — V4 is the actual 2026 release. After R1, DeepSeek folded reasoning into the main line rather than putting out a standalone "R2," so V4-Pro and V4-Flash (April 24, 2026) both include a thinking/non-thinking mode and there is no R2 in DeepSeek's API model list. Any "R2 specs" you see circulating are leaks and speculation, not an official product.
How does DeepSeek V4 do MoE routing?
Per each model's config.json on Hugging Face, V4-Pro has 384 routed experts plus 1 shared expert in each of its 61 layers, and V4-Flash has 256 routed plus 1 shared in each of its 43 layers. A router scores every token and the top 6 routed experts run, alongside the always-on shared expert; that is where the 49B (Pro) and 13B (Flash) active-parameter counts come from. The routed experts are stored in FP4 in the official release. DeepSeek's model card says the bigger architectural change is attention: a hybrid of Compressed Sparse Attention and Heavily Compressed Attention, which at a 1M-token context needs 27% of the single-token inference FLOPs and 10% of the KV cache that DeepSeek-V3.2 needs.

Run DeepSeek V4 in production

Local AI Master's deployment course covers full V4 production setup — multi-GPU sharding, KV-cache management, vLLM tuning, and OpenAI-compatible serving. Real production code, full GitHub repo.

See the deployment course →

Related models

🎯
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Barsha Mohapatra

Written by

Barsha Mohapatra

Founder and Editor, Local AI Master · Founder, Little AI Master

Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.

More on AI Models Directory
See the full AI Models Directory guide.
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators