APR-NEU-003 // apr-v2-f32
Tiny Decoder Transformer
4-layer RoPE causal transformer with RMSNorm, SwiGLU MLP, and pre-allocated KV cache for deterministic greedy decoding.
Runtime: Loading .apr...
Inference: --
CLI Execution & Inspection
$ apr run tiny-transformer --prompt "fn main()" --max-tokens 64 $ apr inspect tiny-transformer.apr --verify-sha256
Mathematical Formulation
Scaled Dot-Product Attention
Numerical Contract
KV-cache step output matches full-sequence recomputation within 1e-4 max absolute logit error.