amritha27 commited on
Commit
4e4c8ba
·
verified ·
1 Parent(s): 26088ea

Upload folder using huggingface_hub

Browse files
checkpoints/ml_ft/best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d55bea85019a736867c9d6dec1e574e2f6cf8dc7ee02e1c5ebdf363583672795
3
+ size 300275107
checkpoints/ml_ft/metrics.csv ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ step,train_loss,val_loss,lr,grad_norm,tokens_seen,tokens_per_sec,seconds
2
+ 5,6.624818,,1.875000e-05,16.7608,40960,7986.7,5.1
3
+ 10,4.617649,,2.999740e-05,16.1937,81920,65785.2,5.8
4
+ 15,2.884963,,2.990642e-05,15.1092,122880,65662.2,6.4
5
+ 20,3.447682,,2.968634e-05,1.0078,163840,65911.4,7.0
6
+ 20,3.447682,2.27208,2.968634e-05,1.0078,163840,,7.9
7
+ 25,1.612348,,2.933926e-05,6.7886,204800,3695.8,18.1
8
+ 30,3.665396,,2.886854e-05,1.0,245760,54141.7,18.8
9
+ 35,0.989812,,2.827870e-05,4.1409,286720,65852.6,19.5
10
+ 40,0.815437,,2.757542e-05,3.5448,327680,65880.6,20.1
11
+ 40,0.815437,1.296969,2.757542e-05,3.5448,327680,,21.0
12
+ 45,3.793723,,2.676548e-05,0.949,368640,3638.8,31.3
13
+ 50,0.638848,,2.585668e-05,2.7939,409600,55255.9,32.1
14
+ 55,3.460296,,2.485777e-05,0.9532,450560,67264.9,32.7
15
+ 60,0.680249,,2.377837e-05,3.1607,491520,66905.0,33.3
16
+ 60,0.680249,1.292014,2.377837e-05,3.1607,491520,,34.2
17
+ 65,0.565782,,2.262887e-05,3.1313,532480,3669.6,44.5
18
+ 70,0.556027,,2.142035e-05,2.8778,573440,53439.0,45.2
19
+ 75,0.545732,,2.016445e-05,2.7374,614400,65946.3,45.8
20
+ 80,0.52089,,1.887325e-05,2.8871,655360,65596.3,46.5
21
+ 80,0.52089,1.293451,1.887325e-05,2.8871,655360,,47.4
22
+ 85,3.501952,,1.755920e-05,0.941,696320,7150.6,52.2
23
+ 90,0.535691,,1.623495e-05,2.4722,737280,53945.6,53.0
24
+ 95,0.462812,,1.491325e-05,2.4441,778240,65371.2,53.6
25
+ 100,3.483539,,1.360683e-05,0.9281,819200,54015.1,54.3
26
+ 100,3.483539,1.35735,1.360683e-05,0.9281,819200,,55.4
27
+ 105,3.631361,,1.232827e-05,0.9583,860160,8143.8,59.4
28
+ 110,0.528062,,1.108989e-05,2.433,901120,65785.1,60.0
29
+ 115,3.447574,,9.903613e-06,0.9542,942080,65588.1,60.6
30
+ 120,3.383074,,8.780863e-06,0.9125,983040,53903.6,61.4
31
+ 120,3.383074,1.335861,8.780863e-06,0.9125,983040,,62.4
32
+ 125,3.472713,,7.732451e-06,0.9235,1024000,6045.3,68.2
33
+ 130,3.61206,,6.768476e-06,0.9432,1064960,65990.5,68.8
34
+ 135,0.457596,,5.898221e-06,2.3851,1105920,66343.0,69.4
35
+ 140,3.530764,,5.130067e-06,0.9317,1146880,66356.3,70.0
36
+ 140,3.530764,1.292873,5.130067e-06,0.9317,1146880,,70.9
37
+ 145,0.498547,,4.471412e-06,2.7216,1187840,6851.5,76.0
38
+ 150,3.629462,,3.928598e-06,0.9386,1228800,54421.4,76.7
39
+ 155,3.534336,,3.506854e-06,0.9032,1269760,66212.9,77.4
40
+ 160,3.717759,,3.210241e-06,0.9065,1310720,66249.1,78.0
41
+ 160,3.717759,1.292383,3.210241e-06,0.9065,1310720,,78.8
42
+ 165,3.449195,,3.041616e-06,0.953,1351680,6322.8,84.5
43
+ 168,3.456424,1.29666,3.002602e-06,0.9278,1376256,,85.8
checkpoints/ml_ft/run_config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "phase": "3.1 reasoning finetuning",
3
+ "model": {
4
+ "name": "model_h",
5
+ "lang": "ml",
6
+ "vocab_size": 6000,
7
+ "d_model": 480,
8
+ "n_layers": 8,
9
+ "n_heads": 8,
10
+ "ffn_mult": 4,
11
+ "max_seq_len": 512,
12
+ "dropout": 0.1,
13
+ "tie_embeddings": true,
14
+ "rope_theta": 10000.0,
15
+ "init_std": 0.02,
16
+ "_derived": {
17
+ "d_head": 60,
18
+ "d_ff": 1920,
19
+ "n_params": {
20
+ "embedding": 2880000,
21
+ "attention": 7372800,
22
+ "feed_forward": 14745600,
23
+ "norms": 16320,
24
+ "lm_head": 0,
25
+ "total": 25014720
26
+ }
27
+ }
28
+ },
29
+ "finetune": {
30
+ "name": "model_h_ft",
31
+ "lang": "ml",
32
+ "micro_batch_size": 16,
33
+ "block_size": 512,
34
+ "grad_accum_steps": 1,
35
+ "_batch_note": "16 windows x 512 tokens per step. Pretraining used 8-way accumulation for a 65,536-token batch; that is far too coarse here, where the whole finetuning set packs into ~450 windows and would give only 3 optimizer steps per epoch.",
36
+ "epochs": 3.0,
37
+ "_steps_note": "total_steps is derived from the packed window count, the batch geometry and replay_ratio, so the model sees the reasoning data `epochs` times regardless of how many batches replay consumes.",
38
+ "max_lr": 3e-05,
39
+ "min_lr": 3e-06,
40
+ "warmup_frac": 0.05,
41
+ "_lr_note": "3e-5, twenty times below pretraining's 6e-4. Finetuning adapts weights that already encode the language; a pretraining-scale learning rate would overwrite them in the first few steps, which is catastrophic forgetting by another name.",
42
+ "replay_ratio": 0.5,
43
+ "_replay_note": "Half of all batches are drawn from the original 500M-token pretraining corpus. Finetuning 25M parameters on 6,000 templated examples drives training loss to zero and perplexity to 1 within two epochs; the pretraining corpus cannot be memorised, so the mixed loss stays informative and general language modelling is rehearsed rather than overwritten. Measured by LM perplexity on the Phase 2 test split, before and after.",
44
+ "weight_decay": 0.1,
45
+ "beta1": 0.9,
46
+ "beta2": 0.95,
47
+ "eps": 1e-08,
48
+ "grad_clip": 1.0,
49
+ "dropout_note": "dropout stays at the model config's 0.1; it is a regulariser, and the finetuning set is small enough to need it more, not less",
50
+ "amp": true,
51
+ "_amp_note": "fp16 autocast with GradScaler, as in pretraining. NOT bf16: Ada's SM 6.1/7.5 cards emulate it in software.",
52
+ "log_every": 5,
53
+ "eval_every": 20,
54
+ "eval_batches": 20,
55
+ "ckpt_every": 100,
56
+ "keep_last": 3,
57
+ "seed": 20260817
58
+ },
59
+ "derived": {
60
+ "total_steps": 168,
61
+ "warmup_steps": 8,
62
+ "windows_per_step": 16,
63
+ "sft_train_windows": 449,
64
+ "sft_val_windows": 67,
65
+ "sft_epochs": 3.0,
66
+ "replay_ratio": 0.5,
67
+ "n_parameters": 25014720
68
+ },
69
+ "init_from": "/home2/amritha.vinod/runs/model_h/best.pt",
70
+ "init_from_step": 7631,
71
+ "tokenizer": "ml_sp_6000.model",
72
+ "tokenizer_sha256": "0476507c37b6344a8c31b197ba3f361e8227321dcb17f2104a7bce14c0d4989f",
73
+ "tokenizer_matches_pretrain": true,
74
+ "device": "NVIDIA GeForce RTX 2080 Ti"
75
+ }