Production vLLM Deployment Command (Phi-4 14B Reasoning FP8)
The baseline configuration below launches microsoft/phi-4 across 1x RTX 4090 (24GB) (TP=1) with chunked prefill enabled to bound Time-To-First-Token (TTFT) spikes under concurrent load:
python3 -m vllm.entrypoints.openai.api_server \
--model microsoft/phi-4 \
--tensor-parallel-size 1 \
--max-model-len 16384 \
--quantization fp8 \
--gpu-memory-utilization 0.93 \
--enable-chunked-prefill \
--port 8000
Architectural Sizing Notes & FAQ
How is KV-Cache calculated for Phi-4 14B Reasoning?
Phi-4 14B Reasoning uses 40 transformer layers with Grouped-Query Attention (10 KV heads × 128d). In FP8 (1 byte/element) at 32,768 tokens for a single sequence, weights occupy 15.4 GB, the KV-cache consumes 3.12 GB, and CUDA runtime workspace reserves 1.8 GB—totaling 20.4 GB.
Can Phi-4 14B Reasoning run on a single GPU?
At a 32K context with one sequence, INT4 AWQ/GPTQ weights bring the estimate down to 12.6 GB, which maps to 1x RTX 4090 (24GB). FP8 needs 20.4 GB (1x RTX 4090 (24GB)). Each additional concurrent 32K sequence adds about 3.12 GB of FP8 KV-cache. The GPU hourly rates used for the monthly column are illustrative on-demand figures, not quotes.