DeskGPU
English

Can NVIDIA GeForce RTX 5090 run phi-4?

This page was written and translated automatically by AI and checked by software against its sources, with no human editing. Specifications come from the sources listed; memory requirements and speeds are estimates calculated with published formulas. How we use AI

Fits By llama.cpp’s default load check, phi-4 fits on NVIDIA GeForce RTX 5090 at Q8_0 with a context of 8,192 tokens. One card needs 17.7 GiB available for “Fits”.

At Q8_0, the longest context that fits is 16,384 tokens.

“Fits” means llama.cpp's default --fit load check would place all layers on the GPU: our estimate of llama.cpp's buffers, plus its error margin, plus llama.cpp's 1 GiB per-card reserve, is within the memory counted as available. It does not promise that peak memory while generating fits. How results are decided

Values updated Oct 19, 2026 · Calculator

Run profile: llama.cpp, CUDA back end (NVIDIA discrete GPU), all layers on the GPU, Flash Attention on, micro-batch (-ub) 512, F16 KV cache, context (-c) as shown; “Fits” is judged with llama-server’s default 4 parallel sequences (-np auto, unified KV cache) and “Doesn’t fit” with 1 sequence; idle GPU with no other programs using its memory.

Memory counted as available for “Fits” (C_low): 29.25 GiB per card = 32 GiB nominal − 659 MiB (nominal minus the total that llama.cpp reported for this GPU in public logs) − 2,112 MiB (the largest start-up and runtime use seen in this profile’s public logs), rounded down to a multiple of 64 MiB.

These results apply to the configuration seen in public logs, where llama.cpp reported 32,109 MiB of total memory for this GPU. Settings that reduce usable memory (for example ECC, where the card supports it) are not covered.

Memory used for “Doesn’t fit” (C_high): the full 32 GiB per card. Run profiles and their measurements

Memory needed by quantization and context

Available memory needed for “Fits” (X, GiB per card) and the result on NVIDIA GeForce RTX 5090.
Quantization4,0968,192
F16 29.8 GiB Tight30.7 GiB Tight
Q8_0 16.8 GiB Fits17.7 GiB Fits
Q6_K 13.5 GiB Fits14.3 GiB Fits
Q5_K_M 12.0 GiB Fits12.8 GiB Fits
Q4_K_M 10.5 GiB Fits11.4 GiB Fits
Q3_K_M 8.9 GiB Fits9.8 GiB Fits
Q2_K 7.4 GiB Fits8.3 GiB Fits

How fast can it generate?

At Q8_0, the theoretical ceiling is about 107 tokens per second (1,792 GB/s ÷ 16.71 GB read per token).

The speed ceiling is memory bandwidth divided by the bytes read per generated token. It is a theoretical upper bound; public llama.cpp benchmarks typically reach about half to four-fifths of it, and small models and mixture-of-experts models often less. Public benchmarks

Alternatives

Other 32 GB GPUs where phi-4 fits

No other GPU with the same memory size fits this model.

Sources