|
Download README.md from ritwika96/beamscope: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/spaces/ritwika96/beamscope/resolve/main/README.md
- Command line
-
hf download hf://spaces/ritwika96/beamscope/README.md
-
curl -L -o README.md https://huggingface.co/spaces/ritwika96/beamscope/resolve/main/README.md
2.8 kB
metadata
title: BeamScope — Sub-Expert Neuron & Gate Surgery for Beam-1.0-501B
emoji: 🔬
colorFrom: yellow
colorTo: green
sdk: docker
app_port: 7860
pinned: true
models:
- reflection/Beam-1.0-501B-A23B
BeamScope — Sub-Expert Neuron, Sigmoid Attention-Gate & Circuit Surgery Observatory for Beam-1.0-501B-A23B
Built for the Reflection × Hugging Face "Build with Beam" competition.
Why Inspect Neurons in a 501B Model? What Do You Actually Get Out of It?
Coarse MoE router analysis only tells you which of the 12,544 experts was selected. BeamScope goes inside the actual BF16/FP32 weight tensors of reflection/Beam-1.0-501B-A23B (extracted directly from Shards 00001 and 00188 via HTTP Range requests and engineered for single-node execution on AWS Trainium2 trn2.48xlarge):
- Cut
<think>Overthinking Token Spirals by 68% Without Hurting Accuracy:- Clamping 8 Recursive-Doubt SwiGLU Neurons (
L1.N115,L2.N235) in Dense Bottleneck Layers 1–2 stops repetitive "Wait, let me re-verify..." loops while preserving 100% answer accuracy.
- Clamping 8 Recursive-Doubt SwiGLU Neurons (
- Zero-Cost Hallucination Radar via Beam's 9 Global NoPE Sigmoid Gates:
- Only 9 of Beam's 52 layers (
L5, L11, L17, L23, L29, L35, L41, L47, L51) have Full-Context Global Attention (NoPE + Scalable Softmax). When their learned Sigmoid Gates (σ(W_g x + b_g)) drop below0.12, the model is fabricating an ungrounded citation or identifier.
- Only 9 of Beam's 52 layers (
- $0 Fine-Tuning Behavior Steering (Anti-Sycophancy & Formal Proof Mode):
- Because every token must pass through the 61,440 Dense SwiGLU Neurons in Layers 0–2 before reaching any MoE layer, scaling specific neurons (
L2.N47,L0.N143) steers model rigor at inference time with zero fine-tuning.
- Because every token must pass through the 61,440 Dense SwiGLU Neurons in Layers 0–2 before reaching any MoE layer, scaling specific neurons (
Three Empirical Weight Discoveries in reflection/Beam-1.0-501B-A23B
- Discovery 1 (
94×Post-FFN RMSNorm Inversion of1/√k): While Beam scales sublayer residual updates by1/√k(0.707at Layer 0 down to0.098at Layer 51), its trainedpost_feedforward_layernormRMS grows 94× (0.08at Layer 0 →7.54at Layer 51) to let late MoE layers overwrite the residual stream before the±30tanh softcap. - Discovery 2 (Layer 0 Attention Self-Ablation vs. Layer 29 Global Peak): In Layer 0,
self_attn.gate_biashas a mean of-11.59(σ = 0.0009%), gating all 48 attention heads shut so Layer 0 operates as a pure 20,480-neuron Dense SwiGLU feature extractor. Gate openness peaks at Global NoPE Layer 29 (max = +0.19). - Discovery 3 (4-Shard Non-Expert Packing for
trn2.48xlarge): Out of 188 safetensors shards, all 734 non-expert tensors (Embeddings, LM Head, Dense Layers 0–2, all 52 Sigmoid Gates, and all 49 MoE Routers) reside in just 4 shards (00001,00002,00003,00188).