TokenSpeed recipe for Beam
The full reference for serving Beam with LightSeek’s TokenSpeed.
MODEL_DIR that page sets.
1
Get the image
Select a TokenSpeed image release with Beam and DFlash2 support, including the Beam tool-call and reasoning parsers in its bundled gateway, 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 131,072 tokens of context and eight concurrent requests, parses tool calls and reasoning with the beam parsers, and drafts 16 tokens at a time with DFlash2. TokenSpeed’s draft width matches the drafter model’s block_size.3
Make a request
Once the server finishes loading, check that it lists Then send a chat request:The request sets Beam’s recommended
Beam-1.0-501B-A23B:List the served models
Send a chat request
temperature and top_p. TokenSpeed doesn’t read them from the checkpoint, so send them with every request.It also sets allow_missing_thinking to false, so the request fails if an earlier assistant turn is missing its reasoning, which would otherwise degrade Beam’s output. TokenSpeed has no server-wide default for chat template options, so send this with every request too. See Reasoning across turns.4
Stop the server
Stop the server