How much VRAM does Phi-4-mini need?
In BF16 the weights alone take 7.15 GiB (7.7 GB). In FP8 that is 4.14 GiB, and about 2.28 GiB with 4-bit quantization (Q4_K_M). Each request then adds KV cache: 1.00 GiB at 8K tokens and 4.00 GiB at 32K (BF16 cache).
Can Phi-4-mini run on an 8 GB, 12 GB or 16 GB graphics card?
With a 32K context and llama.cpp: 8 GB (RTX 4060): only with part of the model in system RAM, about 20 tokens/s in Q5_K_M; 12 GB (RTX 3060): yes, in Q8_0, about 31 tokens/s; 16 GB (RTX 4060 Ti): yes, in BF16, about 18 tokens/s. Counted with 32 GB of system RAM. A shorter context needs less memory.
How fast is Phi-4-mini on an RTX 4090 or an RTX 5090?
About 61 tokens/s on an RTX 4090 in BF16. About 105 tokens/s on an RTX 5090 in BF16. These are estimates for one request at a 32K context; against 23 published llama.cpp measurements on consumer and workstation GPUs, our estimates are 12% off at the median.
Can Phi-4-mini run without a graphics card?
Yes, slowly: about 6.4 tokens/s in Q6_K on a processor with 32 GB of dual-channel DDR5 RAM (llama.cpp, 32K context).
Can Phi-4-mini run a coding agent on an RTX 4090 or an RTX 5090?
On an RTX 4090: yes, in BF16 with a 64K context, about 44 tokens/s. One step (2,000 new tokens read, 300 written) takes about 7.1 s; reading the whole context again takes about 8.8 s. On an RTX 5090: yes, in BF16 with a 64K context, about 76 tokens/s. One step (2,000 new tokens read, 300 written) takes about 4.2 s; reading the whole context again takes about 8.6 s. Coding agents need at least 64K of context (Ollama's guidance); the step sizes are an example. Phi-4-mini's chat template supports tool calling, which most agents rely on.
Can Phi-4-mini run on a single RTX 4090 (24 GB)?
Yes. In BF16 it fits on one RTX 4090 with an 8K-token context (8.15 GiB including the cache, with llama.cpp).
Can Phi-4-mini run on an RTX 5090 (32 GB)?
Yes. In BF16 (8.15 GiB with an 8K-token context) it fits on one RTX 5090, with llama.cpp.
Can Phi-4-mini run on a Mac?
Yes. In 4-bit (Q4_K_M with llama.cpp) it needs a Mac with 8 GB of unified memory or more, of which macOS gives the GPU about 5 GB, for one request with an 8K-token context. In 8-bit (Q8_0) it needs 16 GB or more.
Can Phi-4-mini run on a DGX Spark or a Ryzen AI Max+ 395 (128 GB)?
Yes. In BF16 (8.15 GiB with an 8K-token context) it fits on a DGX Spark (128 GB) and on a Ryzen AI Max+ 395 with 128 GB, whose GPU gets up to 96 GB, with llama.cpp and one request.
What is the cheapest way to run Phi-4-mini?
On 2026-11-30, the cheapest on-demand setup is 1 × RTX A4000 (16 GB) with BF16 weights on Vast.ai, at $0.072 per hour (about $52.56 per month). Next: 1 × GeForce RTX 4090 (24 GB) with BF16 weights on Vast.ai, at $0.100 per hour. Sized for one 8K-token request; prices are checked every hour.
How many H100 GPUs does Phi-4-mini need?
With one request and an 8K-token context: 1 in BF16, 1 in FP8 and 1 in 4-bit (vLLM, 90% of memory usable). Serving many users at once needs more memory for their KV caches: the calculator sizes that for you.
Does Phi-4-mini support tool calling?
Yes, Phi-4-mini supports tool (function) calling: it can ask your application to run a function and use the result.
What is Phi-4-mini's knowledge cutoff?
June 2024, according to its official model card: it knows little about later events.