LLM Roofline
NVIDIA · PCIE · Backend: llama.cpp

NVIDIA RTX 3090 (24 GB Used) — LLM Sizing & Speed Matrix

Best $/tok/s ratio in the homelab used market (936 GB/s & 24 GB VRAM under $800).

Reference Pricing
$799 Street
Usable Memory
23 GiB
Memory Bandwidth
936 GB/s (80% eff.)
FP16 Compute
71 TFLOPS
Roofline Ridge
58.8 FLOP/B
Power (Load / Idle)
350W / 35W

All 32 Open-Weight Models on NVIDIA RTX 3090 (24 GB Used) (Q4_K_M @ 32k)

Model Status Weights Total @ 32k Decode TTFT (4k) Max Safe Ctx
Gemma 3 27B IT COMFORTABLE 15.8 GiB 20.2 GiB 37.3 tok/s 5.33s 68k
Mistral Small 3.1 24B COMFORTABLE 13.8 GiB 20.3 GiB 37.0 tok/s 4.63s 49k
Qwen3 14B COMFORTABLE 8.5 GiB 15.0 GiB 51.6 tok/s 2.94s 40k
Qwen2.5 14B Instruct COMFORTABLE 8.5 GiB 16.0 GiB 48.0 tok/s 2.98s 32k
DeepSeek-R1 Distill Qwen 14B COMFORTABLE 8.5 GiB 16.0 GiB 48.0 tok/s 2.98s 69k
Phi-4 14B COMFORTABLE 8.5 GiB 13.0 GiB 60.2 tok/s 2.93s 16k
Gemma 3 12B IT COMFORTABLE 7.0 GiB 10.6 GiB 74.7 tok/s 2.46s 128k
Qwen3 8B COMFORTABLE 4.7 GiB 10.5 GiB 75.6 tok/s 1.67s 40k
Llama 3.1 8B Instruct COMFORTABLE 4.6 GiB 9.9 GiB 80.9 tok/s 1.63s 128k
Qwen2.5 7B Instruct COMFORTABLE 4.4 GiB 7.4 GiB 113.8 tok/s 1.53s 32k
Gemma 3 4B IT COMFORTABLE 2.5 GiB 4.4 GiB 209.1 tok/s 0.89s 128k
GLM-4 32B 0414 TIGHT 18.6 GiB 22.1 GiB 34.0 tok/s 6.33s 32k
Qwen3 30B-A3B TIGHT 17.6 GiB 21.6 GiB 125.2 tok/s 0.80s 40k
Codestral 22B TIGHT 12.8 GiB 21.4 GiB 35.3 tok/s 4.43s 32k
DeepSeek-R1 671B OOM 386.4 GiB 390.3 GiB OOM — OOM
DeepSeek-V3 671B OOM 386.4 GiB 390.3 GiB OOM — OOM
Llama 3.1 405B Instruct OOM 233.8 GiB 252.5 GiB OOM — OOM
Llama 4 Maverick 400B-A17B OOM 231.5 GiB 239.0 GiB OOM — OOM
Qwen3 235B-A22B OOM 135.4 GiB 142.6 GiB OOM — OOM
Mixtral 8x22B Instruct OOM 81.2 GiB 89.8 GiB OOM — OOM
Command A 111B OOM 63.9 GiB 69.1 GiB OOM — OOM
Llama 4 Scout 109B-A17B OOM 62.8 GiB 70.2 GiB OOM — OOM
Qwen2.5 72B Instruct OOM 41.9 GiB 53.7 GiB OOM — OOM
DeepSeek-R1 Distill Llama 70B OOM 40.7 GiB 52.5 GiB OOM — OOM
Llama 3.3 70B Instruct OOM 40.7 GiB 52.5 GiB OOM — OOM
Llama 3.1 70B Instruct OOM 40.7 GiB 52.5 GiB OOM — OOM
Llama-3.3 Nemotron Super 49B OOM 28.7 GiB 36.7 GiB OOM — OOM
Mixtral 8x7B Instruct OOM 26.9 GiB 32.2 GiB OOM — OOM
Qwen3 32B OOM 18.9 GiB 28.3 GiB OOM — 11k
Qwen2.5 Coder 32B OOM 18.9 GiB 28.3 GiB OOM — 11k
DeepSeek-R1 Distill Qwen 32B OOM 18.9 GiB 28.3 GiB OOM — 11k
QwQ 32B Reasoning OOM 18.9 GiB 28.3 GiB OOM — 11k

Interactive NVIDIA RTX 3090 (24 GB Used) Simulator

27.4B Dense · GQA
936 GB/s · 71 TFLOPS
3. Weight Quantization 4.85 bpw
4. KV Cache
32,768 tok
Compute Roofline
COMFORTABLE FIT Memory-Bandwidth Bound
Max Safe Ctx: 68k
Memory Allocation Footprint 20.17 / 23.00 GiB usable
Weights: 15.78 GiB KV Cache: 2.91 GiB Overhead: 1.49 GiB Headroom: 2.83 GiB
Decode Speed
37.3
tok/s (batch=1)
Prefill Speed
774
prompt tok/s
TTFT Latency
5.33s
for 4,096 tok
Active Params
27.4B
of 27.4B total
llama.cpp Server Command
llama-server -hf google/gemma-3-27b-it:Q4_K_M -ngl 99 -fa on -c 32768 --port 8080
Context KV Cache Total VRAM Decode Status
4k 0.72 GiB 17.62 GiB 42.3 tok/s COMFORTABLE
8k 1.03 GiB 18.30 GiB 41.5 tok/s COMFORTABLE
16k 1.66 GiB 18.92 GiB 40.0 tok/s COMFORTABLE
32k 2.91 GiB 20.17 GiB 37.3 tok/s COMFORTABLE
64k 5.41 GiB 22.67 GiB 32.9 tok/s TIGHT
128k 10.41 GiB 27.67 GiB 26.6 tok/s OOM

Buy-vs-Cloud-vs-API Monthly TCO Break-Even

USE SERVERLESS API
Own Hardware/mo
$26.37
129.6h active + power
Cloud GPU/mo
$32.79
@$0.22/hr spot/pod
Serverless API/mo
$9.25
API cheaper

Hardware FAQ — NVIDIA RTX 3090 (24 GB Used)

How much usable VRAM / GPU memory does NVIDIA RTX 3090 (24 GB Used) actually provide for LLMs?

NVIDIA RTX 3090 (24 GB Used) provides 23 GiB usable VRAM after subtracting 1.0 GiB driver/display overhead.

What is the largest Q4_K_M model NVIDIA RTX 3090 (24 GB Used) can run at 32k context?

With Q4_K_M weights and FP16 KV cache at 32k context, the largest fitting model in our verified catalog on NVIDIA RTX 3090 (24 GB Used) is Gemma 3 27B IT (27.4B total).