Welcome Beam: a 501B open model you can own, customize, and scale
https://huggingface.co/blog/reflection-beam📌 Reflection 首發即王炸:501B 開源模型 Beam 附完整訓練配方
TL;DR:新創實驗室 Reflection 推出首款模型 Beam,501B 參數、23B 啟動、1M context,Apache 2.0 授權並附推理/微調/RL 全套配方。
一間新創實驗室的「第一個模型」,通常是驗證概念的小模型。但 Reflection 一出手就是 501B 參數的開源 MoE,還把推理、監督微調(SFT)與強化學習(RL)的配方全部公開。這不只是放話,而是把整套可落地的工具鏈一起交給社群。
🤔 Reflection 是誰,Beam 為何而生
Beam 是美國新實驗室 Reflection 的首款模型,鎖定程式碼與 agentic 場景,鎖定的對象是想在自己的硬體、基礎設施或雲端上擁有並客製化 frontier 等級模型的團隊。模型以 Apache 2.0 授權釋出,純文字輸入輸出,context window 達 1M tokens。
🧩 架構拆解:混合 attention、群組限制路由與等比例殘差流
Beam 是 52 層的 MoE 模型,hidden size 5,120,共 501B 參數、每 token 啟動 23B。
Attention 設計分兩種:大多數層使用滑動視窗(sliding-window)attention,只看前 512 個 token;每第 6 層以及最後一層則採全域 attention,看得到完整 context。結果是 43 個滑動視窗層加上 9 個全域層。滑動視窗層使用 RoPE 處理相對位置;全域層則完全不用位置編碼,改為讓每個 query 乘上一個隨可見 token 數緩慢增長的縮放因子 (1 + (pos + 1) / 2048) ** 0.1,官方稱之為「scalable-softmax query scaling」,作用類似溫度參數,讓 softmax 在長 context 下仍保持精準度而不致攤平。Attention 本身採用分組查詢注意力(GQA),48 個 query head 對 8 個 key-value head,並在 query 與 key 上做 RMSNorm,另有一個學習得來的 sigmoid gate 在輸出投影前對每個 channel 做縮放。
MoE 部分:前 3 層是密集的 SwiGLU MLP,其餘 49 層換成 MoE 區塊,每層 256 個專家,每個專家是 intermediate size 2,560 的 SwiGLU MLP(約 3,900 萬參數),專家合計佔了全模型 98.4% 的參數。路由機制沿用 DeepSeek-V3 的群組限制方案:先用 sigmoid 為全部 256 個專家評分,分成 8 組、每組 32 個,依每組前兩名分數之和挑出最好的 4 組,再從中選出 top 8 個專家。Beam 沿用 DeepSeek-V3 的分組大小但不設共享專家,專家輸出以正規化後的路由權重合併,並再乘上 2.5 的縮放係數。每個 token 實際只跑 8 個專家,運算量相當於約 23B 參數的模型,但 256 個專家全部常駐記憶體,因此部署時仍需準備 501B 等級的記憶體。
殘差流的設計也值得一提:標準 transformer 每層把子層輸出以權重 1 加進殘差流,深度越深數值越大。Beam 則把輸入 embedding 視為第 1 步,第 k 步以權重 1/sqrt(k) 加入子層輸出,並以權重 sqrt((k-1)/k) 保留既有殘差流,兩個權重的平方和為 1,因此殘差流從第一層到最後一層都維持固定量級。所有子層都在前後做正規化,最終 logits 則通過 ±30 的 tanh softcap,並在 FP32 精度下計算。路由、SwiGLU 乘積、各種 norm、RoPE、query scaling 與 softcap 皆固定以 FP32 運算。
📊 長 context 下的 KV cache 效率
因為只有 9 個全域層需要保留完整序列,43 個滑動視窗層的 cache 固定在 512 個 token,整體 KV cache 成長速度只有「全部層都是全域 attention」情境的約六分之一:1M context 下,前者約 208 GiB,Beam 只需約 36.08 GiB。
📊 跨精度的 Benchmark 表現
Reflection 官方提供了 BF16、FP8、NVFP4 三種精度下的評測結果:
| 類別 | 指標 | BF16 | FP8 | NVFP4 |
|---|---|---|---|---|
| Agentic Coding | SWE-Bench Pro v2-Hard | 76.5% | 78.4% | 78.6% |
| Agentic Coding | SWEBench Verified | 81.6% | 80.2% | 80.7% |
| Agentic Coding | Terminal-Bench v2.1 | 80.1% | 78.9% | 78.2% |
| Reasoning | AIME 2026 | 97.7% | 98.0% | 97.5% |
| Reasoning | GPQA Diamond | 90.6% | 90.3% | 89.3% |
| Tool Calling | MCP Atlas | 80.8% | 81.5% | 80.5% |
| Tool Calling | BrowseComp w/ context management | 76.8% | 76.7% | 75.6% |
可以看到三種精度之間的分數差距大多在 1 個百分點以內,代表量化後的 NVFP4 版本幾乎不損失能力。
💡 從 Day-0 支援到社群獎勵
Beam 在 transformers、SGLang、vLLM 都有原生支援,另附 DFlash2 推測性解碼(speculative decoding)drafter 模型加速生成,並以自家 Rust harness 提供最佳效能。全參數 RL 由 Miles 框架支援。BF16 checkpoint 約 1TB,NVFP4 透過 4-bit 量化把大部分參數壓到約 280GB,適合 Blackwell GPU;FP8 版本則鎖定 Hopper 與 Ampere 系列晶片。Reflection 另外釋出 10,000 美元 Hub credits,獎勵用 Beam 做出 demo、量化版本、合成資料集或 RL 環境並分享到 Hub 的社群專案。
🎯 實務啟示
對於想要「擁有並客製化」frontier 等級模型、而非只租用 API 的團隊,Beam 的完整配方(推理、SFT、RL)降低了自建 pipeline 的門檻;NVFP4 把 1TB 壓到 280GB,是目前在自有硬體上部署 500B 級模型最務實的路徑。
🔗 來源
- 標題:Welcome Beam: a 501B open model you can own, customize, and scale
- 作者/機構:HuggingFace(與 Reflection 團隊合作)
- 連結:https://huggingface.co/blog/reflection-beam
#Beam #Reflection #OpenSourceLLM #MixtureOfExperts #HuggingFace #LongContext #ApacheLicense #LLMInference #AgenticCoding #ModelQuantization
原始資料 HuggingFace Blog · 收集於 2026-10-16
摘要原文
Back to Articles Welcome Beam: a 501B open model you can own, customize, and scale Published October 16, 2026 Update on GitHub Upvote 11 +5 ben burtenshaw burtenshaw Follow merve merve Follow Pedro Cuenca pcuenq Follow Beam by Reflection is out on Hugging Face! It is the first model from the new US lab, Reflection, and it’s open! It's a mixture-of-experts (MoEs) model with 501B parameters (23B active per token), supports text as input, has a context window of 1M tokens , and is released under the Apache 2.0 license. Beam is focused on coding and agentic use cases. It is for teams that want a frontier-scale model on their own hardware, infrastructure, or cloud, and want to customize it to their own use cases. Beam ships with its own dedicated open source Rust based harness that delivers the best performance from the model. Beam has a native transformers implementation, as well as downstream libraries like vLLM and SGLang. We’ve worked with the Reflection team to bring you inference, SFT (supervised fine tuning), and RL (reinforcement learning) recipes for you to build with this model for your needs. On top of day-0 support in transformers, SGLang and vLLM, this post shows you how to run it, how to post-train it, and what we built with it. TL;DR 501B-parameter MoEs LLM with 23B active per token. 52 layers, 256 experts per MoE layer, 8 routed per token. Text in, text out with context window of 1M tokens. Checkpoint formats: BF16 , FP8 , and NVFP4 Reasoning that can stay in context across turns ( preserve_thinking ), tool calling with a dedicated grammar. The model supports five reasoning values: "low", "medium" (default), "high", "xhigh", and "max". Response template in the tokenizer. Speculative decoding drafter model with DFlash2 Day-0 libraries: transformers, SGLang, vLLM. Full-parameter RL with Miles. Ships with a Rust-based custom harness. Apache 2.0. Build with Beam Reflection is going to give out $10,000 Hub credits to the best projects that use Beam. All you have to do is make a thing, and share it on the Hub: You could make a demo that uses the Beam model on Spaces You could quantize it for your favorite hardware You could generate a synthetic dataset for your favorite problem You could build an RL environment with or for Beam You could benchmark Beam and share the results. You could surprise us! If you build something with Beam, then share it on the Hub for a chance to win $10,000. All you have to do is build the space, model, or dataset repo and share it on the model’s repo page . We’ll collect all the links, select the best, and send out the credits to your Hub accounts. What is Beam? Beam is a text-only model built for long-context (1M context length) reasoning and agentic work. It is a sparse MoE model, where each token is computed by a small fraction of the network, so it runs at the speed of a much smaller model while keeping the capacity of a large one. Attention The decoder has 52 layers with a hidden size of 5,120. Most layers use sliding-window attention over the previous 512 tokens; every sixth layer, and the last one, attend to the full context. That gives 43 sliding-window layers and 9 global ones. Inside the attention block (both layer types) The two kinds of layers handle position differently. Sliding-window layers use RoPE, since relative position matters most within a short window. Global layers use no positional encoding . Instead, each query is multiplied by a scaler that grows slowly with the number of visible tokens, (1 + (pos + 1) / 2048) ** 0.1 . It acts as a temperature: the softmax keeps its precision as the context lengthens instead of flattening out. The implementation calls this scalable-softmax query scaling. Attention uses grouped-query attention with 48 query heads and 8 key-value heads, with RMSNorm on queries and keys. A learned sigmoid gate, computed from the layer input, scales every channel of every head before the output projection. Mixture of Experts The first 3 layers use a dense SwiGLU MLP. The other 49 replace it with a Mixture-of-Experts block of 256 experts, each a SwiGLU MLP with an intermediate size of 2,560, or about 39M parameters. The experts hold 98.4% of the model's parameters. The router follows DeepSeek-V3's group-limited scheme. It scores all 256 experts with a sigmoid, splits them into 8 groups of 32, keeps the 4 best groups (ranked by the sum of each group's top two scores), then picks the top 8 experts inside them. Beam uses the same group sizes as DeepSeek-V3 but no shared expert. Expert outputs are combined with normalized router weights and scaled by 2.5. Only 8 experts run per token, so the model computes each token with about 23B parameters. All 256 experts stay in memory, so deployment needs the memory of a 501B model but runs at the speed of a 23B one. The BF16 checkpoint is about 1 TB in safetensors format. The NVFP4 checkpoint stores most parameters in 4-bit precision for NVIDIA Blackwell GPUs, some parameters are kept in BF16 for accuracy. There are also FP8 checkpoints on the hub which are ideal for Hopper and Ampere series chips. If you want to deploy Beam yourself, check out the vLLM or SGLang recipes below. Residual Stream The residual connections are the most distinctive part. A standard transformer adds each sublayer output to the stream with weight 1, so the stream grows with depth. Beam counts the input embedding as step 1. At step k it adds the sublayer output with weight 1/sqrt(k) and keeps the existing stream with weight sqrt((k-1)/k) . The squares of the two weights sum to one, so the stream stays at a constant scale from the first layer to the last. After all 104 additions, every sublayer output and the input embedding carry the same weight in the final hidden state. Every sublayer is also normalized before and after, and the final logits pass through a tanh softcap at ±30, computed in FP32. The implementation fixes where it computes in FP32: the router, the SwiGLU product, the norms, RoPE, the query scaling and the softcap. Long Context Hybrid attention works well for long contexts. Each layer caches 2 x 8 KV heads x 128 dims = 2,048 values per token. If all 52 layers kept every token, the cache would grow by 208 KiB per token. Only the 9 global layers keep the whole sequence. The 43 sliding-window layers hold a fixed 512-token window each and stop growing. So the cache grows by 36 KiB per token, roughly a sixth of the naive rate. Context If all 52 layers were global Beam 32K tokens 6.5 GiB 1.2 GiB 128K tokens 26 GiB 4.6 GiB Full context (1M) 208 GiB 36.08 GiB These numbers are per sequence, in BF16, with the transformers dynamic cache. Benchmark Results Here are the benchmark results across different precision levels, as provided by the Reflection team. Beam (BF16) Beam (FP8) Beam (NVFP4) Agentic Coding / Terminal DeepSWE v1.1 43.3% 43.0% 42.7% SWE Bench Pro v2-Hard 76.5% 78.4% 78.6% SWE Bench Pro v1 66.1% 65.9% 65.6% Terminal Bench v2.1 80.1% 78.9% 78.2% SWE Atlas Codebase QnA 31.8% 32.2% 31.4% SWEBench Multilingual 78.3% 78.1% 77.5% SWEBench Verified 81.6% 80.2% 80.7% Reasoning AIME 2026 97.7% 98.0% 97.5% HLE (no tools) 36.0% 36.0% 34.8% HLE (with tools) 51.1% 51.1% 51.1% SciCode 49.2% 48.3% 46.9% CriPT AA 16.3% 17.4% 15.4% GPQA Diamond 90.6% 90.3% 89.3% LiveCodeBench 88.3% 88.1% 87.4% Tool Calling / Search AutomationBench - public split only 39.3 38.2 39.8% MCP Atlas 80.8% 81.5% 80.5% Tau3 Banking 36.1% 36.8% 35.4% BrowseComp w/ context management 76.8% 76.7% 75.6% DeepSearchQA w/ context management 80.5% 79.6% 81.1% General Capabilities AA-LCR 78.2% 79.4% 78.7% LongBench v2 67.5% 67.6% 67.2% IFBench 79.6% 80.7% 79.2% AA Omniscience (index) - public split only 10.8 8.8 9.8 Hardware Requirements The most practical way to serve the model is serving the NVFP4 checkpoint, which retains most of the quality of the bf16 checkpoint. NVFP4 stores some weights in 4 bits, and this way, it shrinks the 501B parameters in BF16 from 1 TB to ~280 GB.
由 claude-code/sonnet 自動生成