Interactive-Active-AI/NextTransformer
:sunrise: A comprehensive, cutting-edge open-source framework for next-generation Transformers/LLM, with compute-matched benchmarking and a platform for autonomous architecture research.
What it is
NextTransformer is an open-source framework, benchmark, and auto-research platform for comparing next-generation Transformer language-model architectures. It answers one question: when the training budget is fixed, how should a language model spend its computation?
How it works
Every architecture is trained under identical conditions: the same data (ClimbMix at a pinned revision), the same 49.152B tokens, the same theoretical compute per token (4.672 GFLOPs per input token), and the same evaluation checkpoints. Compute is matched to within ±1% at admission and ±2% over the whole run. Every result is an audited, file-backed record. Parameters, memory, and speed are treated as outcomes, not controls.
The protocol at a glance
- Data: ClimbMix, one 32,768-token tokenizer, 2,048-token context, one global sample order
- Budget: 49.152B input tokens, 46,875 updates of 1,048,576 tokens, seed 42
- Compute: 4.672 GFLOPs per input token (forward, backward, auxiliary, optimizer); ±1% at admission, ±2% over the run
- Evaluation: Validation BPB at 189 points, full CORE-22 at six checkpoints, an independent final BPB
- Baseline: Dense — full causal attention in every layer, trained under the same budget
Model zoo
Architectures are grouped by family: Baseline (Dense), Residual (AttnRes, HC, mHC), Looped (UT-ACT, Huginn, Ouro, DeepLoop, MoR, LoopFormer, Circle Loop), Sparse (DSA, QSA, NSA, SeerAttention-style, MoBA), Linear (DeltaNet, GLA, RetNet, GDN, KDA, ELU-Norm), Hybrid (GDN–MHA, GDN–SWA, DeltaNet–MHA, KDA–MLA-NoPE, MoBA–MHA), and Others (SSSL, MQA, GQA, MLA variants). All plug into one shared trainer, data pipeline, and evaluation.
Scale
A model with about 1.4B parameters pretrains on 49B tokens in 2–4 days on one 8-GPU node. 200B and 400B token runs with Dense and MoE models are planned for November 2026.
The observatory
A browser dashboard showing learning curves of every run, a replayable leaderboard, all 22 CORE tasks, architecture diagrams, and model cards.
Auto-research arena
AI agents can already enter an architecture: it is trained under the same protocol, ranked on the same leaderboard, and disclosed with how it was found. Arena v2 — with a research gym, MCP tools, metered compute, research traces, and self-improving research loops — ships by November 14, 2026.
Current status
Open-sourced October 31, 2026 with 31 finished runs and 36 model cards. The full protocol, documentation, and observatory are public.
Adding a method
- Open a proposal issue to discuss the method and run plan.
- Implement the plugin on your fork, calibrate it to the shared budget, and complete a
--formalrun. - Once audited and exported, open one pull request to upstream
mainwith the implementation and result.
Community extensions
NextTransformer-V (by @Enderfga) is a community multimodal track that trains every NextTransformer method on interleaved image and text tokens under the same compute-matched contract.
Technical details
- Python 3.10–3.13, PyTorch 2.9.1, Linux with NVIDIA GPUs
- Uses flash-linear-attention kernels; builds on nanochat and ideas from modded-nanogpt; trains on ClimbMix
- MIT License
- Community: Discord, GitHub Discussions, WeChat group
Related
- Project
- Project
- Project
- Project