Supported Models
MoE model support has been merged into SGLang but is not yet included in a stable release β install from main to use MoE models now. Vision models are not yet supported in SGLang β use Transformers for vision workloads.
Installation
Install SGLang following the official installation guide. The recommended method is (requiressglang>=0.5.8):
Install from Main (MoE Support)
To use MoE models (e.g., LFM2-8B-A1B) before the 0.5.9 release, install SGLang from the main branch:Launching the Server
By default the model runs in bfloat16. To use float16 instead, add
--dtype float16 and set export SGLANG_MAMBA_CONV_DTYPE=float16 before launching.- Python
- Docker
Usage
SGLang exposes an OpenAI-compatible API.Curl request example
Curl request example
Low Latency on Blackwell (B300)
Running a 1.2B model on a B300 may sound counterintuitive, but combining--enable-torch-compile with Blackwellβs architecture unlocks extremely low latency β ideal for latency-sensitive workloads like RAG, search, and real-time chat.
Key flags for low latency:
--enable-torch-compile: Compiles the model with Torch for faster execution. Adds startup time but significantly reduces per-token latency.--chunked-prefill-size -1: Disables chunked prefill, processing the full prompt in one pass. This lowers TTFT at the cost of slightly reduced throughput under high concurrency.
Benchmark command
Benchmark command