Skip to main content

How to run DeepSeek-R1 32B on NVIDIA GeForce RTX 3090

Exact commands, expected tok/s, VRAM math for this specific combination.

Short answer (November 2026): DeepSeek-R1 32B, the Qwen 2.5-based distill that Ollama ships as deepseek-r1:32b, fits on the RTX 3090 at Q4_K_M (19.85 GB). Expect about 28-35 tok/s. We found no trustworthy published run of this exact model on a 3090, but it has the same layer layout as Qwen 2.5 32B, which Kunal Ganglani measured at 28 tok/s, and Qwen 3 32B, which Hardware Corner measured at 35.1 tok/s. The catch is context: R1's long reasoning traces fill the cache quickly, and an FP16 cache tops out around 16K on this card.

Check your exact config: Will DeepSeek-R1-Distill-Qwen 32B run on the RTX 3090? → Runs by file size, no cited speed on file yet. Each page swaps the card or the model and lists every source.

How to run DeepSeek-R1 32B on NVIDIA GeForce RTX 3090

Which models fit on an RTX 3090?

DeepSeek-R1 32B's Q4_K_M file is 19.9 GB (the file size this article cites); on the RTX 3090, the weights and a usable context window both fit. SpecPicks tracks 5 community runs of that size on this card, median 30.3 tok/s. RTX 3090 carries 24 GB of VRAM. The weights column is the range of real Q4_K_M files on Hugging Face for the models in each size class (about 0.6 GB per billion parameters), and the runtime plus a usable context window wants about 2 GB on top; every tokens-per-second figure is a median over community-reported Q4 runs SpecPicks tracks for this card, with the run count and the source beside it.

Showing the model sizes this article covers and the band either side. Every size from 3B to 70B+, for every card SpecPicks tracks, is in the local-LLM GPU table.

Model size Weights at Q4 Fits in 24 GB? Measured Left for context Source
20-27B (Gemma 3 27B, Mistral Small)A 27B Q4_K_M file (about 16.7 GB) is more than a 16 GB card holds, so 16 GB means a Q3 quant or partial CPU offload; a 24B loads with a short context. 20 GB holds the class with a usable context window, 24 GB with a long one. 14.3–16.7 GB Fits: weights and a usable context window Nothing on file → ~7 GBfor runtime and KV cache —
30-35B (DeepSeek-R1 32B, Qwen 3 32B, QwQ 32B)The step change. A 24 GB card holds this entirely in VRAM; below that it is CPU offload. about 19.9 GBDeepSeek-R1 32B Q4_K_M: 19.9 GB Fits: weights and a usable context window 30.3 tok/s5 runs · 3 sources ~4 GBfor runtime and KV cache Hardware Corner
70B+ (Llama 3.3 70B, Qwen 2.5 72B)One 48 GB card or two 24 GB cards at Q4. A 32 GB card runs Q4 only with layers in system RAM; a 3-bit IQ3_XXS file (about 27.5 GB) loads on it. about 42.5 GB No: spills to system RAM — system-RAM bandwidth sets the speed — none —

Every RTX 3090 benchmark run, with its source → GPU picks for local LLM — the same table across every card we track How we source these numbers

What changed — November 2026

  • Benchmark rows added from the two same-architecture models with published 3090 runs: Qwen 2.5 32B (28 tok/s, Kunal Ganglani) and Qwen 3 32B (35.1 tok/s at 4K, Hardware Corner).
  • KV-cache math corrected: the distill uses 8 KV heads over 64 layers, so 4K costs 1.1 GB, not the April figure; 16K costs 4.3 GB.
  • Clarified which model this is: deepseek-r1:32b is DeepSeek-R1-Distill-Qwen-32B, a dense model, not the 671B DeepSeek-R1.
  • Build steps updated: llama.cpp now builds with CMake and can pull GGUFs directly with -hf.
  • Prices refreshed: the cheapest new RTX 3090 on Amazon was $1,900 the week of November 9, 2026.

The original April 2026 version of this guide was generated from spec-sheet estimates. This revision replaces those estimates with published measurements where they exist, and labels anything we calculated ourselves.

Does it fit?

The RTX 3090 has 24 GB of GDDR6X at 936 GB/s. DeepSeek-R1-Distill-Qwen-32B at Q4_K_M is a 19.85 GB file (Ollama's deepseek-r1:32b tag is 20 GB).

Verdict: ✅ Fits, with limited context. The bandwidth ceiling for this file is ~47 tok/s, and same-shape models measure 28-35 tok/s. Reasoning models emit long <think> traces, often several thousand tokens, so set the context to at least 8K-16K and quantize the KV cache to q8_0 if you go further.

Install Ollama (the easy path)

bash
# Linux (macOS and Windows: download the installer from ollama.com)
curl -fsSL https://ollama.com/install.sh | sh
ollama pull deepseek-r1:32b # 20 GB, Q4_K_M
ollama run deepseek-r1:32b

Ollama detects NVIDIA GPUs through CUDA automatically; no manual configuration is needed.

Ollama's default context is small. Raise it with /set parameter num_ctx 16384 inside ollama run, or PARAMETER num_ctx in a Modelfile, and check ollama ps still shows 100% GPU.

Install llama.cpp (more control)

llama.cpp gives you flag-level control over quantization, context length, and layer offload. The project dropped its Makefile in 2025, so build with CMake (see the build docs):

bash
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j

# -hf downloads the GGUF from Hugging Face on first run
./build/bin/llama-cli -hf bartowski/DeepSeek-R1-Distill-Qwen-32B-GGUF:Q4_K_M \
 -c 4096 -ngl 99 -fa on \
 -p "Write a haiku about GPUs"

-ngl 99 puts every layer on the GPU: the Q4_K_M file (19.9 GB) plus a 4K KV cache fits in 24 GB with room to spare. The same flags work with llama-server if you want an OpenAI-compatible endpoint.

Expected performance

  • No direct measurement found. The R1 32B distill is a fine-tune of Qwen 2.5 32B (64 layers, 8 KV heads), so speed per token matches that model.
  • Same-architecture runs on this card: Qwen 2.5 32B Q4_K_M at 28 tok/s (Kunal Ganglani); Qwen 3 32B Q4_K at 35.1 tok/s at 4K and 30.3 at 16K (Hardware Corner).

Speed per token is not the whole story with R1: a 3,000-token reasoning trace at 30 tok/s is 100 seconds before the final answer starts. If you want the answer sooner, the 14B distill (deepseek-r1:14b, 9.0 GB) roughly doubles speed.

Common issues

"out of memory" on the first prompt: reduce context length (-c 2048) or quantization (q4_K_S instead of q4_K_M).

Slow first token but fast generation: that's prompt processing ("prefill"). Normal — blame the KV cache building. Subsequent messages in the same session will be snappy.

Frequent swapping / system hangs: VRAM is full AND system RAM is full. Close Chrome. Add more DDR5.


NVIDIA GeForce RTX 3090 specs: 24 GB GDDR6X, 936 GB/s, 350 W TDP, 2020 launch, $1,499 launch MSRP. Prices and benchmark rows last checked November 9, 2026.

Does it fit? Full quantization matrix

File sizes are the GGUF builds in bartowski/DeepSeek-R1-Distill-Qwen-32B-GGUF on Hugging Face. The KV column is the FP16 cache for a 4K-token context, computed from the model's config (64 layers × 8 KV heads × 128 dims × 2 bytes × K and V). "Fits" leaves 1.5 GB for the CUDA context and compute buffers.

QuantFile size+ KV @ 4K ctxTotalFits in 24 GB?Quality loss
Q2_K12.3 GB1.1 GB13.4 GB✅Large; only if nothing else fits
Q3_K_M15.9 GB1.1 GB17.0 GB✅Noticeable
Q4_K_M19.9 GB1.1 GB20.9 GB✅Small; the community default
Q5_K_M23.3 GB1.1 GB24.3 GB❌Very small
Q6_K26.9 GB1.1 GB28.0 GB❌Near-lossless
Q8_034.8 GB1.1 GB35.9 GB❌Near-lossless
BF1665.5 GB1.1 GB66.6 GB❌Reference

Quantizing the KV cache to q8_0 (-ctk q8_0 -ctv q8_0 in llama.cpp, OLLAMA_KV_CACHE_TYPE=q8_0 in Ollama) halves the KV column. Budget 5-10% headroom on top of the table if the card also drives your display.

Where these numbers come from

Every tok/s figure on this page links to the published run it came from: independent reviewers such as Hardware Corner, community datasets such as LocalScore and TechFuelHQ's Hugging Face dataset, and hosting providers that publish their own runs. We re-read each source on November 9, 2026. Where no trustworthy run exists for this exact model and card, we say so and show the closest measured model instead. Numbers we calculated ourselves (KV-cache sizes, bandwidth ceilings, layer-offload counts) are labelled as calculations and show their inputs: the model's config.json, the GGUF file sizes on Hugging Face, and the card's rated memory bandwidth.

SpecPicks does not run paid hardware review cycles; we aggregate. If you have a run that beats or contradicts a number here, send it with your exact flags and we will add it.

Measured tok/s on this GPU

Published DeepSeek-R1 32B-relevant runs for the RTX 3090, each linked to its source:

ModelQuantRuntimeContextGen tok/sPrefill tok/sSource
Qwen 2.5 32B (the distill's base model)Q4_K_Mllama.cpp—28—Kunal Ganglani
Qwen 3 32B (same layer layout)Q4_Kllama.cpp CUDA, -fa 14K35.11,087.9Hardware Corner
Qwen 3 32B (same layer layout)Q4_Kllama.cpp CUDA, -fa 116K30.3767.8Hardware Corner

We print proxies rather than a guess: no source we trust has published DeepSeek-R1-Distill-Qwen-32B tok/s on a single RTX 3090.

For the full tok/s matrix on this card across every model we have logged, see the NVIDIA GeForce RTX 3090 benchmark page.

Context length and VRAM — the hidden cost

KV cache grows linearly with context. DeepSeek-R1 32B uses grouped-query attention (8 KV heads), so each token costs 256 KiB of FP16 cache. The April version of this table overstated it by roughly 4×. Here is the overhead on top of 19.9 GB of Q4_K_M weights:

ContextKV cache (FP16)KV cache (q8_0)Total VRAM (FP16 KV)Fits in 24 GB?
2K tokens~0.54 GB~0.27 GB~20.4 GB✅
4K tokens~1.1 GB~0.54 GB~20.9 GB✅
8K tokens~2.1 GB~1.1 GB~22.0 GB✅
32K tokens~8.6 GB~4.3 GB~28.4 GB❌
128K tokens~34.4 GB~17.2 GB~54.2 GB❌

For long contexts, KV-cache quantization (-ctk q8_0 -ctv q8_0, which needs flash attention, -fa on) is the single biggest VRAM saver, with very little quality cost.

Which runtime wins on this hardware?

Three mainstream runtimes target NVIDIA GeForce RTX 3090; the right one depends on your workload:

  • Ollama — easiest. Auto-detects CUDA, handles model downloads, exposes an OpenAI-compatible API out of the box. Wraps llama.cpp; you give up fine-grained control for zero setup.
  • llama.cpp — direct flag-level control over quant, context, KV-cache precision, batch size, split layers across GPUs. Where the LocalLLaMA community benchmarks its numbers (see the Apple-Silicon megathread #4167 for reference tok/s across M-series chips).
  • vLLM — built for production serving. Tensor parallelism, PagedAttention, continuous batching. Linux + NVIDIA CUDA primary target. If you're not serving multiple concurrent users, the overhead isn't worth it.

For head-to-head numbers and install commands across all three, see our Ollama vs llama.cpp vs vLLM guide.

Troubleshooting — three failure modes and fixes

1. First token takes 5-30 seconds, then generation is fast. That's normal prefill: the model is processing your prompt before it can start generating. On a long prompt (4K+ tokens) prefill dominates the first-token latency. If it's unexpectedly slow, check that you actually offloaded layers to the GPU — nvidia-smi or powermetrics (macOS) should show near-100% utilisation during prefill. If utilisation is flat, your inference is running on CPU.

2. "Out of memory" halfway through a long chat. The KV cache grew past what the card can hold. Drop to a smaller quant (q4_K_M → q3_K_M), cut -c context length, or enable KV-cache quantization (-ctk q8_0 -ctv q8_0 in llama.cpp). On Ollama set num_ctx smaller in your Modelfile.

3. Tok/s is ~30% of what LocalLLaMA threads report. Three usual suspects: (a) power/thermal throttling — check sustained clocks during a long prompt; (b) PCIe x8 or x4 link when you expected x16 — nvidia-smi --query-gpu=pcie.link.width.current --format=csv; (c) running the wrong binary, e.g. a non-CUDA llama.cpp build on an NVIDIA card. Rebuild with cmake -B build -DGGML_CUDA=ON and confirm.

Newer models worth trying on the RTX 3090 (November 2026)

The R1 distills were built on Qwen 2.5 in January 2025. Newer reasoning-capable models run much faster on this card:

ModelQuantGen tok/sLong-context gen tok/sSource
Qwen3 30B A3B (MoE)Q4_K153.687.2 @ 32KHardware Corner
gpt-oss 20B (MoE)MXFP4147.562.2 @ 128KHardware Corner
Qwen3.5 35B (MoE)MXFP4111.279.4 @ 128KHardware Corner
Qwen3.5 27B (dense)Q4_K33.528.8 @ 64KHardware Corner

All four rows are llama.cpp with CUDA and flash attention, measured by Hardware Corner at a 4K context with long-context figures from the same run. Mixture-of-experts models read only their active experts per token (about 3B parameters for Qwen3 30B A3B), so they decode far faster than a dense model of the same file size.

Sources

  1. Hardware Corner, RTX 3090 local LLM benchmarks (updated March 2026)
  2. Kunal Ganglani, local LLM benchmarks
  3. llama.cpp build docs (CMake)
  4. r/LocalLLaMA community benchmark threads
  5. llama.cpp GitHub Discussions

Products mentioned

Small-model (7–9B) reference throughput

These figures are for 7–9B models, not the 30–35B models this article covers. The table holds model size fixed so the cards can be compared with each other; for the size in the title, use the article's own figures.

Median generation throughput at 7–9B models (Llama 3.1 8B, Qwen 3 8B), Q4 quantization, from community-reported runs SpecPicks tracks. Each row pools runs from different sources, runtimes and models in that class, so the rows are not a matched head-to-head; where the article compares cards on the same rig, its own figures are the like-for-like result. Street price is the second-lowest listing priced within the last 24 hours at 0.5–2× launch MSRP, so no single listing sets it, and a street figure well above MSRP says so in its cell; where too few listings pass that check the cell shows a dash and the launch MSRP, which is not comparable with the street figures. Rows marked for comparison are not the cards this article is about — they are included so the throughput column has something to be read against.

GPUVRAM Llama-3-8B class, Q4Street price Sources
NVIDIA GeForce RTX 3090 24 GB 103.7 tok/s8 runs · 6 sources $2,250street, all listings · 1.5× the $1,499 launch MSRP SpecPicks median of 8 runs; sources: GitHub XiongjieDai/GPU-Benchmarks…, Hardware Corner, kunalganglani.com LLM Benchmarks, llama.cpp GitHub CUDA scoreboard +2 more
NVIDIA GeForce RTX 4090for comparison 24 GB 130.8 tok/s10 runs · 7 sources —too few current listings for a street figure · launch MSRP was $1,599 SpecPicks median of 10 runs; sources: GPU-Benchmarks-on-LLM-Inference…, Hardware Corner, llama.cpp GitHub (CUDA performanc…, Awesome Agents LLM Leaderboard +3 more
NVIDIA GeForce RTX 3090 Tifor comparison 24 GB 110 tok/s7 runs · 5 sources —too few current listings for a street figure · launch MSRP was $1,999 SpecPicks median of 7 runs; sources: Hardware Corner, llama.cpp GitHub Discussion #15013, kunalganglani.com community…, LocalScore (Mozilla Builders) +1 more

Products mentioned in this article

Amazon & eBay listings, plus full specs and alternatives on each product page.

As an Amazon Associate, SpecPicks earns from qualifying purchases; we also earn on qualifying eBay purchases via the eBay Partner Network. Prices shown were last tracked at crawl time and may vary — check the listing for the current price.

Watch a review

Asus ROG Strix Gaming RTX 3090 Review, Thermals, Overclocking & Gaming Benchmarks — Hardware Unboxed on YouTube

Frequently asked questions

How fast does DeepSeek-R1 32B run on the NVIDIA GeForce RTX 3090?
DeepSeek-R1 32B, the Qwen 2.5-based distill that Ollama ships as deepseek-r1:32b, fits on the RTX 3090 at Q4_K_M (19.85 GB). Expect about 28-35 tok/s. We found no trustworthy published run of this exact model on a 3090, but it has the same layer layout as Qwen 2.5 32B, which Kunal Ganglani measured at 28 tok/s, and Qwen 3 32B, which Hardware Corner measured at 35.1 tok/s. The catch is context: R1's long reasoning traces fill the cache quickly, and an FP16 cache tops out around 16K on this card.
Can I run DeepSeek-R1 32B on the NVIDIA GeForce RTX 3090 without offloading to the CPU?
Yes. The Q4_K_M file is 19.85 GB; a 4K FP16 cache adds 1.1 GB and a 16K cache 4.3 GB, which is about the limit on 24 GB. Use -ctk q8_0 -ctv q8_0 (with -fa on) to reach about 32K for long reasoning traces.
What quantization should I use for DeepSeek-R1 32B on the RTX 3090?
Q4_K_M (19.9 GB) is the community default and a good balance of size and quality. There is not much headroom above it on this card, so spend spare VRAM on context instead. Drop to Q3_K_M only if you need a much longer context than the table above allows.
How much VRAM does context length add for DeepSeek-R1 32B?
DeepSeek-R1 32B uses grouped-query attention with 8 KV heads, so each token of context costs 256 KiB of FP16 KV cache: about 1.1 GB at 4K, 4.3 GB at 16K and 8.6 GB at 32K, on top of the 19.9 GB Q4_K_M weights. Quantizing the cache to q8_0 halves those figures.
Is the RTX 3090 limited by memory bandwidth or compute for DeepSeek-R1 32B?
Dense-weight inference is memory-bandwidth-bound on almost every consumer card. The RTX 3090's memory bandwidth is 936 GB/s, so the decode ceiling is roughly bandwidth ÷ bytes read per token. For the 19.9 GB Q4_K_M file that is about 47 tok/s; llama.cpp typically reaches 50-75% of it. Compute matters more for prompt processing and batched serving.
Does a second GPU help with DeepSeek-R1 32B?
Not for speed. A second 3090 would let you run Q6_K or a full 32K FP16 cache, but llama.cpp's layer split will not make single-user decode faster.

— Mike Perry · Updated 2026-11-09

Parts this article names

Amazon Associate — prices tracked 2026-12-05, may vary.