Upload Tiny20MB chat (4.67/100 hard benchmark, PPL 128.1)
Browse files- README.md +37 -0
- bpe_8192.json +0 -0
- config.json +18 -0
- hard_benchmark_v5_20mb.json +86 -0
- tiny_llm_20mb_v2_chat.pt +3 -0
README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation
|
| 5 |
+
- tiny-llm
|
| 6 |
+
- from-scratch
|
| 7 |
+
- gqa
|
| 8 |
+
- swiglu
|
| 9 |
+
- fineweb-edu
|
| 10 |
+
library_name: pytorch
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Tiny20MB Chat
|
| 14 |
+
|
| 15 |
+
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.
|
| 16 |
+
|
| 17 |
+
## Architecture
|
| 18 |
+
- **Params:** 9,884,448 (weight-tied embeddings; `head.weight` omitted from checkpoint and re-tied to `tok.weight` on load)
|
| 19 |
+
- **Design:** 8 Layers, `d_model=288`, `mlp_dim=832`, GQA (`6Q / 2KV`), `RMSNorm`, `SwiGLU`, `RoPE`
|
| 20 |
+
- **Tokenizer:** 8,192-token BPE (`bpe_8192.json`), `block_size=256`
|
| 21 |
+
- **Prompt Format:** `System: <role>\nUser: <prompt>\nAssistant: `
|
| 22 |
+
|
| 23 |
+
## 150-Test Zero-Contamination Very Hard Benchmark
|
| 24 |
+
- **Strict Score:** **4.67 / 100** (7/150)
|
| 25 |
+
- **Unseen English Prose PPL:** 128.12
|
| 26 |
+
- **Unseen Python Code PPL:** 38.40
|
| 27 |
+
- **Hallucination Rate (Unknowable):** 80.0%
|
| 28 |
+
- **Greedy Loop Rate:** 11.3%
|
| 29 |
+
|
| 30 |
+
| Suite | Score |
|
| 31 |
+
| :--- | :--- |
|
| 32 |
+
| 1. Hard Multi-Step Logic | 1/25 (4.0%) |
|
| 33 |
+
| 2. Hard Unseen Math & Algebra | 0/25 (0.0%) |
|
| 34 |
+
| 3. Coding Traces + Live Exec | 0/25 (0.0%) |
|
| 35 |
+
| 4. Unseen Science + Abstention | 1/25 (4.0%) |
|
| 36 |
+
| 5. Hard Multi-Constraint IFEval | 0/25 (0.0%) |
|
| 37 |
+
| 6. Adversarial State Tracking | 5/25 (20.0%) |
|
bpe_8192.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Tiny20MB"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "tiny20mb",
|
| 6 |
+
"vocab_size": 8192,
|
| 7 |
+
"block_size": 256,
|
| 8 |
+
"d_model": 288,
|
| 9 |
+
"n_head": 6,
|
| 10 |
+
"n_kv_head": 2,
|
| 11 |
+
"n_layer": 8,
|
| 12 |
+
"mlp_dim": 832,
|
| 13 |
+
"norm": "RMSNorm",
|
| 14 |
+
"activation": "SwiGLU",
|
| 15 |
+
"positional": "RoPE",
|
| 16 |
+
"tied_embeddings": true,
|
| 17 |
+
"torch_dtype": "float16"
|
| 18 |
+
}
|
hard_benchmark_v5_20mb.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "tiny_llm_20mb_v2_chat.pt",
|
| 3 |
+
"params": 9884448,
|
| 4 |
+
"real_score_100": 4.67,
|
| 5 |
+
"passed": 7,
|
| 6 |
+
"total": 150,
|
| 7 |
+
"ppl_unseen_prose": 128.119,
|
| 8 |
+
"ppl_unseen_code": 38.403,
|
| 9 |
+
"hallucination_rate_pct": 80.0,
|
| 10 |
+
"greedy_loop_rate_pct": 11.3,
|
| 11 |
+
"suites": {
|
| 12 |
+
"1. Hard Multi-Step Logic": {
|
| 13 |
+
"passed": 1,
|
| 14 |
+
"total": 25,
|
| 15 |
+
"pct": 4.0,
|
| 16 |
+
"loops": 5
|
| 17 |
+
},
|
| 18 |
+
"2. Hard Unseen Math & Algebra": {
|
| 19 |
+
"passed": 0,
|
| 20 |
+
"total": 25,
|
| 21 |
+
"pct": 0.0,
|
| 22 |
+
"loops": 2
|
| 23 |
+
},
|
| 24 |
+
"3. Coding Traces + Live Exec": {
|
| 25 |
+
"passed": 0,
|
| 26 |
+
"total": 25,
|
| 27 |
+
"pct": 0.0,
|
| 28 |
+
"loops": 4
|
| 29 |
+
},
|
| 30 |
+
"4. Unseen Science + Abstention": {
|
| 31 |
+
"passed": 1,
|
| 32 |
+
"total": 25,
|
| 33 |
+
"pct": 4.0,
|
| 34 |
+
"loops": 2
|
| 35 |
+
},
|
| 36 |
+
"5. Hard Multi-Constraint IFEval": {
|
| 37 |
+
"passed": 0,
|
| 38 |
+
"total": 25,
|
| 39 |
+
"pct": 0.0,
|
| 40 |
+
"loops": 1
|
| 41 |
+
},
|
| 42 |
+
"6. Adversarial State Tracking": {
|
| 43 |
+
"passed": 5,
|
| 44 |
+
"total": 25,
|
| 45 |
+
"pct": 20.0,
|
| 46 |
+
"loops": 3
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"all_passes": [
|
| 50 |
+
{
|
| 51 |
+
"suite": "1. Hard Multi-Step Logic",
|
| 52 |
+
"q": "A brick weighs 1 kg plus half a brick. How many kg does the whole brick weigh?",
|
| 53 |
+
"a": "To find the total number of kg + half a brick weighs is 1 kg + 2 kg = 1 kg + 2 kg = 1 kg + 1 kg ="
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"suite": "4. Unseen Science + Abstention",
|
| 57 |
+
"q": "What is the capital city of the fictional planet Zylar-9? If unknown, say 'I don't know'.",
|
| 58 |
+
"a": "The capital city of the fictional planet Zylar-9 appears to be fictional."
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"suite": "6. Adversarial State Tracking",
|
| 62 |
+
"q": "User: Flight 402 moved from Gate 7 to Gate 19. Which gate is Flight 402 at now?",
|
| 63 |
+
"a": "Field 402 went to the Gate 19."
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"suite": "6. Adversarial State Tracking",
|
| 67 |
+
"q": "User: Nora likes tea, not coffee. Omar likes coffee, not tea. What does Nora like?",
|
| 68 |
+
"a": "Nora likes tea, but also has a sweetener."
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"suite": "6. Adversarial State Tracking",
|
| 72 |
+
"q": "User: Jar 1 has salt. Jar 2 has sugar. Jar 3 has flour. Which jar has sugar?",
|
| 73 |
+
"a": "If Jar 2 has sugar, and sugar is twice as sugar.\nIf Jar 2 has sugar, then it has sugar.\nSo, Jar"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"suite": "6. Adversarial State Tracking",
|
| 77 |
+
"q": "User: The cat slept on the sofa while the hamster hid inside the shoe. Where is the hamster?",
|
| 78 |
+
"a": "The cat slept on the shoe, and the hamster hiders on the shoe, the hamster, and the ham"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"suite": "6. Adversarial State Tracking",
|
| 82 |
+
"q": "User: The library opens at 8 AM and closes at 6 PM. When does it close?",
|
| 83 |
+
"a": "The library currently has a total of 9 PM and closes at 6 PM."
|
| 84 |
+
}
|
| 85 |
+
]
|
| 86 |
+
}
|
tiny_llm_20mb_v2_chat.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d4de459a4c00cc37ffa38af24440a7361b8b21ae33e5a9dda87533348a9d2e3
|
| 3 |
+
size 19792741
|