Deployment
Install SGLang
Install SGLang
Command
sglang serve ... with what the command generator below produces.- Low-Latency — fastest reply for a single user. Pick for chat. These recipes run NEXTN speculative decoding.
- High-Throughput — most tokens per second across many users. Best for batch jobs. These recipes turn speculative decoding off, since at saturation the draft/verify overhead outweighs the speedup.
- HiCache + Mooncake — writes reusable prefixes to Mooncake L3 storage. Start the Mooncake services in §3.3 before launching the generated server command.
Playground
The Playground is where you experiment with SGLang features beyond the documented matrix. The Deploy panel above only emits the curated recipe combinations on this page; the Playground lets you turn on additional knobs on top of whichever cell the Deploy panel is currently showing.1. Model Introduction
Ling-3.0-flash is a hybrid-attention Mixture-of-Experts (MoE) language model from the BailingMoeV3 family. It interleaves Kimi Delta Attention (KDA) linear-attention layers with gated Multi-head Latent Attention (MLA) full-attention layers, on top of a fine-grained MoE feed-forward network. This keeps per-token inference cost close to a small model — 124B total parameters with only 5.1B active — while retaining large-model capacity. It is a hybrid-reasoning model with thinking enabled by default, and it supports structured tool calling. Native context length is 128K, extendable to 256K with YaRN. Available Models:- BF16: inclusionAI/Ling-3.0-flash — 124B total / 5.1B active
- FP8 (blockwise E4M3): inclusionAI/Ling-3.0-flash-fp8
2. Configuration Tips
- BF16 tensor parallelism follows the GPU:
--tp 4on 141 GB-class cards (H20-3e, H200) and 4-GPU Blackwell nodes (B200, GB300);--tp 8on 80 GB cards (H100, H800). - The FP8 recipes pair
--tpwith a matching--ep-size(--tp 4 --ep-size 4on 4-GPU nodes,--tp 8 --ep-size 8on H100/H800). The checkpoint uses blockwise (128×128) E4M3 expert weights, so a pure tensor-parallel shard must satisfy(768 / TP) % 128 == 0— only TP2 qualifies; expert parallelism splits experts whole instead of by column, which lifts that restriction and uses the full node. SGLang detects the quantization format from the checkpoint’squantization_config, so no explicit quantization flag is needed. --reasoning-parser ling3and--tool-call-parser ling3enable Ling-3.0-specific reasoning and structured tool-call parsing; toggle them in the Parsers card of the Playground.- Both the chat template and the
ling3reasoning parser default to thinking on. A single request can turn it off with"chat_template_kwargs": {"enable_thinking": false}(see §3.1). --mem-fraction-static 0.8reserves headroom for CUDA graphs and concurrent decoding; with the default allocation the NEXTN recipes can OOM under concurrent requests (e.g. a 32-thread GSM8K run).- The checkpoint ships a built-in MTP layer (
num_nextn_predict_layers: 1); enable it with--speculative-algorithm NEXTN— no separate draft model is needed. The Low-Latency recipes have it on; toggle it in the Speculative Decoding card of the Playground. - Native context is 128K. The recipes set
SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1to acknowledge the longer context explicitly, then use--context-length 262144and YaRN with factor 2.0 to extend it to 256K. - The HiCache card in the Playground exposes the validated Mooncake L3 path. It adds the hybrid-KDA scheduler and prefix-key settings together; see §3.3 for the required services.
3. Advanced Usage
3.1 Reasoning
Ling-3.0-flash thinks by default. With--reasoning-parser ling3 (toggle Reasoning Parser in the Parsers card of the Playground above), the chain-of-thought is returned in message.reasoning_content and the final answer in message.content:
Thinking-mode request
Thinking-mode request
Command
Example Output
Example Output
Output
Thinking is controlled by the chat template’s
enable_thinking kwarg and is on by default. Disable it per request with "chat_template_kwargs": {"enable_thinking": false}.3.2 Tool Calling
With--tool-call-parser ling3 (toggle Tool Call Parser in the Parsers card of the Playground above), structured calls are parsed into message.tool_calls and finish_reason is tool_calls:
Tool-calling request
Tool-calling request
Command
Example Output
Example Output
Output
3.3 HiCache with Mooncake
The HiCache recipes use Mooncake as L3 prefix storage. Start the metadata server, master, and storage client before you launch SGLang. The following command runs all three services from the same image in a separate container:Command
MOONCAKE_DEVICE= and the client’s --device_names= are intentionally empty. Set both to your actual device list only when you configure an RDMA deployment.
With the default
chunked_prefill_size of 8192, a cold request writes through only when its uncached extend length fits in one chunk. A longer cold first request skips write-through for that influx; a repeat with the same prefix can hit the device radix cache and proceed normally.