sanyam2005 commited on
Commit
d2f4dde
·
verified ·
1 Parent(s): 3522779

part2/adam_mini: final checkpoint

Browse files
part2/adam_mini/README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: [en]
3
+ tags: [causal-lm, optimizers, anlp-assignment-2]
4
+ ---
5
+ # ANLP A2 Part 2 — Adam-mini
6
+
7
+ Dense decoder-only Transformer (27,269,632 params) trained from scratch on
8
+ `browndw/human-ai-parallel-corpus` (causal LM, 1x dataset) with **Adam-mini**
9
+ (Memory-efficient) implemented from scratch.
10
+
11
+ * tokens: 41,648,128
12
+ * final validation loss: 3.9736
13
+ * final test BLEU (64-token continuation): 1.43
14
+ * hyper-parameters: `{'lr': 0.0005, 'betas': [0.9, 0.95], 'eps': 1e-08, 'weight_decay': 0.1}`
part2/adam_mini/config.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": {
3
+ "vocab_size": 16384,
4
+ "D_model": 512,
5
+ "N_ctx": 512,
6
+ "n_layers": 6,
7
+ "n_heads": 8,
8
+ "d_ff": 2048,
9
+ "dropout": 0.0,
10
+ "rope_theta": 10000.0,
11
+ "tie_embeddings": true,
12
+ "norm_eps": 1e-05,
13
+ "use_moe": false,
14
+ "n_experts": 4,
15
+ "n_shared_experts": 0,
16
+ "top_k": 1,
17
+ "expert_d_ff": null,
18
+ "moe_param_match": "total",
19
+ "normalize_topk": true,
20
+ "aux_loss_coef": 0.01,
21
+ "z_loss_coef": 0.001
22
+ },
23
+ "optimizer": "adam_mini",
24
+ "info": {
25
+ "optimizer": "adam_mini",
26
+ "optimizer_name": "Adam-mini",
27
+ "category": "Memory-efficient",
28
+ "optimizer_hparams": {
29
+ "lr": 0.0005,
30
+ "betas": [
31
+ 0.9,
32
+ 0.95
33
+ ],
34
+ "eps": 1e-08,
35
+ "weight_decay": 0.1
36
+ },
37
+ "train_hparams": {
38
+ "dataset_passes": 1.0,
39
+ "data_fraction": 1.0,
40
+ "batch_size": 32,
41
+ "grad_accum_steps": 1,
42
+ "grad_clip": 1.0,
43
+ "schedule": "cosine",
44
+ "warmup_frac": 0.02,
45
+ "min_lr_ratio": 0.1,
46
+ "eval_interval": 0.1,
47
+ "val_max_tokens": 1000000,
48
+ "log_every": 20,
49
+ "save_every_steps": 500,
50
+ "compile": false
51
+ },
52
+ "model": {
53
+ "vocab_size": 16384,
54
+ "D_model": 512,
55
+ "N_ctx": 512,
56
+ "n_layers": 6,
57
+ "n_heads": 8,
58
+ "d_ff": 2048,
59
+ "dropout": 0.0,
60
+ "rope_theta": 10000.0,
61
+ "tie_embeddings": true,
62
+ "norm_eps": 1e-05,
63
+ "use_moe": false,
64
+ "n_experts": 4,
65
+ "n_shared_experts": 0,
66
+ "top_k": 1,
67
+ "expert_d_ff": null,
68
+ "moe_param_match": "total",
69
+ "normalize_topk": true,
70
+ "aux_loss_coef": 0.01,
71
+ "z_loss_coef": 0.001
72
+ },
73
+ "params": {
74
+ "total": 27269632,
75
+ "embedding": 8388608,
76
+ "non_embedding": 18881024,
77
+ "ffn_total": 12582912,
78
+ "ffn_active": 12582912,
79
+ "active": 27269632,
80
+ "active_non_embedding": 18881024
81
+ },
82
+ "tokens_seen": 41648128,
83
+ "dataset_tokens": 41663488,
84
+ "data_fraction": 1.0,
85
+ "steps": 2542,
86
+ "wall_clock_sec": 523.851163001993,
87
+ "tokens_per_sec": 79503.7425541452,
88
+ "peak_memory_mb": 6705.42626953125,
89
+ "optimizer_state_floats": 35679853,
90
+ "final_train_loss": 3.8838891983032227,
91
+ "test_loss": 3.9793649074968354,
92
+ "test_ppl": 53.483056750824076,
93
+ "diverged": false,
94
+ "device": "cuda",
95
+ "precision": "fp16",
96
+ "wandb_url": "https://wandb.ai/sanyamagrawal2005-iiit-hyderabad/anlp-assignment-2/runs/544bb65e",
97
+ "hf_url": null,
98
+ "tag": null
99
+ }
100
+ }
part2/adam_mini/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e3513b00cf2a98fa339b9af4796b79c1c9a5a9e46f77a3b467c930ec348223d
3
+ size 109083288
part2/adam_mini/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff