AI Janitor / Learn

How a model computes

A model is a fixed list of sums and the steps between them. Four ideas, then open any architecture.

01

Sums

A model is a fixed list of sums: weights times inputs, added up. A Qwen3-ASR decode step runs 169 of them, and one of its rows adds 2,048 products.

02

Phases

The work comes in phases: read the input once, then produce one token at a time. Inside a phase, the same layer repeats, 24 or 28 times.

03

Order

Some steps must wait: a layer needs the previous one; softmax needs its whole sum. Inside one sum the order is free with exact math. In fp32 every add rounds, so another order only moves the last bits.

FIXED   layer 1 ──▶ layer 2 ──▶ … ──▶ layer 28
        sum ──▶ ▮ softmax (waits for the whole sum)

FREE    ◇── x₁·w₁ ─┐
          ── x₂·w₂ ─┼─◆ Σ   any order, same exact answer
          ── …     ─┘
04

Open one

Every architecture below is drawn that way: numbered order, ◇ any-order groups, ▮ steps that wait for all, ↻ repeats. Click any box for its numbers.

START WITH QWEN3-ASR →

Architectures

architecturefamilyphasesboxes
Chatterbox TTST3 Llama token LM + S3Gen flow-matching mel decoder + HiFT vocodercomposite4131
DeltaNet layerlinear attention with the delta rule, no decay gatelinear attention242
FastConformer encoder + Token-and-Duration Transducer decoderParakeet TDTtransducer284
Gated DeltaNet layerQwen3-Next / Qwen3.5 linear attentionlinear attention266
Mamba blockselective state-space model, v1state-space252
Mamba-2 blockstate space duality, multi-head SSMstate-space244
Mixture-of-Experts FFNrouter + top-k SwiGLU experts, Qwen3-MoE stylemixture-of-experts232
Qwen3-ASRconv-subsampled audio transformer encoder + adapter + Qwen3 decodercomposite5181
RWKV-7 "Goose" blockgeneralized delta rule, time-mix + channel-mixrecurrent296
SAN-M encodermemory-equipped self-attention, DFSMN) + CTC head (SenseVoicespeech-encoder142
Decoder-only transformerLlama / Qwen3 family: RMSNorm, GQA attention + RoPE, SwiGLU FFNattention2108
Encoder transformerbidirectional attention, LayerNorm, GELU MLPattention136

Data: model-precision-map · data/architectures/*.json → flow/data/*.json (built once by scripts/flowbuild.py). Theme: aijanitor.si (site/index.html, docs/whole-site-motion-plan.md).