使用 SGLang 服務 Gemma¶
SGLang 是為高吞吐量與結構化 生成打造的服務引擎。如同 vLLM,它針對多使用者生產環境,而非本機 單使用者工作。
安裝¶
服務¶
python3 -m sglang.launch_server \
--model-path google/gemma-4-12B-it \
--host 0.0.0.0 \
--port 30000
模型儲存庫¶
| 尺寸 | 儲存庫 |
|---|---|
| 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 |
對於 4 位元服務,請使用 QAT compressed-tensors 建置版本,
google/gemma-4-{E2B,E4B,12B,31B}-it-qat-w4a16-ct。