SGLang recipe for Beam
The full reference for serving Beam with SGLang.
MODEL_DIR that page sets.
1
Get the image
Select an SGLang image release with Beam and DFlash support, and pin it by digest:
Pull and pin the image
2
Start the server
Run on your GPU server:The container reads the models offline from
Start the server
/weights and splits Beam across the four GPUs with tensor parallelism. This configuration accepts up to 262,144 tokens of context and eight concurrent requests, parses tool calls and reasoning with the beam parsers, and drafts eight tokens at a time with DFlash2.allow_missing_thinking set to false makes a request fail if an earlier assistant turn is missing its reasoning, which would otherwise degrade Beam’s output. See Reasoning across turns.Supported APIs
Beam served with SGLang supports these APIs in streaming and non-streaming modes:3
Make a request
Once the server finishes loading, check that it lists Then send a chat request:A request that doesn’t set
Beam-1.0-501B-A23B:List the served models
Send a chat request
temperature or top_p uses Beam’s recommended 0.7 and 0.99, which SGLang reads from the checkpoint’s generation_config.json.4
Stop the server
Stop the server
Advanced
Iris Cyber Probe
SGLang exports features from Beam’s activations to a scoring process that shares a GPU with Beam. Serve ICP with SGLang shows how to start both processes and stream input and output scores.Iris Content Guard
Deploy Iris Content Guard separately from Beam using the Content Guard checkpoint. It scores the last user request and optional assistant reply across 14 harm categories. Send the tokenized conversation to the Content Guard server’s/encode endpoint and convert the output into category probabilities.
We’re grateful to RadixArk and NVIDIA for their guidance and support in developing and refining our Beam serving recipes for SGLang.