Serving framework from LMSYS. Strong on multi-turn and structured outputs. Competitive with vLLM on raw tok/s, better on complex request patterns. Reference precision. No quality loss.
What SGLang expects you to type to serve Phi-4 at FP16. Adjust the paths for your filesystem; the structure holds.
pip install "sglang[all]" python -m sglang.launch_server \ --model-path microsoft/phi-4 \ --port 30000
FP16 — Reference precision. No quality loss.
Expect to need around 32 GB of VRAM to hold the weights at this precision. This is a dense model: every parameter runs for every token. VRAM and compute both scale with the full 14B. Fits on Prosumer 48 GB — RTX 6000 Ada, 2× RTX 4090.