--- license: mit tags: - text-generation - tiny-llm - from-scratch - gqa - swiglu - fineweb-edu library_name: pytorch --- # Tiny20MB Chat A **9.88M-parameter** modern decoder-only Transformer (~19.79 MB FP16 deduped checkpoint), trained **from scratch** on 2× Tesla T4 GPUs on Kaggle using **FineWeb-Edu** pre-training + clean **SmolTalk** SFT. ## Architecture - **Params:** 9,884,448 (weight-tied embeddings; `head.weight` omitted from checkpoint and re-tied to `tok.weight` on load) - **Design:** 8 Layers, `d_model=288`, `mlp_dim=832`, GQA (`6Q / 2KV`), `RMSNorm`, `SwiGLU`, `RoPE` - **Tokenizer:** 8,192-token BPE (`bpe_8192.json`), `block_size=256` - **Prompt Format:** `System: \nUser: \nAssistant: ` ## 150-Test Zero-Contamination Very Hard Benchmark - **Strict Score:** **4.67 / 100** (7/150) - **Unseen English Prose PPL:** 128.12 - **Unseen Python Code PPL:** 38.40 - **Hallucination Rate (Unknowable):** 80.0% - **Greedy Loop Rate:** 11.3% | Suite | Score | | :--- | :--- | | 1. Hard Multi-Step Logic | 1/25 (4.0%) | | 2. Hard Unseen Math & Algebra | 0/25 (0.0%) | | 3. Coding Traces + Live Exec | 0/25 (0.0%) | | 4. Unseen Science + Abstention | 1/25 (4.0%) | | 5. Hard Multi-Constraint IFEval | 0/25 (0.0%) | | 6. Adversarial State Tracking | 5/25 (20.0%) |