reflection/Beam-1.0-501B-A23B
Reflection's Beam — a sparse MoE language model (501B total / 23B active) with hybrid sliding-window + NoPE full attention, a 1M-token window, Harmony-format reasoning and tool calling, and an optional DFlash2 speculative drafter. Available in NVFP4, FP8 and BF16 on NVIDIA and BF16 on AMD ROCm.
501B/23B-active MoE with hybrid sliding-window attention, 1M context, and DFlash2 speculative decoding
export VLLM_ENGINE_READY_TIMEOUT_S=3600 vllm serve reflection/Beam-1.0-501B-A23B-NVFP4 \ --kv-cache-dtype fp8 \ --tensor-parallel-size 4 \ --reasoning-parser beam \ --enable-auto-tool-choice \ --tool-call-parser beam
The interactive builder loads with JavaScript. Append .md to this page's URL, query string included, for any configuration's command as Markdown — e.g. /reflection/Beam-1.0-501B-A23B.md.
Overview
Beam is Reflection's sparse mixture-of-experts language model, with 501B total parameters and 23B active parameters per token. Its 52 layers combine 512-token sliding-window attention with NoPE full-attention layers, route each token through 8 of 256 experts (layers 0-2 use dense MLPs), and support a context length of 1,048,576 tokens.
Beam uses the Harmony message format, with an analysis channel for
reasoning and a final channel for the answer. Generation stops on
<|return|> at the end of an answer and on <|call|> at the end of a tool
call.
Variants
| Variant | Checkpoint | Weights on disk | Minimum GPU memory | Recommended hardware |
|---|---|---|---|---|
| NVFP4 (default) | reflection/Beam-1.0-501B-A23B-NVFP4 | 294 GB | 353 GB | 4x B200/B300 or one GB200/GB300 tray (TP4); 8x H100 (TP8, Marlin) |
| FP8 | reflection/Beam-1.0-501B-A23B-FP8 | 503 GB | 604 GB | 8x H200 (TP8) |
| BF16 | reflection/Beam-1.0-501B-A23B | 1,003 GB | 1,204 GB | 8x B200/B300 (TP8), 8x MI300X-class (TP8) |
Minimum GPU memory is the weights plus 20% headroom for activations, CUDA graphs and a working KV cache. It is the total across all GPUs, and it is the figure the variant selector above shows.
The NVFP4 checkpoint quantizes only the routed experts; attention, dense MLPs, the router, embeddings and the LM head stay in BF16. On Blackwell it runs W4A4; on Hopper, vLLM serves the FP4 experts through Marlin with BF16 activations.
AMD ROCm tested only on BF16.
Prerequisites
- vLLM: the
vllm/vllm-openai:reflection-project-irisDocker image on NVIDIA, thevllm/vllm-openai-rocm:nightlyimage on AMD. Beam support has not shipped in a vLLM release yet. - Hardware: NVIDIA GPUs, plus AMD GPUs on ROCm. On NVIDIA Beam's kernels, including a custom all-reduce used with expert parallelism, are CUDA-only; the AMD path replaces them with standard vLLM ROCm attention, RCCL collectives and AMD-local Triton kernels.
- Transformers: the tokenizer uses the Transformers 5 format
(
TokenizersBackend).
Install vLLM
docker pull vllm/vllm-openai:reflection-project-iris # NVIDIA (CUDA)
docker pull vllm/vllm-openai-rocm:nightly # AMD (ROCm)
The vllm serve commands below run inside these images; the command builder
above renders the full docker run line for the hardware you select.
Launching the server
FP8 with TP8 on H200 or Blackwell
vllm serve reflection/Beam-1.0-501B-A23B-FP8 \
--tensor-parallel-size 8 \
--moe-backend triton \
--kv-cache-dtype fp8 \
--enable-auto-tool-choice \
--tool-call-parser beam \
--reasoning-parser beam
This is the best-performing FP8 configuration measured on both H200 and
B300. Set --moe-backend triton explicitly; vLLM otherwise selects CUTLASS
for the FP8 MoE. vLLM's default attention backends, FlashAttention 3 on
Hopper and FlashInfer with TRT-LLM kernels on Blackwell, are already the
fastest measured.
NVFP4 with TP4 on Blackwell
vllm serve reflection/Beam-1.0-501B-A23B-NVFP4 \
--tensor-parallel-size 4 \
--kv-cache-dtype fp8 \
--enable-auto-tool-choice \
--tool-call-parser beam \
--reasoning-parser beam
At TP4 the weights take about 73 GB per GPU, leaving room for the full
context window many times over; an 8-GPU node can host two replicas. The
first start takes about 10 minutes because FlashInfer autotunes the MoE
kernel. That is close to vLLM's default 600 s engine-ready timeout, so the
generated command sets VLLM_ENGINE_READY_TIMEOUT_S=3600.
NVFP4 with TP8 on H100
vllm serve reflection/Beam-1.0-501B-A23B-NVFP4 \
--tensor-parallel-size 8 \
--moe-backend marlin \
--kv-cache-dtype fp8 \
--enable-auto-tool-choice \
--tool-call-parser beam \
--reasoning-parser beam
Set --moe-backend marlin explicitly; it is faster than the backend vLLM
selects by default on Hopper. The FP8 checkpoint also fits on 8x H100 but
leaves much less memory for the KV cache.
BF16 with TP8 on Blackwell
vllm serve reflection/Beam-1.0-501B-A23B \
--tensor-parallel-size 8 \
--enable-auto-tool-choice \
--tool-call-parser beam \
--reasoning-parser beam
BF16 with TP8 + expert parallel on AMD ROCm
The AMD path in vllm/models/beam/amd/ selects its classes on ROCm and
runs the target and the DFlash2 drafter on standard vLLM ROCm attention,
RCCL collectives and AMD-local Triton kernels. It was validated end-to-end
on 8x MI325X (gfx942), 8x MI350X and 8x MI355X (gfx950). MI300X uses the
validated gfx942 code path, where the weights need 1,204 GB of the node's
1,536 GB.
VLLM_ROCM_USE_AITER=1 vllm serve reflection/Beam-1.0-501B-A23B \
--dtype bfloat16 \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--attention-backend ROCM_AITER_UNIFIED_ATTN \
--moe-backend triton \
--reasoning-parser beam \
--tool-call-parser beam \
--enable-auto-tool-choice
Tuning
- KV cache dtype: the NVFP4 and FP8 commands use
--kv-cache-dtype fp8, which halves KV memory per token (on 8x H200 with the FP8 checkpoint, about 14M to 28M tokens). The BF16 command keeps the KV cache in BF16, on NVIDIA and AMD alike. - Parallelism: tensor parallelism is the recommended single-node layout.
TEP (
--enable-expert-parallel) and DEP (--data-parallel-size 8 --enable-expert-parallel) are also supported on NVIDIA; DEP is better suited to very large batch sizes.
MegaMoE with attention DP (NVFP4, Blackwell)
For prefill-heavy, high-concurrency traffic, run attention data-parallel with expert parallelism on FlashInfer's CuTe DSL NVFP4 MegaMoE kernel, which overlaps the expert all-to-all with the expert GEMMs. Start from the NVFP4 command and replace the parallel and MoE settings:
vllm serve reflection/Beam-1.0-501B-A23B-NVFP4 \
--data-parallel-size 4 \
--enable-expert-parallel \
--moe-backend flashinfer_moe_ep_cutedsl \
--kv-cache-dtype fp8 \
--enable-auto-tool-choice \
--tool-call-parser beam \
--reasoning-parser beam
- Only for DEP (
--data-parallel-sizewith--enable-expert-parallel). It does not support TEP or pure TP. - Use
--data-parallel-size 4on a GB200/GB300 tray or four B200/B300 GPUs, and8across a full 8-GPU node. - For low-latency serving, stay on TP4 with
flashinfer_trtllm.
DFlash2 speculative decoding
The DFlash2 drafter
(reflection/Beam-1.0-501B-A23B-DFlash2)
shares the target model's embeddings and LM head:
--speculative-config '{"method":"dflash","model":"reflection/Beam-1.0-501B-A23B-DFlash2","num_speculative_tokens":7,"attention_backend":"FLASH_ATTN","enable_adaptive_verification":true}'
With enable_adaptive_verification, vLLM predicts how likely each draft
token is to be accepted and verifies only the ones worth the compute,
rather than all 7 every step. It makes little difference at low
concurrency and raises throughput under load. Remove it to verify the
full draft every step.
The drafter supports up to 15 speculative tokens; 7 is recommended. It
speeds up decoding most at low concurrency and adds about 1.7 GB per GPU,
which reduces KV-cache capacity. Acceptance depends on natural-language
input, so benchmark it with a real-text dataset rather than
--dataset-name random.
On AMD, the ROCm drafter delegates cache handling to the selected ROCm attention backend, so the builder omits the FlashAttention pin:
--speculative-config '{"method":"dflash","model":"reflection/Beam-1.0-501B-A23B-DFlash2","num_speculative_tokens":7,"enable_adaptive_verification":true}'
The token count is not platform-specific. The AMD DFlash2 path was validated with the BF16 target on MI325X, MI350X and MI355X. On MI355X, both vanilla decoding and DFlash2 reached 90.06% on GPQA-Diamond and 97.45% on AIME 2026. On MI325X, both reached 90.18% on GPQA-Diamond. These results reproduce Reflection's published BF16 accuracy within statistical error.
Output constraints
By default, the beam output grammar constrains every assistant turn from
its first token (reasoning, then an answer or a tool call). Set
VLLM_BEAM_ALWAYS_CONSTRAIN_OUTPUT=0 to disable it.
Iris
Iris adds two small models that run beside Beam. Both ship in the NVIDIA image.
| Model | Checkpoint | Runs as |
|---|---|---|
| Iris Cyber Probe | reflection/Iris-Cyber-Probe | An activation monitor inside the Beam server, scored by a sidecar CPU process |
| Iris Content Guard | reflection/Iris-Content-Guard | A token-classification model served on its own |
The Cyber Probe reads Beam's activations on every generation request; requests need no extra parameter. The engine sends the probe's features to a scorer process over a local socket, and the scorer serves the scores. Steps 1 to 3 cover the probe; step 4 is Content Guard, which is independent of them.
1. Start the Iris scorer
The scorer is a CPU process. Start it before the engine:
python3 -m vllm.activation_monitors.scorer --name cyber \
--probe reflection/Iris-Cyber-Probe \
--listen ipc:///tmp/iris-sidecar.sock --port 8001 --input-scores
It is ready once its health check answers:
curl -f http://127.0.0.1:8001/health
2. Start Beam with DFlash2 and the probe
This is the validated launch: NVFP4 at TP4 on one GB200 tray, with the reasoning and tool-call parsers on.
VLLM_ENGINE_READY_TIMEOUT_S=3600 vllm serve reflection/Beam-1.0-501B-A23B-NVFP4 \
--served-model-name beam \
--tensor-parallel-size 4 \
--max-model-len 4096 \
--gpu-memory-utilization 0.85 \
--no-enable-prefix-caching \
--port 8000 \
--reasoning-parser beam --enable-auto-tool-choice --tool-call-parser beam \
--speculative-config '{"method":"dflash","model":"reflection/Beam-1.0-501B-A23B-DFlash2","num_speculative_tokens":7,"enable_adaptive_verification":false}' \
--activation-monitor-config '{"name":"cyber","model":"reflection/Iris-Cyber-Probe","sidecar":"ipc:///tmp/iris-sidecar.sock"}'
ipc:///tmp/iris-sidecar.sock is a Unix socket path, so both processes must
see the same file. With Docker, run steps 1 and 2 in one container; it
waits for the scorer before it starts the engine:
docker run --rm --name iris-beam \
--gpus all --ipc=host --network=host --entrypoint /bin/bash \
-v ~/.cache/huggingface:/root/.cache/huggingface \
-e VLLM_ENGINE_READY_TIMEOUT_S=3600 \
vllm/vllm-openai:reflection-project-iris -lc '
python3 -m vllm.activation_monitors.scorer --name cyber \
--probe reflection/Iris-Cyber-Probe \
--listen ipc:///tmp/iris-sidecar.sock --port 8001 --input-scores &
SCORER_PID=$!
for ((i=0;i<120;i++)); do
curl -fsS http://127.0.0.1:8001/health >/dev/null 2>&1 && break
kill -0 "$SCORER_PID" || exit 1
sleep 1
done
exec vllm serve reflection/Beam-1.0-501B-A23B-NVFP4 --served-model-name beam \
--tensor-parallel-size 4 --max-model-len 4096 \
--gpu-memory-utilization 0.85 --no-enable-prefix-caching --port 8000 \
--reasoning-parser beam --enable-auto-tool-choice --tool-call-parser beam \
--speculative-config "{\"method\":\"dflash\",\"model\":\"reflection/Beam-1.0-501B-A23B-DFlash2\",\"num_speculative_tokens\":7,\"enable_adaptive_verification\":false}" \
--activation-monitor-config "{\"name\":\"cyber\",\"model\":\"reflection/Iris-Cyber-Probe\",\"sidecar\":\"ipc:///tmp/iris-sidecar.sock\"}"
'
The command builder renders a two-container form instead: the scorer in
its own container and the socket in /dev/shm, which containers started
with --ipc=host share. Reflection's
serving guide
also uses two containers, joined by a Docker network and a TCP sidecar
address (tcp://iris-scorer:5557). This launch serves the model as beam, so
requests set "model": "beam". For the Rust frontend, add
VLLM_USE_RUST_FRONTEND=1 (-e VLLM_USE_RUST_FRONTEND=1 with Docker).
Two things differ from the commands above while the probe is on:
- DFlash2 runs at a fixed width. A monitor needs
enable_adaptive_verificationto befalse. - The KV cache stays in BF16. FP8 KV cache together with a monitor has not been tested.
The 4096-token context cap, the memory fraction and prefix caching being off are the validation run's settings.
3. Read the scores
Take the ID vLLM returns (for example chatcmpl-…) and read its scores
from the scorer:
curl 'http://localhost:8001/v1/monitor_scores/<returned id>?since=0'
curl -N 'http://localhost:8001/v1/monitor_scores/<returned id>/stream?scope=input&since=0'
examples/online_serving/activation_monitor_gate.py is a reference gate: it
stops the streamed output once a score passes the threshold.
docs/features/activation_monitors.md ("Stateful probes and the sidecar
scorer") documents the probe and the scorer. Both arrive with
vllm-project/vllm#70812.
4. Start Iris Content Guard
Content Guard runs as a separate service, on GPUs other than the ones Beam uses:
vllm serve reflection/Iris-Content-Guard --host 127.0.0.1 --port 30000
Send requests to /pooling; Reflection's
serving guide
has the request and response format.
Validation results (GB200)
| Check | Result |
|---|---|
| Beam + DFlash2 + Iris, Python frontend, 70 replayed conversations | Pass. 27,960 positions; difference from the reference: median 0.0001, p99 0.89; AUROC 0.9458 (reference 0.9440) |
| Gate | Pass. A benign request streamed all 256 tokens; an attack request was blocked at row 0 (8.685 > threshold −7.58) |
| Beam + DFlash2 + Iris, Rust frontend | Pass. 4 of 4 chat requests scored at every position |
| Iris Content Guard, offline and served | Pass, including 65 concurrent requests |
Client usage
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "reflection/Beam-1.0-501B-A23B-NVFP4",
"messages": [{"role": "user", "content": "Hello."}]
}'
Set model to the checkpoint being served: reflection/Beam-1.0-501B-A23B-NVFP4,
reflection/Beam-1.0-501B-A23B-FP8, or reflection/Beam-1.0-501B-A23B for
BF16. /v1/models lists the served name.
Reasoning effort
Beam reasons at the maximum effort, max (512), unless the request sets
reasoning_effort:
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "reflection/Beam-1.0-501B-A23B-NVFP4",
"messages": [{"role": "user", "content": "What is 17 * 19?"}],
"reasoning_effort": "low"
}'
The Rust frontend (VLLM_USE_RUST_FRONTEND=1) serves /v1/chat/completions
and /v1/completions, but not yet /v1/responses or the Anthropic-compatible
/v1/messages (both return 404). Use the default Python frontend for those
APIs.
References
Iris sidecar: `return_activation_scores` returns HTTP 400Iris Cyber Probe
Sidecar mode does not support return_activation_scores; the Python and
Rust frontends both reject it with 400. Read the scores from the scorer
(see Read the scores).
Iris sidecar on the Rust frontend: `output_length` is larger than what the client receivedIris Cyber Probe
The Rust frontend does not yet tell the scorer the length after
stop-string truncation. When a step accepts several tokens and one of
them completes a stop string, output_length can be the engine's count,
which is higher than what the client got. The Python frontend reports the
truncated length.
Startup fails writing caches under a read-only home directory
Some container runtimes mount the home directory read-only; the GB200
validation ran under enroot, where ~/.cache was. Point the caches at a
writable directory:
export HOME=/path/to/writable/home
export XDG_CACHE_HOME=/path/to/writable/xdg
export FLASHINFER_WORKSPACE_DIR=/path/to/writable/flashinfer
export TRITON_CACHE_DIR=/path/to/writable/triton
export TORCHINDUCTOR_CACHE_DIR=/path/to/writable/torchinductor
Rust frontend: `vllm-rs` is not in the default location
Set VLLM_RUST_FRONTEND_PATH=<path to vllm-rs> next to
VLLM_USE_RUST_FRONTEND=1.