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.

Tiny Decoder Transformer architecture poster

Runtime: Loading .apr...

Inference: --

Artifact Format
apr-v2-f32
Parameters
1.8M weights
Family
neural

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

Attn(Q,K,V)=softmax(QK⊤dk)V

Numerical Contract

KV-cache step output matches full-sequence recomputation within 1e-4 max absolute logit error.