Can NVIDIA GeForce RTX 3090 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 3090 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.
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): 21.44 GiB per card = 24 GiB nominal − 453 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 24,123 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 24 GiB per card. Run profiles and their measurements
Memory needed by quantization and context
| Quantization | 4,096 | 8,192 |
|---|---|---|
| F16 | 29.8 GiB Doesn't fit | 30.7 GiB Doesn't fit |
| Q8_0 | 16.8 GiB Fits | 17.7 GiB Fits |
| Q6_K | 13.5 GiB Fits | 14.3 GiB Fits |
| Q5_K_M | 12.0 GiB Fits | 12.8 GiB Fits |
| Q4_K_M | 10.5 GiB Fits | 11.4 GiB Fits |
| Q3_K_M | 8.9 GiB Fits | 9.8 GiB Fits |
| Q2_K | 7.4 GiB Fits | 8.3 GiB Fits |
How fast can it generate?
At Q8_0, the theoretical ceiling is about 56.0 tokens per second (936 GB/s ÷ 16.71 GB read per token).
Alternatives
Other 24 GB GPUs where phi-4 fits
Sources
- Model page, with every quantization and its files: phi-4
- GPU page, with each specification and its sources: NVIDIA GeForce RTX 3090
- Model files on Hugging Face (pinned revisions): microsoft/phi-4@2db69c1, unsloth/phi-4-GGUF@5110b77
- Memory size of NVIDIA GeForce RTX 3090 from: Wikipedia: GeForce RTX 30 series (CC BY-SA 4.0), GetDeploying GPU Models (CC BY 4.0)
- Methodology