Skip to main content
Choose the engine you use to serve Beam with Iris Cyber Probe.
SGLang runs Beam and sends activation features to a separate ICP scorer. Your application sends generation requests to SGLang on port 8000 and reads scores from the scorer on port 8001 using the same request ID.
1

Prepare the weights and image

This setup uses Docker on a Linux amd64 host with four NVLink-connected NVIDIA B300 SXM GPUs.Use a SGLang image with Beam, DFlash2, and activation-monitor support.
Pull and pin the image
2

Start the scorer and SGLang

Start the scorer first. The Docker network lets SGLang send it features at iris-scorer:5557.
Start the scorer
Launch SGLang with the same probe name (cyber) and checkpoint as the scorer. The highlighted flags enable feature export and input scores.
Start SGLang with ICP
3

Generate and read scores

Once Beam is ready, start generation in the background with a unique request ID.
Generate with a request ID
Input scores align with prompt activation positions, including tool calls and results in the prompt.
Stream input scores
Output scores align with generated tokens, including new tool calls. Row zero scores the final prompt position, which predicts the first generated token.
Stream output scores
If the scorer returns HTTP 404 just after you send the request, retry after a moment. In this example, the scores event contains two valid rows.
Score event fields
To resume a stream, pass its last cursor as since. Keep a separate cursor for each scope. For paginated JSON snapshots, remove /stream from the URL and follow the cursor until complete is true and has_more is false.Generation can deliver tokens before their scores arrive. If your application requires scores, wait for valid scores up to a client deadline. If scoring ends or the deadline expires with a required score missing, withhold the affected output or tool call. See ICP thresholds for interpreting scores and SGLang’s activation-monitor guide for error handling and retention.To learn more about Iris support in SGLang, read SGLang’s release blog post.
4

Stop the deployment

Stop the Iris deployment
Last modified on November 30, 2026