Yes. Phi-4 fits on the GeForce RTX 4090 at Q8: 17.3 GB needed against 22.8 GB of usable VRAM, so 5.5 GB to spare. The next quant up, FP16, needs 35.2 GB, which is 12.4 GB more than is usable. With an FP16 KV cache, the model's full 16,384-token window of context fit beside the 15.6 GB of Q8 weights.
Can the GeForce RTX 4090 run Phi-4?
Data updated . Last reviewed the same day, when this catalog snapshot was written.
Memory math
The GeForce RTX 4090 has 24.0 GB of dedicated VRAM on the card. The catalog counts 95% of it, 22.8 GB, as available for weights plus KV cache and leaves the other 1.2 GB out of the budget. A result under 2 GB of headroom is labeled tight.
Phi-4 stores 14.7B parameters. Against 22.8 GB usable, Q4 needs 10.6 GB (12.2 GB spare); Q8 needs 17.3 GB (5.5 GB spare); FP16 needs 35.2 GB (12.4 GB short). Q8 is the highest of the three that fits. Q4 comes from phi-4-Q4_K_M.gguf plus KV cache at 8K.
The Hub repo also has Q5_K_M (phi-4-Q5_K_M.gguf, 12.1 GB with KV, 10.7 GB spare) and Q6_K (phi-4-Q6_K.gguf, 13.7 GB with KV, 9.1 GB spare), between the catalog's Q4 and Q8 steps.
The GeForce RTX 4090
- NVIDIA GPU, released 2022. List price $1,599, about $70 per usable GB. NVIDIA launch MSRP.
- Memory bandwidth 1,008 GB/s: number 2 from the top of the 16 machines in the can-run list.
- Usable memory 22.8 GB: 5 of the 16 machines have more, and 2 others have exactly the same.
The eBay link is a search of used listings, not a price or a recommendation of a seller. RigFit may earn a commission from qualifying eBay purchases made through links on this site, at no extra cost to you. See the disclosure.
Phi-4
- Phi family, dense, 14.7B parameters. License MIT. The model card lists a 16,384-token context window. Hugging Face repo microsoft/phi-4.
- Sizes come from unsloth/phi-4-GGUF: Q4_K_M phi-4-Q4_K_M.gguf is 8.9 GB; Q5_K_M phi-4-Q5_K_M.gguf is 10.4 GB; Q6_K phi-4-Q6_K.gguf is 12.0 GB; Q8_0 phi-4-Q8_0.gguf is 15.6 GB.
- Microsoft's 14.7B reasoning model. Short 16K context. Q4 fits 12GB.
Quant ladder
| Quant | Estimate | Headroom | Est. tok/s | Verdict |
|---|---|---|---|---|
| Q4 | 10.6 GB | 12.2 GB | 113 tok/s | Yes |
| Q8 | 17.3 GB | 5.5 GB | 64.7 tok/s | Yes |
| FP16 | 35.2 GB | -12.4 GB | — | No |
- GGUF file size plus an FP16 KV-cache estimate at 8,192 tokens. The cache counts only the layers and heads named in the method on the About page.
- Formula estimate: parameter count × bytes per weight × 1.20. No GGUF file size is stored for this quant.
- Tokens/sec is an estimate, a bandwidth roofline: GB/s divided by active weight GB. It is not a measured generation speed, and it is blank for quants that do not fit.
Context length and KV cache
FP16 KV-cache estimate: 1.7 GB at 8,192 tokens and 6.7 GB at 32,768 tokens, about 205 KB per token (40 counted layers). GQA counts two tensors (K and V) for the stored KV heads and head dimension.
Context that fits in 22.8 GB usable VRAM, counting weights plus FP16 KV cache and nothing else (estimate: (usable - weight file) / KV per token, capped at the model's 16,384-token window): Q4: the model's full 16,384-token window; Q8: the model's full 16,384-token window.
Speed estimate
Phi-4 is dense: every one of its 14.7B parameters is used for each token, so the 15.6 GB of Q8 weights set both what must fit and what is read per token.
Estimate, not a benchmark and not from a cited run: 1,008 GB/s divided by 15.6 GB of weights read per token at Q8 is a ceiling of 64.7 tok/s. It ignores prompt processing, KV-cache reads, and software overhead, so real generation is slower.
Offload
The Q4 weights fit in usable VRAM, so this page does not assume a system-RAM offload. FP16 would overflow by 12.4 GB; that is the amount a partial offload would have to carry, and the catalog does not record system RAM or its bandwidth, so it is not counted as a fit.
Ollama
This command pulls the Q4_K_M file from unsloth/phi-4-GGUF, the Hub repo whose file size is used above. It is not an official Ollama library tag.
ollama run hf.co/unsloth/phi-4-GGUF:Q4_K_M
Nearby machines for Phi-4
- Next machine up in memory: MacBook Pro 14-inch M4 Max 36GB (36.0 GB unified memory, 25.2 GB usable, 410 GB/s, list $3,199), 2.4 GB more usable than here. Yes at Q8, 7.9 GB spare. The best quant stays Q8.
- Next machine down in memory: GeForce RTX 4080 Super (16.0 GB VRAM, 15.2 GB usable, 736 GB/s, list $999), 7.6 GB less usable than here. Yes at Q4, 4.6 GB spare. The best quant drops from Q8 to Q4.
- Same 22.8 GB usable: GeForce RTX 3090 (24.0 GB VRAM, 22.8 GB usable, 936 GB/s, list $1,499). Yes at Q8, 5.5 GB spare; the fit is identical, so the difference is bandwidth, price, and platform. Its 936 GB/s against 1,008 GB/s here gives a bandwidth ceiling of 60.1 tok/s at Q8 versus 64.7 tok/s here (estimates).
- Same 22.8 GB usable: Radeon RX 7900 XTX (24.0 GB VRAM, 22.8 GB usable, 960 GB/s, list $999). Yes at Q8, 5.5 GB spare; the fit is identical, so the difference is bandwidth, price, and platform. Its 960 GB/s against 1,008 GB/s here gives a bandwidth ceiling of 61.6 tok/s at Q8 versus 64.7 tok/s here (estimates).
- Cheapest catalog device at Q4: GeForce RTX 3060 12GB (11.4 GB usable, list $329).
Nearby models on the GeForce RTX 4090
- Next smaller model by Q4 size: Nemotron 3.5 Bolt E4B (8B, Q4 6.3 GB) on the GeForce RTX 4090: Yes at FP16, 3.6 GB spare.
- Next larger model by Q4 size: gpt-oss-20b (20.9B, 3.6B active, Q4 11.8 GB) on the GeForce RTX 4090: Yes at Q8, 10.5 GB spare.
- Largest catalog model that still fits at Q4: Nanbeige4.3 33B (33.1B, Q4 22.5 GB): Tight at Q4, 0.3 GB spare.
All hardware for Phi-4 · All models for the GeForce RTX 4090
Questions
- How much memory does Phi-4 need at Q4?
- The Q4 figure used here is 10.6 GB, from phi-4-Q4_K_M.gguf plus KV cache at 8K. GGUF file size plus an FP16 KV-cache estimate at 8,192 tokens. The cache counts only the layers and heads named in the method on the About page.
- Can the GeForce RTX 4090 run Phi-4?
- Yes. Phi-4 fits on the GeForce RTX 4090 at Q8: 17.3 GB needed against 22.8 GB of usable VRAM, so 5.5 GB to spare. The next quant up, FP16, needs 35.2 GB, which is 12.4 GB more than is usable. With an FP16 KV cache, the model's full 16,384-token window of context fit beside the 15.6 GB of Q8 weights.
- How much context fits when Phi-4 runs on the GeForce RTX 4090?
- Context that fits in 22.8 GB usable VRAM, counting weights plus FP16 KV cache and nothing else (estimate: (usable - weight file) / KV per token, capped at the model's 16,384-token window): Q4: the model's full 16,384-token window; Q8: the model's full 16,384-token window.
- How fast is Phi-4 on the GeForce RTX 4090, as a bandwidth estimate?
- Estimate, not a benchmark and not from a cited run: 1,008 GB/s divided by 15.6 GB of weights read per token at Q8 is a ceiling of 64.7 tok/s. It ignores prompt processing, KV-cache reads, and software overhead, so real generation is slower.
- What is the cheapest catalog device that runs Phi-4 at Q4?
- GeForce RTX 3060 12GB, list price $329, with 11.4 GB usable.
- What changes with the next machine up from the GeForce RTX 4090?
- MacBook Pro 14-inch M4 Max 36GB (36.0 GB unified memory, 25.2 GB usable, 410 GB/s, list $3,199), 2.4 GB more usable than here. Yes at Q8, 7.9 GB spare. The best quant stays Q8.