Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .DS_Store +0 -0
- final/.DS_Store +0 -0
- final/alignment/exp12-lr5e5-b02-b8a4-val1.3030.ckpt +3 -0
- final/pretraining/dotlm-pretrain-epoch=06-step=19000-val_loss=1.92_best.ckpt +3 -0
- final/reasoning/exp3-10ep-lr5e5-val1.6800_best.ckpt +3 -0
- final/sft/.DS_Store +0 -0
- final/sft/exp6-b16a4-lr3e4-step800-val1.9109.ckpt +3 -0
- final/tokenizer/tokenizer.json +0 -0
- v4_final/.DS_Store +0 -0
- v4_final/alignment/.DS_Store +0 -0
- v4_final/alignment/baseline-lr5e6-b01-6ep-val2.0183.ckpt +3 -0
- v4_final/alignment/exp1-10ep-lr5e6-val1.9883.ckpt +3 -0
- v4_final/alignment/exp10-lr3e5-b01-val1.3312.ckpt +3 -0
- v4_final/alignment/exp11-lr4e5-b02-b8a4-val1.3042.ckpt +3 -0
- v4_final/alignment/exp12-lr5e5-b02-b8a4-val1.3030.ckpt +3 -0
- v4_final/alignment/exp4-lr2e5-b02-10ep-val1.3341.ckpt +3 -0
- v4_final/alignment/exp5-lr2e5-b03-10ep-val1.3619.ckpt +3 -0
- v4_final/alignment/exp7-wsd-lr2e5-b02-val1.3422.ckpt +3 -0
- v4_final/alignment/exp9-lr3e5-5ep-val1.3608.ckpt +3 -0
- v4_final/pretrain/.DS_Store +0 -0
- v4_final/pretrain/autoresearch_best.yaml +95 -0
- v4_final/pretrain/dotlm-pretrain-epoch=06-step=18500-val_loss=1.93.ckpt +3 -0
- v4_final/pretrain/dotlm-pretrain-epoch=06-step=19000-val_loss=1.92_best.ckpt +3 -0
- v4_final/reasoning/.DS_Store +0 -0
- v4_final/reasoning/auto/exp1-10ep-lr1e5-val1.7672.ckpt +3 -0
- v4_final/reasoning/auto/exp2-10ep-lr3e5-val1.6900.ckpt +3 -0
- v4_final/reasoning/auto/exp3-10ep-lr5e5-val1.6800_best.ckpt +3 -0
- v4_final/reasoning/auto/exp4-10ep-lr1e4-wsd-val1.6700.ckpt +3 -0
- v4_final/reasoning/auto/exp5-20ep-lr5e5-val1.6800.ckpt +3 -0
- v4_final/reasoning/auto/exp7-10ep-lr2e5-wsd-val1.7200.ckpt +3 -0
- v4_final/sft/.DS_Store +0 -0
- v4_final/sft/auto/.DS_Store +0 -0
- v4_final/sft/auto/exp1-5ep-lr2e5-step1895-val1.9792.ckpt +3 -0
- v4_final/sft/auto/exp2_5ep_lr3e5_step1800_val1.9802.ckpt +3 -0
- v4_final/sft/auto/exp3-5ep-lr5e5-step1895-val1.9141.ckpt +3 -0
- v4_final/sft/auto/exp5-5ep-lr7e5-step1600-val1.8978.ckpt +3 -0
- v4_final/sft/auto/exp6-5ep-lr1e4-step1200-val1.8815.ckpt +3 -0
- v4_final/sft/auto/exp7-5ep-lr2e4-step800-val1.8621.ckpt +3 -0
- v4_final/sft/auto/exp8-5ep-lr3e4-step800-val1.8517.ckpt +3 -0
- v4_final/sft/auto_v2/.DS_Store +0 -0
- v4_final/sft/auto_v2/baseline-clean-lr3e4-step800-val1.920.ckpt +3 -0
- v4_final/sft/auto_v2/dotlm-sft-epoch=01-step=600-val_loss=1.94.ckpt +3 -0
- v4_final/sft/auto_v2/dotlm-sft-epoch=02-step=800-val_loss=1.92.ckpt +3 -0
- v4_final/sft/auto_v2/exp6-b16a4-lr3e4-step800-val1.9109.ckpt +3 -0
- v4_final/sft/auto_v2/exp7-b16a4-lr4e4-step800-val1.9176.ckpt +3 -0
- v4_final/sft/auto_v2/exp8-b16a4-lr5e4-step400-val1.9266.ckpt +3 -0
- v4_final/sft/v1/.DS_Store +0 -0
- v4_final/sft/v1/dotlm-sft-epoch=02-step=1000-val_loss=2.02.ckpt +3 -0
- v4_final/sft/v1/dotlm_165m.yaml +103 -0
- v4_final/sft/v2/.DS_Store +0 -0
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
final/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
final/alignment/exp12-lr5e5-b02-b8a4-val1.3030.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b2db47bca79f57bec8a609f55a50f2a67ca991f8840ac8e9d3ad9d92159e676
|
| 3 |
+
size 1963791595
|
final/pretraining/dotlm-pretrain-epoch=06-step=19000-val_loss=1.92_best.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db8018c5125cf46d879aa9a3c517a851f007b0527ca9423628a65d9197deda6a
|
| 3 |
+
size 1963791532
|
final/reasoning/exp3-10ep-lr5e5-val1.6800_best.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18a0aeaf6085451e61a739280488dfd885520fecca2c591ad2f513a879afd675
|
| 3 |
+
size 1963791773
|
final/sft/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
final/sft/exp6-b16a4-lr3e4-step800-val1.9109.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f02ee09a5a44ad8738536e32ca6811297e8c5a3885a7e90c6dbc930cfe903cea
|
| 3 |
+
size 1963792042
|
final/tokenizer/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v4_final/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/alignment/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/alignment/baseline-lr5e6-b01-6ep-val2.0183.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31be5cde42ba453a88fb4e70cfe3c7fdcd3fd66e27a3993cf633f923dd2ccc5c
|
| 3 |
+
size 1963792106
|
v4_final/alignment/exp1-10ep-lr5e6-val1.9883.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:364cbb0ba6b0fe8e183eb432f87daa4fbc8600488ed6148ca670a00e9bcdce68
|
| 3 |
+
size 1963792106
|
v4_final/alignment/exp10-lr3e5-b01-val1.3312.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:632d07d7f8f7384874c132d4162a438d2814e825a28d3b65597da8de2d29fb22
|
| 3 |
+
size 1963792106
|
v4_final/alignment/exp11-lr4e5-b02-b8a4-val1.3042.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3702d06fb77b92d25593b273e0101b630689f3f0dc541ead191692a579c6a47f
|
| 3 |
+
size 1963791978
|
v4_final/alignment/exp12-lr5e5-b02-b8a4-val1.3030.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b2db47bca79f57bec8a609f55a50f2a67ca991f8840ac8e9d3ad9d92159e676
|
| 3 |
+
size 1963791595
|
v4_final/alignment/exp4-lr2e5-b02-10ep-val1.3341.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59587c4433149e6865a7d7ddade8c430b40a0fe41dd7e370b634c330e47bdfb6
|
| 3 |
+
size 1963792106
|
v4_final/alignment/exp5-lr2e5-b03-10ep-val1.3619.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78c3a0474cc72177fbffe46ae6d2845e76ea21f3a7befefc78c405aef15af8c8
|
| 3 |
+
size 1963792106
|
v4_final/alignment/exp7-wsd-lr2e5-b02-val1.3422.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10f6a268e1a90f28b21a6f324886557f8323f1899993795d2783262daff42249
|
| 3 |
+
size 1963792106
|
v4_final/alignment/exp9-lr3e5-5ep-val1.3608.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4370a6b855c7c3d0eb604cd6cbdd1b8e025bdadd22539d0f7b5e173d25b33503
|
| 3 |
+
size 1963791595
|
v4_final/pretrain/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/pretrain/autoresearch_best.yaml
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ============================================================
|
| 2 |
+
# DotLM Autoresearch Best Config
|
| 3 |
+
# Optimized via ~50 experiments on H100 (autoresearch/mar21)
|
| 4 |
+
# Best 20-min val_loss at 24L: 2.628 (vs baseline 2.667)
|
| 5 |
+
# ============================================================
|
| 6 |
+
|
| 7 |
+
# Model Architecture
|
| 8 |
+
model:
|
| 9 |
+
vocab_size: 16384
|
| 10 |
+
d_model: 768
|
| 11 |
+
hidden_dim: 2048 # 2.67× d_model (standard SwiGLU ratio)
|
| 12 |
+
num_hidden_layers: 24 # full depth for reasoning capability
|
| 13 |
+
n_heads: 6 # head_dim=128; beats n_heads=12 at all tested depths
|
| 14 |
+
n_kv_heads: 2 # GQA with 3 groups; beats n_kv_heads=4 and 1
|
| 15 |
+
context_len: 4096
|
| 16 |
+
theta_base: 10000.0
|
| 17 |
+
norm_eps: 1.0e-06
|
| 18 |
+
initializer_range: 0.02
|
| 19 |
+
tie_word_embeddings: true
|
| 20 |
+
|
| 21 |
+
# Tokenizer Configuration
|
| 22 |
+
tokenizer:
|
| 23 |
+
model_type: "bpe"
|
| 24 |
+
vocab_size: 16384
|
| 25 |
+
min_frequency: 2
|
| 26 |
+
special_tokens: ["<pad>", "<unk>", "<mask>", "<endoftext>", "<|im_start|>", "<|im_end|>", "<think>", "</think>"]
|
| 27 |
+
dataset_path: "dataset/pretrain.json"
|
| 28 |
+
batch_size: 1024
|
| 29 |
+
save_path: "output/tokenizer"
|
| 30 |
+
|
| 31 |
+
# Common Training Defaults
|
| 32 |
+
trainer_defaults: &trainer_defaults
|
| 33 |
+
accelerator: "auto"
|
| 34 |
+
devices: "auto"
|
| 35 |
+
strategy: "auto"
|
| 36 |
+
precision: "bf16-mixed"
|
| 37 |
+
gradient_clip_val: 0.5 # beats 1.0 and 0.25
|
| 38 |
+
val_steps: 500
|
| 39 |
+
save_top_k: 3
|
| 40 |
+
use_wandb: true
|
| 41 |
+
wandb_project: "DotLM"
|
| 42 |
+
run_prefix: "dotlm"
|
| 43 |
+
max_seq_len: 768 # fits pretrain data (max ~1100 tokens); fine-tuning data maxes at ~500
|
| 44 |
+
val_split: 0.01
|
| 45 |
+
num_workers: 4
|
| 46 |
+
|
| 47 |
+
# Pretraining Configuration
|
| 48 |
+
# ~352k samples × ~700 avg tokens = ~246M tokens total
|
| 49 |
+
# 10 epochs × ~2750 steps/epoch = ~27,500 total optimizer steps
|
| 50 |
+
pretraining:
|
| 51 |
+
<<: *trainer_defaults
|
| 52 |
+
dataset_path: "dataset/pretrain.json"
|
| 53 |
+
batch_size: 64 # effective batch = 128 (64 × accum=2)
|
| 54 |
+
accumulate_grad_batches: 2
|
| 55 |
+
max_epochs: 10 # ~246M tokens × 10 = ~2.46B tokens ≈ Chinchilla optimal for 135M
|
| 56 |
+
max_steps: -1
|
| 57 |
+
learning_rate: 1.5e-03 # beats 1e-3, 1.25e-3, 2e-3
|
| 58 |
+
output_dir: "output/pretrain"
|
| 59 |
+
version: "v1"
|
| 60 |
+
scheduler_type: "wsd"
|
| 61 |
+
warmup_steps: 2750 # ~10% of 27,500 total steps
|
| 62 |
+
stable_steps: 20000 # ~73% of total; model stays at peak LR
|
| 63 |
+
decay_steps: 4750 # ~17% of total; cosine decay to min_lr
|
| 64 |
+
min_lr_factor: 0.1 # decays to 1.5e-4 at end
|
| 65 |
+
weight_decay: 0.01 # beats 0.001, 0.05, 0.1
|
| 66 |
+
|
| 67 |
+
# Supervised Fine-Tuning (SFT)
|
| 68 |
+
sft:
|
| 69 |
+
<<: *trainer_defaults
|
| 70 |
+
dataset_path: "dataset/sft.json"
|
| 71 |
+
batch_size: 128
|
| 72 |
+
max_epochs: 3
|
| 73 |
+
learning_rate: 2.0e-05
|
| 74 |
+
output_dir: "output/sft"
|
| 75 |
+
version: "v1"
|
| 76 |
+
|
| 77 |
+
# Alignment (DPO/RLHF)
|
| 78 |
+
alignment:
|
| 79 |
+
<<: *trainer_defaults
|
| 80 |
+
dataset_path: "dataset/alignment.json"
|
| 81 |
+
batch_size: 64
|
| 82 |
+
max_epochs: 1
|
| 83 |
+
learning_rate: 5.0e-06
|
| 84 |
+
output_dir: "output/alignment"
|
| 85 |
+
version: "v1"
|
| 86 |
+
|
| 87 |
+
# Reasoning Training
|
| 88 |
+
reasoning:
|
| 89 |
+
<<: *trainer_defaults
|
| 90 |
+
dataset_path: "dataset/reasoning.json"
|
| 91 |
+
batch_size: 64
|
| 92 |
+
max_epochs: 5
|
| 93 |
+
learning_rate: 1.0e-05
|
| 94 |
+
output_dir: "output/reasoning"
|
| 95 |
+
version: "v1"
|
v4_final/pretrain/dotlm-pretrain-epoch=06-step=18500-val_loss=1.93.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc33dfd165b29e349da855f5d75462f6fbf5a17fa3efb9f3899b556bc93823ba
|
| 3 |
+
size 1963791532
|
v4_final/pretrain/dotlm-pretrain-epoch=06-step=19000-val_loss=1.92_best.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db8018c5125cf46d879aa9a3c517a851f007b0527ca9423628a65d9197deda6a
|
| 3 |
+
size 1963791532
|
v4_final/reasoning/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/reasoning/auto/exp1-10ep-lr1e5-val1.7672.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af96c4f384b5b89b4090bb95b748d851e9e4e84d5d36bfd12f908f3a78051553
|
| 3 |
+
size 1963792106
|
v4_final/reasoning/auto/exp2-10ep-lr3e5-val1.6900.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7d2a2491199689da3fb430a5c1eb336a7631c8b23a6ad15cf6adc2719e7c085
|
| 3 |
+
size 1963792106
|
v4_final/reasoning/auto/exp3-10ep-lr5e5-val1.6800_best.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18a0aeaf6085451e61a739280488dfd885520fecca2c591ad2f513a879afd675
|
| 3 |
+
size 1963791773
|
v4_final/reasoning/auto/exp4-10ep-lr1e4-wsd-val1.6700.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a2f83ad2226d8b1e5d61ddfa29cf86112ffd7bce865cb4af26de54fda208b87
|
| 3 |
+
size 1963791773
|
v4_final/reasoning/auto/exp5-20ep-lr5e5-val1.6800.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22fe5ec28f337849e3f79b10353ba936def92be7cae30e176e325e913f3f31f5
|
| 3 |
+
size 1963791773
|
v4_final/reasoning/auto/exp7-10ep-lr2e5-wsd-val1.7200.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad40a0d34894e1dd1b4841bb8d0a2433141d8aad425ca9497459a7a3d95bbc2d
|
| 3 |
+
size 1963791901
|
v4_final/sft/.DS_Store
ADDED
|
Binary file (10.2 kB). View file
|
|
|
v4_final/sft/auto/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/sft/auto/exp1-5ep-lr2e5-step1895-val1.9792.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8f68428a9c722e5ea126908f8766fde3666553e4f518faddaae713d8a72011c
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto/exp2_5ep_lr3e5_step1800_val1.9802.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8f68428a9c722e5ea126908f8766fde3666553e4f518faddaae713d8a72011c
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto/exp3-5ep-lr5e5-step1895-val1.9141.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b73d44c720f75073811cb970f77943d9ffa18b621a99bb18dfffa3769b2feda2
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto/exp5-5ep-lr7e5-step1600-val1.8978.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:846aa4b8d2c79cfc8bf7efd1573dfbd3029dca7bad0405285f7d775ae3c05834
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto/exp6-5ep-lr1e4-step1200-val1.8815.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5fa8566db438b07395a7785f3dbad2a707c88f3561a8dd01a1ecf3481cb5e66
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto/exp7-5ep-lr2e4-step800-val1.8621.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7704612497c36019954574fe1f4dc0bf5242087bc0f609283821e4928c5a6484
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto/exp8-5ep-lr3e4-step800-val1.8517.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bc90789e6f8a2b2620e8c2a63147142046b2d59ed04ccc2f10b4b5260226310
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto_v2/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/sft/auto_v2/baseline-clean-lr3e4-step800-val1.920.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac84b10d679795c9e725ab9d587ebce82d5b2d05db7039bc70cad1edfe558277
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto_v2/dotlm-sft-epoch=01-step=600-val_loss=1.94.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af45c7dc3e27201daa819312af6c495594b599f890bec56c0000835b4132e8c6
|
| 3 |
+
size 1963791914
|
v4_final/sft/auto_v2/dotlm-sft-epoch=02-step=800-val_loss=1.92.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c35bc34e66e0e86f228fe156ed764fbc72f3132ed10d3635eda2e3fb0da48cb5
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto_v2/exp6-b16a4-lr3e4-step800-val1.9109.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f02ee09a5a44ad8738536e32ca6811297e8c5a3885a7e90c6dbc930cfe903cea
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto_v2/exp7-b16a4-lr4e4-step800-val1.9176.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34c95f7e48e5e25b047de802cd6f70cd2bf9f151cf66faf3556b3dda7497bc50
|
| 3 |
+
size 1963792042
|
v4_final/sft/auto_v2/exp8-b16a4-lr5e4-step400-val1.9266.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:328a5673827469c41998626674839f19a231d64bfe6f78c5c49d2ddeeac09539
|
| 3 |
+
size 1444776960
|
v4_final/sft/v1/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
v4_final/sft/v1/dotlm-sft-epoch=02-step=1000-val_loss=2.02.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa21dd6b65034c467bd8af61ab0a461592d81eb01b9a4b4a62d201a7a458716f
|
| 3 |
+
size 1963791340
|
v4_final/sft/v1/dotlm_165m.yaml
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ============================================================
|
| 2 |
+
# DotLM Autoresearch Best Config
|
| 3 |
+
# Optimized via ~50 experiments on H100 (autoresearch/mar21)
|
| 4 |
+
# Best 20-min val_loss at 24L: 2.628 (vs baseline 2.667)
|
| 5 |
+
# ============================================================
|
| 6 |
+
|
| 7 |
+
# Model Architecture
|
| 8 |
+
model:
|
| 9 |
+
vocab_size: 16384
|
| 10 |
+
d_model: 768
|
| 11 |
+
hidden_dim: 2048 # 2.67× d_model (standard SwiGLU ratio)
|
| 12 |
+
num_hidden_layers: 24 # full depth for reasoning capability
|
| 13 |
+
n_heads: 6 # head_dim=128; beats n_heads=12 at all tested depths
|
| 14 |
+
n_kv_heads: 2 # GQA with 3 groups; beats n_kv_heads=4 and 1
|
| 15 |
+
context_len: 4096
|
| 16 |
+
theta_base: 10000.0
|
| 17 |
+
norm_eps: 1.0e-06
|
| 18 |
+
initializer_range: 0.02
|
| 19 |
+
tie_word_embeddings: true
|
| 20 |
+
|
| 21 |
+
# Tokenizer Configuration
|
| 22 |
+
tokenizer:
|
| 23 |
+
model_type: "bpe"
|
| 24 |
+
vocab_size: 16384
|
| 25 |
+
min_frequency: 2
|
| 26 |
+
special_tokens: ["<pad>", "<unk>", "<mask>", "<endoftext>", "<|im_start|>", "<|im_end|>", "<think>", "</think>"]
|
| 27 |
+
dataset_path: "dataset/pretrain.json"
|
| 28 |
+
batch_size: 1024
|
| 29 |
+
save_path: "output/tokenizer"
|
| 30 |
+
|
| 31 |
+
# Common Training Defaults
|
| 32 |
+
trainer_defaults: &trainer_defaults
|
| 33 |
+
accelerator: "auto"
|
| 34 |
+
devices: "auto"
|
| 35 |
+
strategy: "auto"
|
| 36 |
+
precision: "bf16-mixed"
|
| 37 |
+
gradient_clip_val: 0.5 # beats 1.0 and 0.25
|
| 38 |
+
val_steps: 500
|
| 39 |
+
save_top_k: 3
|
| 40 |
+
use_wandb: true
|
| 41 |
+
wandb_project: "DotLM"
|
| 42 |
+
run_prefix: "dotlm_165m"
|
| 43 |
+
max_seq_len: 768 # fits pretrain data (max ~1100 tokens); fine-tuning data maxes at ~500
|
| 44 |
+
val_split: 0.01
|
| 45 |
+
num_workers: 4
|
| 46 |
+
|
| 47 |
+
# Pretraining Configuration
|
| 48 |
+
# ~352k samples × ~700 avg tokens = ~246M tokens total
|
| 49 |
+
# 10 epochs × ~2750 steps/epoch = ~27,500 total optimizer steps
|
| 50 |
+
pretraining:
|
| 51 |
+
<<: *trainer_defaults
|
| 52 |
+
dataset_path: "dataset/pretrain.json"
|
| 53 |
+
batch_size: 64 # effective batch = 128 (64 × accum=2)
|
| 54 |
+
accumulate_grad_batches: 2
|
| 55 |
+
max_epochs: 10 # ~246M tokens × 10 = ~2.46B tokens ≈ Chinchilla optimal for 135M
|
| 56 |
+
max_steps: -1
|
| 57 |
+
learning_rate: 1.5e-03 # beats 1e-3, 1.25e-3, 2e-3
|
| 58 |
+
output_dir: "output/pretrain"
|
| 59 |
+
version: "v1"
|
| 60 |
+
scheduler_type: "wsd"
|
| 61 |
+
warmup_steps: 2750 # ~10% of 27,500 total steps
|
| 62 |
+
stable_steps: 20000 # ~73% of total; model stays at peak LR
|
| 63 |
+
decay_steps: 4750 # ~17% of total; cosine decay to min_lr
|
| 64 |
+
min_lr_factor: 0.1 # decays to 1.5e-4 at end
|
| 65 |
+
weight_decay: 0.01 # beats 0.001, 0.05, 0.1
|
| 66 |
+
|
| 67 |
+
# Supervised Fine-Tuning (SFT)
|
| 68 |
+
# 25,700 samples × 0.99 / 32 ≈ 795 steps/epoch × 3 epochs ≈ 2,385 total steps
|
| 69 |
+
sft:
|
| 70 |
+
<<: *trainer_defaults
|
| 71 |
+
dataset_path: "dataset/sft.json"
|
| 72 |
+
pretrain_checkpoint: "output/pretraining/dotlm-pretrain-epoch=06-step=19000-val_loss=1.92_best.ckpt"
|
| 73 |
+
batch_size: 32
|
| 74 |
+
accumulate_grad_batches: 2 # effective batch = 64
|
| 75 |
+
max_epochs: 3
|
| 76 |
+
max_steps: -1
|
| 77 |
+
learning_rate: 2.0e-05
|
| 78 |
+
weight_decay: 0.01
|
| 79 |
+
scheduler_type: "cosine_with_warmup"
|
| 80 |
+
warmup_steps: 100 # ~5% of 2,385 total steps
|
| 81 |
+
val_steps: 200
|
| 82 |
+
output_dir: "output/sft"
|
| 83 |
+
version: "v1"
|
| 84 |
+
|
| 85 |
+
# Alignment (DPO/RLHF)
|
| 86 |
+
alignment:
|
| 87 |
+
<<: *trainer_defaults
|
| 88 |
+
dataset_path: "dataset/alignment.json"
|
| 89 |
+
batch_size: 64
|
| 90 |
+
max_epochs: 1
|
| 91 |
+
learning_rate: 5.0e-06
|
| 92 |
+
output_dir: "output/alignment"
|
| 93 |
+
version: "v1"
|
| 94 |
+
|
| 95 |
+
# Reasoning Training
|
| 96 |
+
reasoning:
|
| 97 |
+
<<: *trainer_defaults
|
| 98 |
+
dataset_path: "dataset/reasoning.json"
|
| 99 |
+
batch_size: 64
|
| 100 |
+
max_epochs: 5
|
| 101 |
+
learning_rate: 1.0e-05
|
| 102 |
+
output_dir: "output/reasoning"
|
| 103 |
+
version: "v1"
|
v4_final/sft/v2/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|