docs: add Beam 1.0 deployment cookbook (#44694)

Co-authored-by: Jimmy Shong <jimmy.shong@mac.attlocal.net>
This commit is contained in:
Jimmy Shong
2026-10-16 13:29:14 +00:00
committed by GitHub
co-authored by Jimmy Shong
parent 7c99ace127
commit 2c2986be2b
6 changed files with 779 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@@ -0,0 +1,61 @@
---
title: Beam 1.0
description: "Deploy Reflection Beam 1.0 with SGLang on B300, GB300, and H200: NVFP4, FP8, and BF16 recipes for low latency and high throughput."
tag: NEW
---
## Deployment
<a id="install" />
<Accordion title="Install SGLang">
```bash Command
docker pull lmsysorg/sglang:beam
```
For host setup, see [Install SGLang with Docker](/docs/get-started/install#method-3-using-docker).
</Accordion>
Select your hardware, strategy, and quantization to generate the Docker command.
- **Low-Latency** uses TP with the [DFlash2 drafter](https://huggingface.co/reflection/Beam-1.0-501B-A23B-DFlash2) at block size 8.
- **High-Throughput** disables DFlash2. H200 BF16 uses TP8 with an automatic static memory fraction; the other recipes use TP + DPA. Blackwell NVFP4 also enables EP and FlashInfer MegaMoE.
import { Deployment } from "/src/snippets/_deployment.jsx";
import { config } from "/src/snippets/configs/reflection/beam-1.0.jsx";
import { benchmarks } from "/src/snippets/configs/reflection/beam-1.0-benchmarks.jsx";
<Deployment config={config} benchmarks={benchmarks} />
Each GSM8K score covers all 1,319 test problems; the benchmark notes identify the evaluation harness.
NVFP4 requires B300 or GB300. **GB300 BF16 uses two four-GPU nodes**: set the head-node address and node rank in **Env**, then run the command on both nodes with rank 0 on the head and rank 1 on the peer.
## TPU Support
Beam 1.0 has day-0 TPU support through SGLang-TorchTPU, a native PyTorch backend for LLM, VLM, and diffusion model inference on TPUs. It combines TPU acceleration with SGLang features such as RadixAttention and HiCache to enable cost-efficient, production-ready serving for agentic workloads.
TPU recipes for Beam 1.0 and access to SGLang-TorchTPU will be available soon. Sign up through this [Google Form](https://docs.google.com/forms/d/e/1FAIpQLSe2Y8hzyU3KGB2StA-0huulrVsq79A0tSxcBQwjj8vlhLhYuQ/viewform?usp=publish-editor) to receive the latest updates.
## Usage
All recipes serve the model as `beam` on port 30000. For GB300 BF16, connect to the head node.
<Accordion title="Chat completion (Python)">
```python Example
from openai import OpenAI
client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")
response = client.chat.completions.create(
model="beam",
messages=[{"role": "user", "content": "Explain tensor parallelism briefly."}],
)
message = response.choices[0].message
print("Reasoning:", message.reasoning_content)
print("Answer:", message.content)
```
</Accordion>
+6
View File
@@ -7,6 +7,12 @@ metatags:
---
<CardGroup cols={3}>
<Card
title="Reflection"
mode="card"
href="/cookbook/autoregressive/Reflection/Beam-1_0"
img="/cards/logos/reflection.png"
/>
<Card
title="IQuestLab"
mode="card"
+10
View File
@@ -9,6 +9,10 @@
}
},
"redirects": [
{
"source": "/cookbook/autoregressive/Reflection/Beam-1.0",
"destination": "/cookbook/autoregressive/Reflection/Beam-1_0"
},
{
"source": "/cookbook/autoregressive/Meta/MuseSpark",
"destination": "/cookbook/autoregressive/Meta/MuseSparkOpen"
@@ -1224,6 +1228,12 @@
"group": "Autoregressive Models",
"pages": [
"cookbook/autoregressive/intro",
{
"group": "Reflection",
"pages": [
"cookbook/autoregressive/Reflection/Beam-1_0"
]
},
{
"group": "IQuestLab",
"pages": [
@@ -0,0 +1,194 @@
export const benchmarks = [
{
"match": {
"hw": "b300",
"strategy": "low-latency",
"quant": "nvfp4"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 94.69
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "b300",
"strategy": "low-latency",
"quant": "fp8"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.13
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "b300",
"strategy": "low-latency",
"quant": "bf16"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 95.68
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "b300",
"strategy": "high-throughput",
"quant": "nvfp4"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.66
},
"notes": "sgl-eval 0.1.2: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "b300",
"strategy": "high-throughput",
"quant": "fp8"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.51
},
"notes": "sgl-eval 0.1.2: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "b300",
"strategy": "high-throughput",
"quant": "bf16"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.21
},
"notes": "sgl-eval 0.1.2: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "gb300",
"strategy": "low-latency",
"quant": "nvfp4"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 94.69
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "gb300",
"strategy": "low-latency",
"quant": "fp8"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.13
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "gb300",
"strategy": "low-latency",
"quant": "bf16"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 95.68
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "gb300",
"strategy": "high-throughput",
"quant": "nvfp4"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.66
},
"notes": "sgl-eval 0.1.2: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "gb300",
"strategy": "high-throughput",
"quant": "fp8"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.51
},
"notes": "sgl-eval 0.1.2: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "gb300",
"strategy": "high-throughput",
"quant": "bf16"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 96.21
},
"notes": "sgl-eval 0.1.2: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "h200",
"strategy": "low-latency",
"quant": "fp8"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 95.6
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "h200",
"strategy": "low-latency",
"quant": "bf16"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 95.83
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "h200",
"strategy": "high-throughput",
"quant": "fp8"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 95.6
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
},
{
"match": {
"hw": "h200",
"strategy": "high-throughput",
"quant": "bf16"
},
"sglang_version": "f7473673dd",
"accuracy": {
"gsm8k_pct": 95.38
},
"notes": "Original Beam verifier e698bb5: 1,319 GSM8K problems, 0 request errors."
}
];
@@ -0,0 +1,508 @@
export const config = {
modelName: "Beam 1.0",
supportedHardware: ["b300", "gb300", "h200"],
groupHardware: false,
runModes: ["docker"],
showPlaygroundLink: false,
accuracyLabels: [["gsm8k_pct", "GSM8K", "%"]],
matchDims: [
{
id: "strategy",
title: "Strategy",
options: [
{ id: "low-latency", label: "Low-Latency" },
{ id: "high-throughput", label: "High-Throughput" },
],
},
{
id: "quant",
title: "Quantization",
options: [
{
id: "nvfp4", label: "NVFP4",
disabled: (sel) => sel.hw === "h200",
disableReason: "The NVFP4 recipe requires Blackwell; use FP8 or BF16 on H200.",
},
{ id: "fp8", label: "FP8" },
{ id: "bf16", label: "BF16" },
],
},
],
modelNames: {
nvfp4: "reflection/Beam-1.0-501B-A23B-NVFP4",
fp8: "reflection/Beam-1.0-501B-A23B-FP8",
bf16: "reflection/Beam-1.0-501B-A23B",
},
placeholders: {
HOST_IP: { target: "command", label: "Bind host", default: "0.0.0.0" },
PORT: { target: "command", label: "Bind port", default: "30000" },
NODE0_IP: { target: "command", label: "Head node IP", default: "<node0-ip>" },
NODE_RANK: { target: "command", label: "This node rank", default: "<node-rank>" },
CURL_HOST: { target: "curl", label: "Server host", default: "localhost" },
CURL_PORT: { target: "curl", label: "Server port", default: "30000" },
},
curl: `curl http://{{CURL_HOST}}:{{CURL_PORT}}/v1/chat/completions -H 'Content-Type: application/json' -d '{"model":"beam","messages":[{"role":"user","content":"Hello"}]}'`,
dockerImages: {
b300: "lmsysorg/sglang:beam",
gb300: "lmsysorg/sglang:beam",
h200: "lmsysorg/sglang:beam",
},
github: {
cookbookModel: "reflection/Beam-1.0-501B-A23B",
},
cells: [
{
"match": {
"hw": "b300",
"strategy": "low-latency",
"quant": "nvfp4"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "b300",
"strategy": "low-latency",
"quant": "fp8"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "b300",
"strategy": "low-latency",
"quant": "bf16"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "b300",
"strategy": "high-throughput",
"quant": "nvfp4"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attn-dp-size 4",
"--enable-dp-lm-head",
"--ep-size 4",
"--quantization modelopt_fp4",
"--moe-a2a-backend flashinfer_megamoe",
"--moe-runner-backend flashinfer_megamoe",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "b300",
"strategy": "high-throughput",
"quant": "fp8"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attn-dp-size 4",
"--enable-dp-lm-head",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "b300",
"strategy": "high-throughput",
"quant": "bf16"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attn-dp-size 8",
"--enable-dp-lm-head",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "gb300",
"strategy": "low-latency",
"quant": "nvfp4"
},
"nnodes": 1,
"verified": true,
"env": [
"NCCL_MNNVL_ENABLE=1",
"NCCL_CUMEM_ENABLE=1",
"NCCL_NVLS_ENABLE=1"
],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "gb300",
"strategy": "low-latency",
"quant": "fp8"
},
"nnodes": 1,
"verified": true,
"env": [
"NCCL_MNNVL_ENABLE=1",
"NCCL_CUMEM_ENABLE=1",
"NCCL_NVLS_ENABLE=1"
],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "gb300",
"strategy": "low-latency",
"quant": "bf16"
},
"nnodes": 2,
"verified": true,
"env": [
"NCCL_MNNVL_ENABLE=1",
"NCCL_CUMEM_ENABLE=1",
"NCCL_NVLS_ENABLE=1"
],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "gb300",
"strategy": "high-throughput",
"quant": "nvfp4"
},
"nnodes": 1,
"verified": true,
"env": [
"NCCL_MNNVL_ENABLE=1",
"NCCL_CUMEM_ENABLE=1",
"NCCL_NVLS_ENABLE=1"
],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attn-dp-size 4",
"--enable-dp-lm-head",
"--ep-size 4",
"--quantization modelopt_fp4",
"--moe-a2a-backend flashinfer_megamoe",
"--moe-runner-backend flashinfer_megamoe",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "gb300",
"strategy": "high-throughput",
"quant": "fp8"
},
"nnodes": 1,
"verified": true,
"env": [
"NCCL_MNNVL_ENABLE=1",
"NCCL_CUMEM_ENABLE=1",
"NCCL_NVLS_ENABLE=1"
],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 4",
"--attn-dp-size 4",
"--enable-dp-lm-head",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "gb300",
"strategy": "high-throughput",
"quant": "bf16"
},
"nnodes": 2,
"verified": true,
"env": [
"NCCL_MNNVL_ENABLE=1",
"NCCL_CUMEM_ENABLE=1",
"NCCL_NVLS_ENABLE=1"
],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attn-dp-size 8",
"--enable-dp-lm-head",
"--attention-backend trtllm_mha",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "h200",
"strategy": "low-latency",
"quant": "fp8"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attention-backend fa3",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "h200",
"strategy": "low-latency",
"quant": "bf16"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attention-backend fa3",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.90",
"--enable-unified-memory",
"--speculative-algorithm DFLASH",
"--speculative-draft-model-path reflection/Beam-1.0-501B-A23B-DFlash2",
"--speculative-dflash-block-size 8",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "h200",
"strategy": "high-throughput",
"quant": "fp8"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attn-dp-size 8",
"--enable-dp-lm-head",
"--attention-backend fa3",
"--page-size 64",
"--context-length 1048576",
"--mem-fraction-static 0.85",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
},
{
"match": {
"hw": "h200",
"strategy": "high-throughput",
"quant": "bf16"
},
"nnodes": 1,
"verified": true,
"env": [],
"flags": [
"--model-path {{MODEL_NAME}}",
"--served-model-name beam",
"--tp 8",
"--attention-backend fa3",
"--page-size 64",
"--context-length 1048576",
"--enable-unified-memory",
"--tool-call-parser beam",
"--reasoning-parser beam",
"--host {{HOST_IP}}",
"--port {{PORT}}"
]
}
]
};