Add d270
Browse files- d270/README.md +28 -0
- d270/config.json +121 -0
- d270/model.pt +3 -0
- d270/params.json +13 -0
d270/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# D270 (dense control)
|
| 2 |
+
|
| 3 |
+
Part of the [Self-Drafting Latent Memory](../README.md) collection.
|
| 4 |
+
|
| 5 |
+
No memory. Uniform d_ff = 2464, so its size (269.8M non-embedding) equals the memory models' active parameters per token. **Trained on 2B tokens** (3,815 steps), twice the memory models' budget.
|
| 6 |
+
|
| 7 |
+
- **Architecture:** 24-layer Llama-style decoder, d = 1024, 24 query / 4 KV heads, SwiGLU, RoPE, tied embeddings, vocabulary 32,768, context 2048. Training config: `w3_dense270` in the repository.
|
| 8 |
+
- **Validation loss:** 2.5147 (2B tokens); 2.7167 at 0.94B.
|
| 9 |
+
- **Zero-shot (lm-eval 0.4.13):**
|
| 10 |
+
|
| 11 |
+
| HellaSwag | MMLU-cloze | SciQ | WinoGrande | PIQA | ARC-Easy |
|
| 12 |
+
|---|---|---|---|---|---|
|
| 13 |
+
| 31.0 | 25.0 | 68.1 | 52.6 | 61.5 | 41.2 |
|
| 14 |
+
|
| 15 |
+
## Files
|
| 16 |
+
|
| 17 |
+
- `model.pt`: `{"model": state_dict, "config": ..., "step": ..., "params": ...}`, weights only (no optimizer state).
|
| 18 |
+
- `config.json`: the resolved training/model config.
|
| 19 |
+
- `params.json`: parameter counts by component.
|
| 20 |
+
|
| 21 |
+
## Load
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
from ffnmem.infer import load_model # code from the accompanying repository
|
| 25 |
+
model, cfg = load_model("d270/model.pt", device="cuda")
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Research checkpoint: not instruction-tuned, not safety-tuned, not for deployment.
|
d270/config.json
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"d_model": 1024,
|
| 4 |
+
"n_layers": 24,
|
| 5 |
+
"n_heads": 24,
|
| 6 |
+
"n_kv_heads": 4,
|
| 7 |
+
"head_dim": 64,
|
| 8 |
+
"vocab": 32768,
|
| 9 |
+
"seq_len": 2048,
|
| 10 |
+
"d_ff": [
|
| 11 |
+
2464,
|
| 12 |
+
2464,
|
| 13 |
+
2464,
|
| 14 |
+
2464,
|
| 15 |
+
2464,
|
| 16 |
+
2464,
|
| 17 |
+
2464,
|
| 18 |
+
2464,
|
| 19 |
+
2464,
|
| 20 |
+
2464,
|
| 21 |
+
2464,
|
| 22 |
+
2464,
|
| 23 |
+
2464,
|
| 24 |
+
2464,
|
| 25 |
+
2464,
|
| 26 |
+
2464,
|
| 27 |
+
2464,
|
| 28 |
+
2464,
|
| 29 |
+
2464,
|
| 30 |
+
2464,
|
| 31 |
+
2464,
|
| 32 |
+
2464,
|
| 33 |
+
2464,
|
| 34 |
+
2464
|
| 35 |
+
],
|
| 36 |
+
"memory_layers": [],
|
| 37 |
+
"memory": null,
|
| 38 |
+
"norm_eps": 1e-05,
|
| 39 |
+
"rope_theta": 10000.0,
|
| 40 |
+
"init_std": 0.02,
|
| 41 |
+
"layers": [
|
| 42 |
+
0,
|
| 43 |
+
1,
|
| 44 |
+
2,
|
| 45 |
+
3,
|
| 46 |
+
4,
|
| 47 |
+
5,
|
| 48 |
+
6,
|
| 49 |
+
7,
|
| 50 |
+
8,
|
| 51 |
+
9,
|
| 52 |
+
10,
|
| 53 |
+
11,
|
| 54 |
+
12,
|
| 55 |
+
13,
|
| 56 |
+
14,
|
| 57 |
+
15,
|
| 58 |
+
16,
|
| 59 |
+
17,
|
| 60 |
+
18,
|
| 61 |
+
19,
|
| 62 |
+
20,
|
| 63 |
+
21,
|
| 64 |
+
22,
|
| 65 |
+
23
|
| 66 |
+
],
|
| 67 |
+
"memory_overrides": {},
|
| 68 |
+
"draft": null,
|
| 69 |
+
"ssm": null
|
| 70 |
+
},
|
| 71 |
+
"train": {
|
| 72 |
+
"seed": 1234,
|
| 73 |
+
"data_seed": 1234,
|
| 74 |
+
"val_tokens": 20000000,
|
| 75 |
+
"global_batch": 256,
|
| 76 |
+
"micro_batch": 2,
|
| 77 |
+
"tokens_total": 2000000000,
|
| 78 |
+
"lr": 0.0006,
|
| 79 |
+
"min_lr_ratio": 0.1,
|
| 80 |
+
"warmup_frac": 0.02,
|
| 81 |
+
"warmup_min_steps": 100,
|
| 82 |
+
"betas": [
|
| 83 |
+
0.9,
|
| 84 |
+
0.95
|
| 85 |
+
],
|
| 86 |
+
"eps": 1e-08,
|
| 87 |
+
"weight_decay": 0.1,
|
| 88 |
+
"grad_clip": 1.0,
|
| 89 |
+
"table_lr_mult": 4.0,
|
| 90 |
+
"precision": "fp16",
|
| 91 |
+
"act_ckpt": true,
|
| 92 |
+
"attn_backend": "sdpa",
|
| 93 |
+
"zero1": true,
|
| 94 |
+
"ckpt_every": 200,
|
| 95 |
+
"keep_last": 3,
|
| 96 |
+
"keep_every": 1000,
|
| 97 |
+
"eval_every": 200,
|
| 98 |
+
"eval_max_batches": null,
|
| 99 |
+
"diag_batches": 4,
|
| 100 |
+
"log_every": 10,
|
| 101 |
+
"scaler_min": 1.0,
|
| 102 |
+
"scaler_patience": 100,
|
| 103 |
+
"nan_patience": 20,
|
| 104 |
+
"save_steps": [
|
| 105 |
+
1000,
|
| 106 |
+
2000,
|
| 107 |
+
3815
|
| 108 |
+
],
|
| 109 |
+
"strip_old_optimizer": true,
|
| 110 |
+
"seq_len": 2048
|
| 111 |
+
},
|
| 112 |
+
"name": "w3_dense270",
|
| 113 |
+
"params": {
|
| 114 |
+
"expected_non_embedding": null,
|
| 115 |
+
"reference": false,
|
| 116 |
+
"match_reference": false
|
| 117 |
+
},
|
| 118 |
+
"wandb": {
|
| 119 |
+
"project": "morbius-wave3"
|
| 120 |
+
}
|
| 121 |
+
}
|
d270/model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b0158c8807023d6b75364dc8f35aa0b3fb13d6c2572a81a5e32daa4037d2db4
|
| 3 |
+
size 1213468811
|
d270/params.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding": 33554432,
|
| 3 |
+
"attention": 88080384,
|
| 4 |
+
"ffn": 181665792,
|
| 5 |
+
"norms": 50176,
|
| 6 |
+
"memory_tables": 0,
|
| 7 |
+
"memory_readout": 0,
|
| 8 |
+
"draft": 0,
|
| 9 |
+
"ssm": 0,
|
| 10 |
+
"total": 303350784,
|
| 11 |
+
"non_embedding": 269796352,
|
| 12 |
+
"active_non_embedding_per_token": 269796352
|
| 13 |
+
}
|