Skip to main content

How to run Llama 3.1 70B on NVIDIA GeForce RTX 3090

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

Short answer (November 2026): Llama 3.1 70B does not fit in the RTX 3090's 24 GB. The Q4_K_M file is 42.5 GB, so about half the model has to run from system RAM. GigaGPU measured 5.2 tok/s single-stream at Q4_K_M with a 4K context (published April 15, 2026, on Llama 3 70B, which has the same architecture). On a desktop with dual-channel DDR5-6000, our bandwidth math puts the ceiling near 4 tok/s. That is usable for overnight batch jobs but slow for chat. For interactive use, a 24 GB card is better spent on a newer mixture-of-experts model such as Qwen3 30B A3B, which Hardware Corner measured at 153.6 tok/s on this card.

Check your exact config: Will Llama 3.1 70B run on the RTX 3090? → Offload by file size, no cited speed on file yet. Each page swaps the card or the model and lists every source.

How to run Llama 3.1 70B on NVIDIA GeForce RTX 3090

Which models fit on an RTX 3090?

Llama 3.1 70B's Q4_K_M file is 42.5 GB (per its Hugging Face listing, bartowski/Meta-Llama-3.1-70B-Instruct-GGUF); on the RTX 3090, the weights do not fit, so the remaining layers run on the CPU from system RAM and system-RAM bandwidth sets the speed. 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
30-35B (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 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

  • First measured number on this page: GigaGPU's 5.2 tok/s single-stream (8.3 tok/s batched at bs=8), Q4_K_M, 4K context (April 2026). The April version had only an unsourced 1-3 tok/s range and an empty benchmark table.
  • KV-cache math corrected. Llama 3.1 70B uses 8 KV heads, so a 4K context costs about 1.3 GB, not the 5.6 GB we printed. At 128K the cache is about 43 GB, not 179 GB.
  • Offload guidance corrected: about 39 of 80 layers fit on the card at Q4_K_M, not 20.
  • 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.
  • New section: mixture-of-experts models that fit entirely on a 24 GB card, with measured tok/s.

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. Llama 3.1 70B at Q4_K_M is a 42.5 GB file (Ollama's llama3.1:70b tag is 43 GB), before any KV cache.

Verdict: ❌ Does not fit. With llama.cpp you can keep about 39 of 80 layers on the GPU and run the rest from system RAM, at roughly 3-5 tok/s depending on your RAM. Even Q2_K (26.4 GB) is too big for 24 GB. IQ2_M (24.1 GB) technically matches the card's capacity but leaves no room for the KV cache. To run 70B fully on GPUs you need 48 GB, for example two RTX 3090s.

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 llama3.1:70b # 43 GB, Q4_K_M
ollama run llama3.1:70b

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

Ollama offloads automatically when the model does not fit; ollama ps shows the CPU/GPU split. Expect the offloaded speeds described below, and keep num_ctx small, because every extra GB of KV cache pushes another layer onto the CPU.

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/Meta-Llama-3.1-70B-Instruct-GGUF:Q4_K_M \
 -c 4096 -ngl 39 -fa on \
 -p "Write a haiku about GPUs"

With 24 GB, about 39 of 80 layers fit on the GPU at Q4_K_M with a 4K context (each layer is ~0.53 GB). The rest run from system RAM, and that part sets your speed. The April version suggested far fewer layers; raise -ngl until you hit out-of-memory, then back off by two. The same flags work with llama-server if you want an OpenAI-compatible endpoint.

Expected performance

  • Measured: GigaGPU reports 5.2 tok/s single-stream and 8.3 tok/s at batch size 8 for Llama 3 70B Q4_K_M on one RTX 3090 (512-token prompt, 256-token completion, llama.cpp, context capped at 4K). GigaGPU does not say what system RAM its server uses.
  • Bandwidth math for a desktop: with 39 layers on the GPU (936 GB/s) and the remaining ~22 GB in dual-channel DDR5-6000 (96 GB/s theoretical), each token takes at least ~249 ms, a ceiling of about 4.0 tok/s. DDR4 systems land lower. A 200-token answer takes 40-50 seconds.

If you need 70B-class quality at chat speed, the options are 48 GB of VRAM (two 3090s split by layer) or a smaller modern model; see the table further down.

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/Meta-Llama-3.1-70B-Instruct-GGUF on Hugging Face. The KV column is the FP16 cache for a 4K-token context, computed from the model's config (80 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_K26.4 GB1.3 GB27.7 GB❌Large; only if nothing else fits
Q3_K_M34.3 GB1.3 GB35.6 GB❌Noticeable
Q4_K_M42.5 GB1.3 GB43.9 GB❌Small; the community default
Q5_K_M50.0 GB1.3 GB51.3 GB❌Very small
Q6_K57.9 GB1.3 GB59.2 GB❌Near-lossless
Q8_075.0 GB1.3 GB76.3 GB❌Near-lossless
BF16141.1 GB1.3 GB142.4 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 Llama 3.1 70B-relevant runs for the RTX 3090, each linked to its source:

ModelQuantRuntimeContextGen tok/sPrefill tok/sSource
Llama 3 70BQ4_K_Mllama.cpp4K5.2 (single stream)—GigaGPU
Llama 3 70BQ4_K_Mllama.cpp4K8.3 (batch of 8)—GigaGPU

No reviewer we trust has published a Llama 3.1 70B run on a single RTX 3090. Llama 3 70B and 3.1 70B share the same layer count and attention layout, so decode speed transfers. Speeds depend heavily on the host CPU's memory bandwidth because half the model runs from system RAM.

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. Llama 3.1 70B uses grouped-query attention (8 KV heads), so each token costs 320 KiB of FP16 cache. The April version of this table overstated it by roughly 4×. Here is the overhead on top of 42.5 GB of Q4_K_M weights:

ContextKV cache (FP16)KV cache (q8_0)Total VRAM (FP16 KV)Fits in 24 GB?
2K tokens~0.67 GB~0.34 GB~43.2 GB❌
4K tokens~1.3 GB~0.67 GB~43.9 GB❌
8K tokens~2.7 GB~1.3 GB~45.2 GB❌
32K tokens~10.7 GB~5.4 GB~53.3 GB❌
128K tokens~42.9 GB~21.5 GB~85.5 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 dmon should show near-100% GPU 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)

A 24 GB card cannot hold a dense 70B model, but these newer models fit entirely in VRAM. The mixture-of-experts ones run 20-30× faster than offloaded 70B, and even the dense Qwen3.5 27B is about 6× faster:

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. GigaGPU, LLaMA 3 70B on RTX 3090 benchmark (April 15, 2026)
  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 70B 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 Llama 3.1 70B run on the NVIDIA GeForce RTX 3090?
Llama 3.1 70B does not fit in the RTX 3090's 24 GB. The Q4_K_M file is 42.5 GB, so about half the model has to run from system RAM. GigaGPU measured 5.2 tok/s single-stream at Q4_K_M with a 4K context (published April 15, 2026, on Llama 3 70B, which has the same architecture). On a desktop with dual-channel DDR5-6000, our bandwidth math puts the ceiling near 4 tok/s. That is usable for overnight batch jobs but slow for chat. For interactive use, a 24 GB card is better spent on a newer mixture-of-experts model such as Qwen3 30B A3B, which Hardware Corner measured at 153.6 tok/s on this card.
Can I run Llama 3.1 70B on the NVIDIA GeForce RTX 3090 without offloading to the CPU?
No. The Q4_K_M weights alone are 42.5 GB and the card has 24 GB. Even Q2_K is 26.4 GB. You must offload about half of the layers to system RAM (roughly 39 of 80 stay on the GPU), add a second 24 GB card, or pick a smaller model.
What quantization should I use for Llama 3.1 70B on the RTX 3090?
Keep Q4_K_M (42.5 GB) and offload; quantizing down to Q2_K (26.4 GB) or IQ2_M (24.1 GB) costs a lot of quality and still does not fit 24 GB. More aggressive quants only reduce how much runs from system RAM.
How much VRAM does context length add for Llama 3.1 70B?
Llama 3.1 70B uses grouped-query attention with 8 KV heads, so each token of context costs 320 KiB of FP16 KV cache: about 1.3 GB at 4K, 5.4 GB at 16K and 10.7 GB at 32K, on top of the 42.5 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 Llama 3.1 70B?
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 42.5 GB Q4_K_M file that is about 22 tok/s; llama.cpp typically reaches 50-75% of it. Because this model does not fit, the binding limit here is your system RAM bandwidth for the offloaded layers, not the GPU's 936 GB/s. Compute matters more for prompt processing and batched serving.
Does a second GPU help with Llama 3.1 70B?
Yes, this is the case where it does. Two RTX 3090s give 48 GB, enough for the 42.5 GB Q4_K_M file plus a 4K-8K KV cache. llama.cpp and Ollama split the model by layers, and the cards take turns, so you get roughly the speed of one 3090 reading a 42.5 GB model, far faster than offloading to system RAM. vLLM tensor parallelism can go faster again but needs matching cards and a fast PCIe link.

— Mike Perry · Updated 2026-11-09

Parts this article names

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