Skip to content
RfRigFit

Tight. Phi-4 just fits on the GeForce RTX 4070 at Q4: 10.6 GB needed against 11.4 GB of usable VRAM, so 0.8 GB to spare. The next quant up, Q8, needs 17.3 GB, which is 5.9 GB more than is usable. With an FP16 KV cache, about 12,000 tokens of context fit beside the 8.9 GB of Q4 weights.

Can the GeForce RTX 4070 run Phi-4?

Data updated . Last reviewed the same day, when this catalog snapshot was written.

Memory math

The GeForce RTX 4070 has 12.0 GB of dedicated VRAM on the card. The catalog counts 95% of it, 11.4 GB, as available for weights plus KV cache and leaves the other 0.6 GB out of the budget. A result under 2 GB of headroom is labeled tight.

Phi-4 stores 14.7B parameters. Against 11.4 GB usable, Q4 needs 10.6 GB (0.8 GB spare, tight); Q8 needs 17.3 GB (5.9 GB short); FP16 needs 35.2 GB (23.8 GB short). Q4 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, 0.7 GB too big here) and Q6_K (phi-4-Q6_K.gguf, 13.7 GB with KV, 2.3 GB too big here), between the catalog's Q4 and Q8 steps.

The GeForce RTX 4070

Check used prices on eBay for GeForce RTX 4070

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

Quant ladder

Estimated memory for Phi-4 on GeForce RTX 4070
QuantEstimateHeadroomEst. tok/sVerdict
Q410.6 GB0.8 GB56.7 tok/sTight
Q817.3 GB-5.9 GB—No
FP1635.2 GB-23.8 GB—No

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 11.4 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: about 12,000 tokens.

Speed estimate

Phi-4 is dense: every one of its 14.7B parameters is used for each token, so the 8.9 GB of Q4 weights set both what must fit and what is read per token.

Estimate, not a benchmark and not from a cited run: 504 GB/s divided by 8.9 GB of weights read per token at Q4 is a ceiling of 56.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. Q8 would overflow by 5.9 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

Nearby models on the GeForce RTX 4070

All hardware for Phi-4 · All models for the GeForce RTX 4070

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 4070 run Phi-4?
Tight. Phi-4 just fits on the GeForce RTX 4070 at Q4: 10.6 GB needed against 11.4 GB of usable VRAM, so 0.8 GB to spare. The next quant up, Q8, needs 17.3 GB, which is 5.9 GB more than is usable. With an FP16 KV cache, about 12,000 tokens of context fit beside the 8.9 GB of Q4 weights.
How much context fits when Phi-4 runs on the GeForce RTX 4070?
Context that fits in 11.4 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: about 12,000 tokens.
How fast is Phi-4 on the GeForce RTX 4070, as a bandwidth estimate?
Estimate, not a benchmark and not from a cited run: 504 GB/s divided by 8.9 GB of weights read per token at Q4 is a ceiling of 56.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 4070?
GeForce RTX 4060 Ti 16GB (16.0 GB VRAM, 15.2 GB usable, 288 GB/s, list $499), 3.8 GB more usable than here. Yes at Q4, 4.6 GB spare. The best quant stays Q4.