Core Architecture
Project Overview
434M-param pure-PyTorch Mamba-3 reproduction with complex-valued SSD state spaces.
System Architecture
Codebase contracts, hard rules, Triton carve-out, and numerical-stability rules.
Skills Map
Day-to-day developer workflows and agent competencies.
Documentation Index
A map of the concepts, guides, and API references in this portal.
Training Pipeline
Corpus mix, shard format, PretrainDataset layouts, and the data path end to end.
Architecture & Concepts
SSD Foundations
From RNNs to SSMs: the linear recurrence, ZOH discretization, and the S4 → Mamba-3 arc.
SSD Theory
State-space duality, complex states (N-halving), and the chunkwise algorithm einsum-by-einsum.
MIMO Head Mixing
SISO → MIMO fully-connected mixer across SSM heads — why, the math, identity init.
Block & Stability
RMSNorm → SSD → MIMO → SwiGLU wiring, every dtype/precision choice, and the scaling numbers.
Guides & Playbooks
Quickstart
From zero to a running training loop — install, verify the math, full run, resume.
Pretrain CLI
Every training/pretrain.py:TrainingConfig flag and the optimizer/scheduler wiring.
A100 Runbook
Launch, monitor, NaN recovery, and resume for a production pre-training run.
Tuning
chunk_size, lr, batch geometry, compile, Triton dispatch — measure, don't guess.
Extending
Add an SSM variant or a sanctioned Triton kernel with the test/doc contract.
API References
Config Reference
ModelConfig fields, the annotated YAML, and the 16.78B-vs-8.0B token arithmetic.
SSD Reference
The complex scan API (ssd_complex_chunkwise, ssd_naive_complex) and the kernel contract.
Model Reference
Mamba3Transformer, Mamba3Block + dispatch, and MIMO — shapes and wiring.
Training Reference
PretrainDataset, CheckpointManager, TrainingLogger, and the data pipeline shim.