Spaces:
Running
Download README.md from jeevanpillay/spacebeam: direct link, hf CLI and curl.
- Browser
- Download file 6.87 kB
-
https://huggingface.co/spaces/jeevanpillay/spacebeam/resolve/main/README.md
- Command line
-
hf download hf://spaces/jeevanpillay/spacebeam/README.md
-
curl -L -o README.md https://huggingface.co/spaces/jeevanpillay/spacebeam/resolve/main/README.md
title: spacebeam
emoji: ๐
colorFrom: gray
colorTo: blue
sdk: static
app_file: index.html
pinned: false
spacebeam
Lightfast's entry to Build with Beam: Beam-1.0-501B-A23B's routing, drawn as a moving picture.
Beam has 49 expert layers, numbered 3 to 51. Each has 256 experts, and at every token its router picks 8 of them. spacebeam takes a short passage and plays it one token at a time (a token is a word or a piece of one). Each token makes one pass through all 49 layers and lights the experts the router picked for it. Earlier tokens leave trails that fade behind it. Along each token's pass the line rises in brightness from the first layer to a peak in the middle of the model and fades toward the last, so one token's end fades as the next one's start rises. At the end of the passage it starts again and loops forever, so the trails build up a picture of how that passage was routed, and the picture differs from one kind of text to another.
Every lit point is one real pick, made by Beam on that token of that passage. A point sits where its expert sits on the explorer's map of the layer, a 16ร16 sheet, and its size shows the router's weight for that pick. Points get brighter where several tokens picked the same expert (in Orbit and Loom). Colour shows word order: it shifts from the passage's first token to its last. Nothing in it is simulated, and it runs no model: the page reads two precomputed files, routes.json and cards.json.
The three views
Switch views with the buttons or the keys 1 to 3. The panel on the left shows the passage being run, with the token now travelling lit; pick another passage there, or click a token to jump to it.
- Orbit. The 49 layers form one ring, layer 3 at the top and clockwise from there. Each layer is a wedge holding its experts. Each token goes round the ring once, and its line passes through its strongest public pick in each layer, so every corner of the line is a real pick.
- Rings. One ring per layer, layer 3 innermost. Each token has its own spoke, at its place in the passage, so the passage sweeps round like a clock hand and fills the disc.
- Loom. The layers are wedges round a circle in star order: each next layer is placed 20 wedges further round. The star shape comes from that layout, not from Beam. Only the points inside each wedge, and where each token's line passes through them, come from Beam. Each token's thread passes through the strongest public pick in each layer, so every corner of the star is a real pick; in Orbit too; in Rings the line passes through the weighted centre of the layer's public picks, which keeps each token's spoke straight.
The controls are kept small: the passage, the speed, how many tokens' trails stay on screen, pause, grid lines on or off (layer boundaries, and in Rings each word's spoke), and save the current picture as a PNG. The timeline under the picture moves through the passage yourself: drag it to any word and layer, or step one layer at a time with its arrows or the โ and โ keys; either pauses the loop. Hover a point to see the expert's most frequent tokens and which tokens on screen picked it. Point at a layer and two guide lines cross at it, a circle at its radius and a spoke at its angle (the circle crosses every layer in Orbit and Loom, the spoke in Rings); the panel on the right then shows that layer for the token now travelling: its public picks by router weight, with each expert's most frequent tokens, and how many of its 8 picks went to withheld experts.
The five passages
| Kind | Passage | Source | Licence | Tokens |
|---|---|---|---|---|
| Code | The start of enterabs in sched.py |
The Python standard library, CPython 3.12.13 | PSF-2.0 | 105 |
| Maths | A word problem and its worked answer (train, item 4404) | GSM8K | MIT | 92 |
| French | The opening of Technologie NX | French Wikipedia | CC BY-SA 3.0 | 84 |
| Prose | The opening of Steve Tyrell | English Wikipedia | CC BY-SA 3.0 | 81 |
| Tool calls | One of Beam's own tool calls in an agent run | Claimed vs. Done | Apache-2.0 | 63 |
Each passage is from the training and development texts of the research listed under Extras. In the tool call, the turn's structure tokens are drawn in grey.
Withheld experts
Half of each layer's experts, 128 of 256, are withheld, as they are in the explorer. A pick of a withheld expert is never drawn as a point and never given a place. It appears only as a count: each layer has a mark (a rim segment in Orbit and Loom, the ring itself in Rings) that dims by the share of that token's 8 picks that went to withheld experts. Hovering the mark gives the count. So a layer can look sparse because many of its picks are withheld, not because the token used few experts.
How Beam was used
We ran Beam-1.0-501B-A23B ourselves, on 8ร NVIDIA B200 GPUs, in our first GPU run (window 1, which ended on 28 October 2026). The weights were Reflection's FP8 build, reflection/Beam-1.0-501B-A23B-FP8 at revision ed2819f9cd4258a279802f5b20f081601015a746. The tokenizer, and the architecture the explorer's map is drawn from, come from Reflection's base repository, reflection/Beam-1.0-501B-A23B at revision 50a18f8ccf28c75cfdfd9cfe602451c5c81acaef, the revision recorded in the explorer's arch.json. A hook on the router logged the 8 experts it picked, and their weights, at every token in all 49 expert layers. spacebeam draws those logged picks for five of the texts in that run, as logged, weights rounded to three decimals. Nothing is simulated, sampled or smoothed. Tokens are Beam's own, cut by that tokenizer.
Extras
spacebeam is our entry. The research it grew out of comes with it, in a second Space:
- Beam expert explorer: a map of all 12,544 of Beam's routed experts, with each expert's most frequent tokens and the kinds of text it serves. spacebeam plays passages across the same map.
- Monitors from inside Beam, the write-up on the explorer's page: whether the router's picks predict what Beam does. On 681 held-out gray-area prompts, a classifier on the router's picks ranks Beam's refusals at AUROC 0.818, ahead of a classifier of the same size on the prompt's words (0.764); a probe on Beam's internal state does better (0.898), and so does Beam itself, asked from the prompt alone (0.868).
- Switching experts off: each kind of text's 64 most selective experts switched off, to see which kinds live in their own experts.
- 15 predictions, committed before Beam was loaded, each scored in that write-up.
The write-up is also in this Space's files: extras/.
Made by Lightfast.