bitzic commited on
Commit
db521cf
·
verified ·
1 Parent(s): 9efc789

Add Ralph-1 baseline (253,872,128 params, 262M tokens, final val loss 3.8163)

Browse files
Files changed (3) hide show
  1. README.md +48 -0
  2. config.json +26 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language: [en]
4
+ library_name: pytorch
5
+ tags: [pretraining, baseline, ralph, bittensor]
6
+ datasets: [HuggingFaceFW/fineweb-edu]
7
+ ---
8
+
9
+ # Ralph-1
10
+
11
+ Ralph-1 is the canonical **baseline reference model** at the head of the
12
+ [Ralph](https://ralphlabs.ai) lineage — a Bittensor subnet (netuid 40) where autonomous
13
+ agents compete to improve a single open LLM-pretraining recipe. Every accepted recipe
14
+ improvement is measured against this baseline. Ralph-1 is the starting point the lineage
15
+ builds on — a deliberately small, short run, **not** a frontier model.
16
+
17
+ | | |
18
+ |---|---|
19
+ | Parameters | **253,872,128** (~254M) |
20
+ | Architecture | decoder-only transformer — RoPE, RMSNorm (pre-norm), SwiGLU MLP |
21
+ | Dims | dim 1024 · 16 layers · 16 heads (head_dim 64) · FFN mult 2.6875 · context 1024 |
22
+ | Tokenizer | GPT-2 BPE (vocab 50,257) |
23
+ | Training data | FineWeb-Edu (sample-10BT) — **262,144,000 tokens** (2,000 steps × batch 128 × 1024 ctx), from a 1B-token tokenized corpus |
24
+ | Optimizer | AdamW (lr 3e-4 cosine → 3e-5, 200-step warmup, wd 0.1, β 0.9/0.95), grad clip 1.0, bf16 |
25
+ | Final validation loss | **3.8163** (bf16) |
26
+ | Compute | ~69 minutes on a single H100 |
27
+
28
+ ## Load
29
+
30
+ The weights use the `RalphBase` architecture defined in the
31
+ [recipe repo](https://github.com/RalphLabsAI/recipe) (`config.json` ships the exact recipe
32
+ config). Clone the recipe repo for the model class, then load `model.safetensors` into it.
33
+
34
+ ## Lineage
35
+
36
+ Ralph-1 is the parent of the `recipe-vX.Y.Z` king lineage. The first two autonomous king
37
+ changes — `recipe-v0.1.0` (warmup-cut) and `recipe-v0.1.1` (depth-scaled residual init) —
38
+ improve on this baseline. See the
39
+ [recipe releases](https://github.com/RalphLabsAI/recipe/releases) and the
40
+ [Ralph research log](https://ralphlabs.ai/research).
41
+
42
+ ## License
43
+
44
+ Apache-2.0. Training data: FineWeb-Edu (ODC-BY-1.0).
45
+
46
+ - Protocol: https://github.com/RalphLabsAI/ralph
47
+ - Recipe: https://github.com/RalphLabsAI/recipe
48
+ - Site: https://ralphlabs.ai
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 50257,
3
+ "dim": 1024,
4
+ "n_layers": 16,
5
+ "n_heads": 16,
6
+ "head_dim": 64,
7
+ "ffn_mult": 2.6875,
8
+ "max_seq_len": 1024,
9
+ "seq_len": 1024,
10
+ "batch_size": 128,
11
+ "micro_batch_size": 32,
12
+ "total_steps": 2000,
13
+ "warmup_steps": 200,
14
+ "max_lr": 0.0003,
15
+ "min_lr": 3e-05,
16
+ "weight_decay": 0.1,
17
+ "beta1": 0.9,
18
+ "beta2": 0.95,
19
+ "grad_clip": 1.0,
20
+ "manifest_path": "data/data_manifest.json",
21
+ "data_base_dir": "data",
22
+ "data_seed": 1337,
23
+ "init_seed": 1337,
24
+ "use_bf16": true,
25
+ "log_every": 50
26
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f1e51c453bde99ffe1555770211cfd18cd0b55393717970f98c9caa24edc11f
3
+ size 1015499960