# Architecture Decisions for Marin 535B-A23B

- **ID:** 1571
- **Kind:** post
- **URL:** https://openathena.ai/blog/marin-535b-architecture/
- **Authors:** Larry Dial (Open Athena / Marin project)
- **Venue:** Open Athena blog
- **Source:** blog
- **Language:** en
- **Access:** free
- **Added:** 2026-11-10
- **Verified:** 2026-11-10
- **Page:** https://papers.projxon.ai/entries/1571

## Summary

First-person account of the architecture rationale for Marin 535B-A23B (Open Athena's Marin project), which finished pretraining on 18T tokens on Nov 5 2026 on 768 GB200s - a run that was publicly forecast in advance, livestreamed, and completed with zero instabilities, finishing at Paloma macro loss 1.982 against a 2.039 forecast (with a disclosed caveat: ~0.02 of the improvement comes from a Penn Treebank subset of the Paloma eval found contaminated in training data). The design was driven by realized MFU on a fixed December deadline, demonstrated MoE stability, and usefulness as an SFT/RL base. Architecture: 3:1 local sliding-window (2,048) to global attention with GQA 4:1 on local and 8:1 on global layers and gated attention; partial RoPE (50%) on local layers, NoPE on global; Latent MoE (2x compression) with 8 of 384 experts plus 2 shared experts, SwiGLU, sigmoid router with top-k weights renormalized to sum to 2.5; shallow shape - 6,144 hidden, 48 layers (width:depth 128), no leading dense layers; head dim 128; logit z-loss (1e-4). Optimizer: Hyperball - MuonH on all matrices, AdamH on the lm_head, plain Adam on embedding, router, gates, norm gains and conv kernels, with an empirical LR fit and Adam held at a 3/13 ratio to MuonH; 1% warmup then LINEAR decay to 5% of peak (linear beat WSD in their sweep, attributed to hyperball fixing parameter norms so the effective LR no longer self-decays). Component evidence (compute efficiency = the multiple of compute the baseline needs to match the variant's loss): a learnable RMSNorm on the MoE latent rescued latent MoE from 0.74-0.75x to 1.25x compute efficiency; short convolutions (kernel 4, on keys, attention output and MLP output, deliberately NOT on values where the gain was smallest and it blurs XSA) gave 1.19x; the 2,048 window cost only 2-4% inference speed vs 512 for 1.10x; removing GQA entirely would gain ~1.2x but GQA was kept for KV-cache reasons, with the split ratio following where cache actually grows; QK RMSNorm with a FIXED 1.3 multiplier beat a learnable per-head gain (which drifts 1.3 -> ~2.0 with no benefit), and the multiplier is raised manually to 1.66 at context extension; XSA (exclusive self-attention) is loss-neutral on the final recipe but halves early-training EP token dropping (12.7% -> 5.6%), kept because attention starting near a no-op stabilizes the router; top-k quantile balancing applied to RAW router logits (not after the sigmoid, contra DeepSeek-V3/Kimi K3) balances substantially faster (~2% vs 3.4-4.9% drop rates; routing entropy 4.848 of a 4.852 maximum); expert granularity 8 of 384 gave 1.13-1.16x over 4 of 192, and its square expert matrices suit Muon's orthonormalization, avoiding the neuron-death fixes NorMuon/Aurora add for rectangular matrices; RMSNorm on the embedding was worth ~19% compute efficiency, with the unnormalized embedding norm growing 177 -> ~7,800 under Adam acting as built-in LR decay. Two findings tie directly to the catalog's precision thread: pinning the lm_head norm via hyperball does NOT control logit scale - the learnable RMSNorm gain before the head grows freely (557 without z-loss vs 183 with) and runs without z-loss blow up in the overtrained regime, so z-loss stayed - and an lm_head parameter-norm collapse from a sharded-norm numerics bug (norm 150.7 -> 21.4 in one step, loss 2.07 -> 9.14, gradient normal) was only visible in the PER-MATRIX norm, a monitoring lesson. Systems: fixed-capacity expert parallelism plus the extra experts plus latent MoE gave ~1.3x compute efficiency at 3-7% token dropping; a 4k -> 65k context extension spiked dropping to 37% yet landed within 0.01 eval loss of dropless, the robustness evidence that justified the design; a ragged all-to-all kernel landed mid-run cut dropping to ~0.01-0.14%. A 4-rung scaling ladder (5e19 to 9e21 FLOPs) forecast the hero run across a 300x extrapolation. Notable deliberate omissions, all MFU- or timeline-gated: MTP, attention residuals / mHC, MLA, KDA, FP8/NVFP4. Open problems flagged: dead routed experts in the first two layers, smaller local windows early in training to force global-layer specialization, quantile balancing shocks at data-mix changes. Flags, as entered: first-party engineering blog - all ablation numbers are the team's own at d512-d2048 ladder scale, and several decisions are explicitly deadline- and hardware-specific; the recipe and code are fully open (Marin community repos).

## Research notes

- Shared 2026-11-10 via @percyliang's quote-post of author @classiclarryd's launch post (statuses 2120034819291898364 / 2119924094473023877). Marin 535B-A23B finished pretraining 2026-11-05. STAGED 2026-11-10 during the Neon quota freeze; insert after the earlier staged items when writes reopen.

## Similar entries

- [Decision 2.0 — vLLM Semantic Router open decision models (0.6B–27B)](https://papers.projxon.ai/entries/1306) (model, #1306)
- [Julia-1 (Supersonic Labs decision model)](https://papers.projxon.ai/entries/1081) (model, #1081)
- [New in llama.cpp: Decision Models — /v1/systemone typed-decision endpoint](https://papers.projxon.ai/entries/1305) (post, #1305)
- [D-JEPA: A Decision-Aligned Latent World Model](https://papers.projxon.ai/entries/1224) (paper, #1224)
- [Targeting Pivotal Decisions for Credit Assignment in Agentic Reinforcement Learning](https://papers.projxon.ai/entries/860) (paper, #860)
- [Tev1-4B-experimental (Together Jev-inspired decision SFT on Qwen3.5-4B)](https://papers.projxon.ai/entries/1029) (model, #1029)
