Add part2/mars (moved from th4kur/anlp-a2-p2-mars)
Browse files- part2/mars/README.md +19 -0
- part2/mars/config.json +69 -0
- part2/mars/metrics.json +30 -0
- part2/mars/metrics.jsonl +0 -0
- part2/mars/model.safetensors +3 -0
- part2/mars/samples_test.json +22 -0
- part2/mars/tokenizer.json +0 -0
part2/mars/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language: [en]
|
| 4 |
+
tags: [language-modeling, optimizers, anlp-assignment-2]
|
| 5 |
+
datasets: [browndw/human-ai-parallel-corpus]
|
| 6 |
+
---
|
| 7 |
+
# mars — Part 2 (optimizer: `mars`)
|
| 8 |
+
|
| 9 |
+
Dense decoder-only transformer (size M, 27,269,632 parameters) pre-trained from scratch on the HAP-E corpus for one
|
| 10 |
+
pass over the training split with a from-scratch `mars` implementation (peak lr 0.001, seed 0).
|
| 11 |
+
|
| 12 |
+
| metric | value |
|
| 13 |
+
|---|---|
|
| 14 |
+
| validation loss (nats/token) | 3.8364 |
|
| 15 |
+
| test loss | 3.8306 |
|
| 16 |
+
| test continuation BLEU | 3.34 |
|
| 17 |
+
|
| 18 |
+
Load with the assignment repo: `from src.part1.hub import load_model; model, cfg = load_model("th4kur/anlp-a2", subfolder="part2/mars")`
|
| 19 |
+
(tokenizer: `tokenizer.json`).
|
part2/mars/config.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"vocab_size": 16384,
|
| 4 |
+
"D_model": 512,
|
| 5 |
+
"N_ctx": 256,
|
| 6 |
+
"n_layers": 6,
|
| 7 |
+
"n_heads": 8,
|
| 8 |
+
"d_ff": 2048,
|
| 9 |
+
"use_moe": false,
|
| 10 |
+
"n_experts": 0,
|
| 11 |
+
"n_shared": 0,
|
| 12 |
+
"top_k": 0,
|
| 13 |
+
"expert_ff": 2048,
|
| 14 |
+
"aux_loss_coef": 0.01,
|
| 15 |
+
"rope_base": 10000.0,
|
| 16 |
+
"init_std": 0.02
|
| 17 |
+
},
|
| 18 |
+
"train": {
|
| 19 |
+
"name": "mars",
|
| 20 |
+
"optimizer": "mars",
|
| 21 |
+
"lr": 0.001,
|
| 22 |
+
"adam_lr": null,
|
| 23 |
+
"hp": {
|
| 24 |
+
"betas": [
|
| 25 |
+
0.9,
|
| 26 |
+
0.95
|
| 27 |
+
],
|
| 28 |
+
"gamma": 0.025,
|
| 29 |
+
"eps": 1e-08,
|
| 30 |
+
"weight_decay": 0.1,
|
| 31 |
+
"gnorm": 1.0
|
| 32 |
+
},
|
| 33 |
+
"seed": 0,
|
| 34 |
+
"size": "M",
|
| 35 |
+
"model_overrides": {},
|
| 36 |
+
"data_dir": "data/part2",
|
| 37 |
+
"max_len": 257,
|
| 38 |
+
"budget_frac": 1.0,
|
| 39 |
+
"tokens_per_step": 2048,
|
| 40 |
+
"micro_tokens": 2048,
|
| 41 |
+
"warmup_frac": 0.03,
|
| 42 |
+
"min_lr_frac": 0.1,
|
| 43 |
+
"eval_every_frac": 0.1,
|
| 44 |
+
"eval_at_start": true,
|
| 45 |
+
"eval_test_loss": true,
|
| 46 |
+
"eval_bleu": true,
|
| 47 |
+
"eval_micro_tokens": 8192,
|
| 48 |
+
"bleu_batch": 128,
|
| 49 |
+
"final_eval": true,
|
| 50 |
+
"log_every": 10,
|
| 51 |
+
"out_dir": "outputs/part2",
|
| 52 |
+
"project": "anlp-a2-part2",
|
| 53 |
+
"group": "part2-final",
|
| 54 |
+
"wandb_mode": null,
|
| 55 |
+
"tags": [],
|
| 56 |
+
"hf_namespace": "th4kur",
|
| 57 |
+
"hf_private": true,
|
| 58 |
+
"free_local_weights": true,
|
| 59 |
+
"push_frac": 0.5,
|
| 60 |
+
"push_tries": 3,
|
| 61 |
+
"push_retry_wait_s": 30.0
|
| 62 |
+
},
|
| 63 |
+
"params": {
|
| 64 |
+
"total": 27269632,
|
| 65 |
+
"active": 27269632,
|
| 66 |
+
"non_embedding_total": 18881024,
|
| 67 |
+
"non_embedding_active": 18881024
|
| 68 |
+
}
|
| 69 |
+
}
|
part2/mars/metrics.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "mars",
|
| 3 |
+
"optimizer": "mars",
|
| 4 |
+
"lr": 0.001,
|
| 5 |
+
"adam_lr": null,
|
| 6 |
+
"seed": 0,
|
| 7 |
+
"size": "M",
|
| 8 |
+
"params/total": 27269632,
|
| 9 |
+
"params/active": 27269632,
|
| 10 |
+
"params/non_embedding_total": 18881024,
|
| 11 |
+
"params/non_embedding_active": 18881024,
|
| 12 |
+
"tokens/seen": 39223033,
|
| 13 |
+
"tokens/per_epoch": 39223033,
|
| 14 |
+
"steps": 10767,
|
| 15 |
+
"train/wall_clock_s": 1316.6094388090005,
|
| 16 |
+
"train/tokens_per_sec_avg": 29790.940155708588,
|
| 17 |
+
"optimizer/state_bytes_per_param": 12.0,
|
| 18 |
+
"dataset_frac": 1.0,
|
| 19 |
+
"chinchilla_ratio": 0.10386892416428262,
|
| 20 |
+
"val/loss": 3.8364470608148284,
|
| 21 |
+
"val/ppl": 46.360465565372024,
|
| 22 |
+
"val/loss_human": 4.469063456690576,
|
| 23 |
+
"val/loss_llm": 3.621612244163736,
|
| 24 |
+
"test/loss": 3.8306220518981555,
|
| 25 |
+
"test/loss_human": 4.480073894734004,
|
| 26 |
+
"test/loss_llm": 3.6153188738089908,
|
| 27 |
+
"test/bleu": 3.3352745763902414,
|
| 28 |
+
"test/bleu_human": 1.3491476994165936,
|
| 29 |
+
"test/bleu_llm": 3.912919636037709
|
| 30 |
+
}
|
part2/mars/metrics.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
part2/mars/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a50bf4bdc40cdc831bc4996bf6e1907ffda6ad056c0ccc807305caa7debbf115
|
| 3 |
+
size 109082080
|
part2/mars/samples_test.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"prompt_tail": " invader from all sides, he had lifted up his voice and yelled. Then, as by a conjuring-tr",
|
| 4 |
+
"hyp": "uth, he had been a man of great importance, and had been a man of great importance, and had been a man of great importance, and had been a man of great importance. He had been a man of great importance, and had been a man of great importance, and had been a man of great importance",
|
| 5 |
+
"ref": "ick, Blessington had appeared with her comforting presence that quite robbed the dark of its terrors. It must still have been early in the night, for she had not yet gone to bed, and had on above her smooth grey hair her cap with its adorable blue ribands in it. At her"
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"prompt_tail": " comes to manifesting not I share in my manifestation master class, but for now, I just want to share seven manifest",
|
| 9 |
+
"hyp": "ing the truth. I want to share the truth with you. I want to share the truth with you. I want to share the truth with you. I want to share the truth with you. I want to share the truth with you. I want to share the truth with you. I want to share the truth",
|
| 10 |
+
"ref": "ing languages that I got from Sarah Prout who is an author and meditation teacher and the manifesting maven. All this really is is creating realities through different modalities. We aren't locked into one language right some of us might call it. Whoo, you know, I call it knowledge other people might call"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"prompt_tail": " like casual observes of their constitutional rights. A right to choose should mean something more than just paying an extra 49",
|
| 14 |
+
"hyp": "% of the time. It's not about the size of the food, but about the size of the food. It's about the size of the food, the size of the food, the size of the food. It's about the size of the food, the size of the food, the size of the food",
|
| 15 |
+
"ref": " cents to up-size your goddamn generic fatty-meal. But as I said. After ten, maybe twenty years of wolfing down dozens of varieties of the flavor \"salt\", we start panicking because all of the sudden we're all fucking fat and we can't understand"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"prompt_tail": " the closet that her captors held her in ... Oh Minnie. Come watch with us. Yeah. It's history",
|
| 19 |
+
"hyp": ". I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry. I'm sorry",
|
| 20 |
+
"ref": " in the making. Charlotte doesn't take her eyes off the TV. No thanks. She's not mentally ill! Fuck this guy. Just because she ran away from her bourgeoisie family and started over. I know how you feel, Patty! Charlotte sips her drink, Minnie leans in. My"
|
| 21 |
+
}
|
| 22 |
+
]
|
part2/mars/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|