- SGLang
- vLLM
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.
- Follow Download the weights to check compatibility requirements and download Beam 1.0 NVFP4 and the DFlash2 drafter into
$MODEL_DIR. - Follow Download Iris Cyber Probe to download the probe into
$IRIS_CYBER_PROBE_DIR.
Pull and pin the image
2
Start the scorer and SGLang
Start the scorer first. The Docker network lets SGLang send it features at Launch SGLang with the same probe name (
iris-scorer:5557.Start the scorer
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.Input scores align with prompt activation positions, including tool calls and results in the prompt.Output scores align with generated tokens, including new tool calls. Row zero scores the final prompt position, which predicts the first generated token.If the scorer returns HTTP 404 just after you send the request, retry after a moment. In this example, the To resume a stream, pass its last
Generate with a request ID
Stream input scores
Stream output scores
scores event contains two valid rows.Score event fields
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