Serve Gemma with SGLang¶
SGLang is a serving engine built for high throughput and structured generation. Like vLLM, it targets multi-user production rather than local single-user work.
Install¶
Serve¶
python3 -m sglang.launch_server \
--model-path google/gemma-4-12B-it \
--host 0.0.0.0 \
--port 30000
Model repositories¶
| Size | Repository |
|---|---|
| E2B | google/gemma-4-E2B-it |
| E4B | google/gemma-4-E4B-it |
| 12B | google/gemma-4-12B-it |
| 26B A4B | google/gemma-4-26B-A4B-it |
| 31B | google/gemma-4-31B-it |
For 4-bit serving, use the QAT compressed-tensors builds,
google/gemma-4-{E2B,E4B,12B,31B}-it-qat-w4a16-ct.