WaveSpeedAI

DeepSeek V4 GPU Requirements: VRAM & Hardware Guide

DeepSeek V4 VRAM and GPU requirements for local inference. Full precision vs quantized options, minimum hardware configs, and when to use API instead.

By Dora10 min read
DeepSeek V4 GPU Requirements: VRAM & Hardware Guide

Hey, buddy. I’m your old friend, Dora. I didn’t plan to dig into DeepSeek V4. It just kept popping up in chats and repos, and then a small thing pushed me over: a friend asked if two 4090s could “handle it for a demo.” I paused. I didn’t know. So I went back to the model cards and did the math I usually avoid until I have to.

Here’s the clearest picture I could put together about V4’s VRAM needs. No reproducible run logs were supplied with this article. The figures below are capacity estimates and documented configurations, not my hardware measurements.

Sources checked December 1, 2026. Weight arithmetic uses the original preview checkpoints, ​​*deepseek-ai/DeepSeek-V4-Flash​​ and ​​​deepseek-ai/DeepSeek-V4-Pro​. Dated Flash-0731 and Pro-0813 releases include DSpark draft heads and need their own sizing; V4.1 is a separate version.*

V4 Parameter Count and Memory Footprint

V4 is a Mixture-of-Experts model. But 671B total and 37B active describe V3.2 in the official model card, not V4.

Original V4 checkpointTotal parametersActive per token
FlashApproximately 284B13B
ProApproximately 1.6T49B

What does that mean in practice?

  • With all experts resident, aggregate GPU weight memory follows the full checkpoint.
  • Expert parallelism distributes experts across GPUs. It reduces each GPU’s share; it does not remove inactive experts from the deployment’s memory budget.
  • CPU or NVMe offload can reduce resident GPU weights, with capacity and transfer costs elsewhere.

Active parameters help explain computation per token. They do not tell me how much memory holds the whole model. That was the distinction I needed before answering the 4090 question.

Full precision (BF16) memory requirements

A quick rule I use for capacity planning:

Weight bytes ≈ total parameters × bytes per parameter.

For a hypothetical BF16 conversion:

  • Flash: 284B × 2 ≈ ​568 ​GB​.
  • Pro: 1.6T × 2 ≈ ​3.2 ​TB​.

These are rounded, decimal weight-only estimates. They exclude scales, runtime workspaces, attention caches, temporary activations, and any additional draft-model state. Compare them with the actual checkpoint files and the runtime’s per-GPU allocation.

The original post-trained checkpoints use mixed FP4/FP8 storage. Expanding those weights to BF16 increases memory use without recovering precision already lost. I would not call that an independent full-precision quality baseline.

Quantized options: Q4, Q8, AWQ, GPTQ

Quantization changes the storage budget, but the full parameter count still matters:

Ideal uniform storageOriginal FlashOriginal Pro
BF16: 2 bytes/parameter568 GB3,200 GB
8-bit: 1 byte/parameter284 GB1,600 GB
4-bit: 0.5 bytes/parameter142 GB800 GB

These are arithmetic baselines, not measured ​VRAM​​ or native ​checkpoint​​ sizes. Real formats mix precisions and add packing metadata.

Q4, Q8, AWQ, GPTQ, and floating-point FP4 are not interchangeable compatibility labels. Check the exact V4 checkpoint, quantization format, GPU architecture, and serving kernel together. I have no paired measurements supporting an AWQ memory advantage or a GPTQ latency advantage here.

Minimum Hardware Configurations

Could I run V4 in BF16 without heavy offload? First I need to say which V4.

An eight-card 80 GB node has roughly 640 GB of advertised aggregate memory. Flash’s hypothetical 568 GB BF16 weights leave limited aggregate headroom; Pro’s approximately 3.2 TB exceed that node’s capacity. Neither calculation establishes kernel support or a working deployment.

SGLang’s checked cookbook lists the original Flash on eight H100s and the original Pro on sixteen H100s across two nodes, using its documented low-precision paths. These are maintainer-listed configurations, not tests performed for this article.

I would not carry those recipes over to A100s just because an A100 also has an 80 GB option. Architecture, interconnect, checkpoint format, and supported kernels matter.

Single-node with heavy quantization

A single-node answer depends on model and hardware, not just “Q4.” SGLang lists an original Pro FP4 path on eight H200s. It also lists Flash-0731 on four H200s and Pro-0813 FP4 on eight H200s. Those recipes do not establish a Pro fit on eight 80 GB cards.

Once the supported checkpoint loads, I would test these workload conditions:

Test profileInput / output token budgetConcurrent requestsMemory to verify
Smoke test4K / 5121Loaded weights, prefill peak, decode cache
Interactive queue32K / 1K4Four live contexts plus serving workspaces
Long-context batch128K / 4K8Cache capacity, prefill peaks, request admission

These are proposed test inputs, not proven capacities. Repeat them for each supported weight and cache format. Record peak memory on ​every ​GPU​, output lengths, and OOM failures.

V4 uses compressed attention, so I would use its actual cache implementation rather than copy a dense-model KV formula. A successful short prompt tells me very little about eight long requests.

Consumer GPU feasibility (4090 x2, 4090 x4)

A 4090 has 24 GB of memory. Two provide 48 GB nominally; four provide 96 GB. Both fall below even the original Flash’s ideal 142 GB four-bit weight budget, before runtime overhead.

So I cannot describe either setup as a fully GPU-resident Q4 deployment of that checkpoint. Four 4090s also do not hold its ideal 284 GB eight-bit weights.

An offloaded or more aggressively compressed deployment is a different configuration. It needs its own host RAM, storage, kernel, quality, and latency evidence. For my friend’s demo, I would investigate a hosted endpoint or a smaller local model before buying more cards.

vLLM vs SGLang: Which Serves V4 Better?

Throughput benchmarks per config

Both vLLM and SGLang publish V4 deployment guidance. That gives me candidates to test, not a throughput winner.

I would freeze:

  • Checkpoint revision, quantization, GPU topology, and runtime/container version.
  • Prompt set, input/output lengths, reasoning settings, and request arrival pattern.
  • Cache format, prefix caching, speculative decoding, and concurrency.

Then measure completed output tokens per second for the ​whole deployment​, alongside per-request speed, errors, and memory peaks. Separate sustained traffic from bursts.

No complete paired run exists in the supplied material, so I cannot rank one framework for steady traffic and the other for bursts.

First-token latency comparison

For chatty apps, I would compare SGLang and vLLM at the same workload and report p50/p95 time to first token, inter-token latency, and total completion time.

Separate cold starts from warmed runs. Record whether the first visible event is a reasoning token or final-answer content; different streaming behavior can distort the comparison.

Cache quantization also needs its own trial. Measure memory savings, latency, and task accuracy together. I have no run record supporting a universal first-token penalty or a universal winner.

Quantization Quality Trade-offs

Benchmark scores at Q4 vs Q8 vs BF16

There are ​no verified Q4/Q8/BF16 scores in this article​. Without paired outputs and a reproducible test configuration, I would not assign a numerical quality loss to any format.

A useful comparison starts from the same upstream checkpoint and a documented conversion path. Keep the tokenizer, chat template, prompts, decoding settings, and scoring script fixed.

For knowledge and math, record exact-match accuracy. For code, run compilation and unit checks. For structured output, validate the schema. Keep failed samples and report sample counts.

If a genuine BF16 reference is unavailable, label the comparison by its actual source formats. Casting quantized weights to BF16 does not create a higher-quality reference.

Which tasks tolerate quantization loss

Where I would begin evaluating a lower-bit format:

  • Content drafting, summaries, and product descriptions.
  • Retrieval-grounded answers checked against their sources.
  • Rapid ideation with human review.

Where I would demand stronger regression evidence:

  • Multi-step reasoning and math.
  • Code that must compile and pass tests.
  • Structured outputs where a small error breaks a workflow.

I would start with a supported release format, establish acceptance criteria, then test further compression. “Lower bit” is useful only when the resulting output still passes.

API vs Self-Host: Break-Even Calculator

GPU rental cost vs API cost at different volumes

The spreadsheet needs the ​whole working deployment​, not one GPU priced as though it holds the model.

My inputs would be:

  • GPU count × quoted hourly rate × billed hours.
  • Host RAM, storage, networking, engineering, and monitoring.
  • Measured throughput at the required context, concurrency, and quality.
  • Current ​**API prices**​, separating cache-hit input, cache-miss input, and output.

As checked December 1, official pricing documentation maps deepseek-v4-flash to V4.1-Flash-1017 and deepseek-v4-pro to V4-Pro-0813. Match the actual served version before comparing it with a local checkpoint.

For a dated billing example, Pro-0813 peak rates list $1.32 per million cache-miss input tokens and $3.96 per million output tokens. With an assumed 80% input / 20% output mix and no cache hits:

  • 5M total tokens: $9.24.
  • 500M total tokens: $924.

Off-peak and cache-hit billing change those totals. These are calculated examples, not invoices.

An illustrative eight-GPU rental at an assumed $3/GPU-hour for 720 hours costs ​**$17,280**​, before other expenses. This is a budgeting assumption; a compatible deployment and current quote still need confirming.

Hidden costs still include engineering time, updates, observability, and retries. In a multimodal product, I also keep narrow media tasks separate. A workflow that only needs to enhance facial detail in an image or swap a face between two images can use a dedicated tool rather than add that processing to the LLM stack.

At what tokens/month self-hosting wins

There is no universal tokens-per-month crossover here.

For a fixed input/output mix:

Break-even million tokens = monthly fixed local cost ÷ (API​​ cost per million − variable local cost per million).

Use the full deployment cost, include amortization where relevant, and check that measured throughput can deliver the projected volume. If the denominator is zero or negative, the assumed local setup has no cost crossover.

For API setup background, the earlier guide on how to use DeepSeek V4 via API remains available; recheck its model IDs and examples against current official documentation.

If your usage is bursty and low, start by pricing the API route. If steady workloads keep a compatible local deployment busy, calculate its cost using actual logs. I wouldn’t buy hardware for V4 on the strength of an active-parameter count. I’d want the checkpoint, a working configuration, and the numbers first.


Previous posts:

Share