GPU VRAM calculator · Phi

How much VRAM does Phi-3.5 MoE need?

Phi-3.5 MoE has 41.87 billion parameters. The weights alone take about 78 GB in FP16/BF16, 39 GB in FP8 and 23.6 GB at 4-bit. KV cache comes on top: about 1 GB per sequence at an 8K context in FP16.

It is a mixture-of-experts model (16 experts, 2 active per token). Only some experts run for each token, but all of them must sit in GPU memory, so VRAM follows the total parameter count.

Smallest single GPU at Q4_K_M / 4-bit with an 8K context: RTX 5090 (32 GB).

Smallest single GPU at FP16 / BF16 with an 8K context: H200 (141 GB).

VRAM for inference (8K context, 1 sequence)

PrecisionWeightsTotalSmallest GPU
FP16 / BF1678 GB83.9 GBH200
FP8 / INT839 GB42.9 GBRTX 4090 48GB
Q6_K32 GB35.6 GBRTX 4090 48GB
Q4_K_M / 4-bit23.6 GB26.8 GBRTX 5090

Which GPU on CloudGPU fits Phi-3.5 MoE

GPUVRAMFP16 / BF16FP8 / INT8Q6_KQ4_K_M / 4-bit
RTX 309024 GBToo smallToo smallToo smallToo small
RTX 409024 GBToo smallToo smallToo smallToo small
RTX 509032 GBToo smallToo smallToo smallFits
RTX 4090 48GB48 GBToo smallFitsFitsFits
L40S48 GBToo smallFitsFitsFits
A100 80GB80 GBToo smallFitsFitsFits
H10080 GBToo smallFitsFitsFits
H200141 GBFitsFitsFitsFits
B200180 GBFitsFitsFitsFits

8K context, 1 sequence. Each card links to its rental page. Current prices are on the pricing page; availability is shown on the deploy page.

KV cache by context length (per sequence)

ContextKV cache (FP16)KV cache (FP8)
4K0.5 GB0.3 GB
32K4 GB2 GB
128K16 GB8 GB

Multiply by the number of concurrent sequences. Maximum context in the model config: 131,072 tokens. Models with sliding-window attention use less than this upper bound.

VRAM for fine-tuning (2K-token sequences, batch 1)

WorkloadTotalSmallest GPU
QLoRA fine-tune31.8 GBRTX 4090 48GB
LoRA fine-tune96.8 GBH200
Full fine-tune703.2 GB6× H200 / 5× B200

How the estimate works

Weights = parameters × bits per parameter ÷ 8. KV cache = per-token KV size from the model config × context × concurrent sequences (halved for an FP8 KV cache). Runtime overhead = 1 GB plus 5% of the weights. LoRA assumes a 16-bit base model ×1.2 + 2 GB, QLoRA a 4-bit base ×1.3 + 2 GB, and full fine-tuning 18 bytes per parameter (AdamW, mixed precision). Real usage varies with the framework, sliding-window attention and batch shape, so leave some headroom.

Parameter count and architecture read from microsoft/Phi-3.5-MoE-instruct on Hugging Face on 2026-12-03. These are estimates, not measurements; leave some headroom.

Phi-3.5 MoE VRAM FAQ

How much VRAM does Phi-3.5 MoE need?

About 78 GB for FP16 weights, 39 GB for FP8 and 23.6 GB at 4-bit, plus KV cache (about 1 GB per sequence at an 8K context) and about 1 GB of runtime overhead.

Can Phi-3.5 MoE run on an RTX 4090 (24 GB)?

Not on one 24 GB card: even at 4-bit it needs about 26.8 GB with an 8K context. Smallest single GPU at Q4_K_M / 4-bit with an 8K context: RTX 5090 (32 GB).

How much VRAM do I need to fine-tune Phi-3.5 MoE?

Roughly 31.8 GB with QLoRA, 96.8 GB with LoRA on a 16-bit base model, and 703.2 GB for full fine-tuning with AdamW (2K-token sequences, batch 1).