TextDense3.80B params4K max context

Phi-3 Mini 3.8B VRAM Requirements: How Many GPUs & What It Costs

Phi-3 Mini 3.8B needs 7.6 GB of VRAM for its weights at FP16 — 9.2 GB once a KV cache is loaded. Below is the full breakdown: which GPUs fit, how many you need, what it serves, and what it costs per million tokens. Every figure comes from tokcalc's open-source capacity model.

Weights (FP16)
7.6 GB
9.2 GB with KV cache
Fits on 1 GPU?
Yes
A100 40GB SXM4 or larger
Cheapest config
$0.0209
4× RTX 3080 10GB / 1M tokens
Fastest config
20526
tok/s on 1× Cerebras CS-3 (WSE-3)
VRAM requirement by quantization
Weight footprint = params × bytes per param. The “with KV cache” column adds one request at 4K context.
QuantizationWeightsWith KV cacheSmallest single GPU
FP16recommended7.6 GB9.2 GBRTX 3080 10GB (10 GB)
FP8 (E4M3)3.8 GB5.4 GBRTX 3080 10GB (10 GB)
AWQ 4-bit2.1 GB3.7 GBRTX 3080 10GB (10 GB)
Which GPU should you use?
Reference workload: 8K context, 8 concurrent users, continuous batching, FP16. Ranked by fitting first, then by tokens per dollar-hour.
GPUGPUsTotal VRAMDecode tok/sAggregate tok/sCost / 1M tokens
RTX 3080 10GB4×40 GB221.010608$0.0209
RTX 4080 16GB4×64 GB208.510008$0.0333
RTX 3090 24GB2×48 GB136.13266$0.0425
RTX 5090 32GB2×64 GB260.56253$0.0444
T4 16GB4×64 GB93.054467$0.0498
RTX A4000 16GB4×64 GB130.36253$0.0533
RTX 4090 24GB2×48 GB146.63517$0.0632
V100 SXM2 32GB2×64 GB130.93141$0.0884
A10G 24GB2×48 GB87.242094$0.0955
AMD MI300X 192GB1×192 GB453.35439$0.1277
TPU v6e Trillium (32GB)2×64 GB119.12858$0.1555
A100 40GB SXM41×40 GB132.61591$0.1572

RTX 3080 10GB has no NVLink, so 4-way tensor parallelism runs over PCIe. tokcalc applies a flat 0.85× multi-GPU efficiency factor for this, which is realistic for NVLink-equipped datacenter cards but optimistic for PCIe scale-out — treat the throughput and cost figures for this configuration as an upper bound, and measure before committing.

How concurrency changes with context length
On 4× RTX 3080 10GB at FP16. KV cache scales linearly with context, so long contexts cut the number of users you can serve from the same GPUs.
ContextConcurrent usersKV per requestFits?
4K201.61 GB✓ fits
8K103.22 GB✓ fits
33K212.88 GB✓ fits
66K125.77 GB✓ fits
131K051.54 GB✗ does not fit
Frequently asked questions

Can Phi-3 Mini 3.8B run on a single GPU?

Yes. At FP16 the model needs 9.2 GB of VRAM, so it fits on a single A100 40GB SXM4 or anything with more VRAM. At full FP16 it needs 9.2 GB, which fits on one RTX 3080 10GB or larger.

How many GPUs does Phi-3 Mini 3.8B need?

At FP16 with 8,192-token context and 8 concurrent users, the cheapest configuration that fits is 4× RTX 3080 10GB (40 GB total VRAM). $0.0209 per 1M output tokens.

How fast can Phi-3 Mini 3.8B be served?

On 1× Cerebras CS-3 (WSE-3) at FP16, the aggregate throughput is 20526 tokens/sec with continuous batching. That hardware has no published rental price, so its cost per million tokens is not comparable.

How much VRAM does Phi-3 Mini 3.8B need?

Weights alone: 7.6 GB at FP16, 7.6 GB at FP16. Add KV cache for your context length and concurrency — every concurrent request at 8,192 tokens costs extra VRAM, so budget headroom above the weight figure.

Is it cheaper to self-host Phi-3 Mini 3.8B than to call an API?

At 4× RTX 3080 10GB the marginal cost is $0.0209 per 1M output tokens, before you add idle capacity, ops staff, or egress. That is typically cheaper than frontier API pricing at sustained volume, but API calls win when your load is bursty or too small to keep a GPU busy. The Build vs Buy tab on tokcalc prices this against a specific provider for you.

Try Phi-3 Mini 3.8B with your own context and concurrency

The calculator uses the exact same formulas as this page — change the workload and watch every number update.

Open in calculator
Model architecture
The numbers behind the KV-cache and throughput math.
Total parameters3.80B
Active parameters per token3.80B
ArchitectureDense
Attention layoutFull attention (GQA)
Transformer layers32
Hidden dimension3072
Attention heads32 query / 32 KV (GQA)
Head dimension96
Vocabulary size32,000
Max context (catalog)4K
KV cache per token @ 8K384.0 KB

Every layer caches keys and values for the whole context, so the KV cache grows linearly with conversation length.