LLM Studio · how to run every open model, correctly Vol 01 · No 01 · 2026
Index/LLM Studio/Microsoft/Phi-4/SGLang · FP8
SGLang · FP8 · NVIDIA · CUDA 12+

Phi-4 on SGLang at FP8

Serving framework from LMSYS. Strong on multi-turn and structured outputs. Competitive with vLLM on raw tok/s, better on complex request patterns. Half the VRAM of FP16. Minimal quality loss on H100-class hardware.

At a glance The numbers

Model
Microsoft Phi-4
Family
Phi
Params
14B
License
MIT
Engine
SGLang
Quantization
FP8
Bytes per param
1
Platform
NVIDIA · CUDA 12+

The command Copy and run

What SGLang expects you to type to serve Phi-4 at FP8. Adjust the paths for your filesystem; the structure holds.

pip install "sglang[all]"

python -m sglang.launch_server \
  --model-path microsoft/phi-4 --quantization fp8 \
  --port 30000

Why this quant The trade-off

FP8 — Half the VRAM of FP16. Minimal quality loss on H100-class hardware.

Expect to need around 18 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 Consumer 24 GB — RTX 3090 or 4090.

Common failures What breaks, and the fix

Server crashes on startup
Check CUDA version — SGLang needs recent toolchain; prefer the pip install over source.
Tensor-parallel errors
Same divisibility rules as vLLM: heads must divide --tp-size.

Alternatives Other ways to run this model

About the model

Synthetic-data recipe; 14B that competes with 70B-class.

Open the full model page →