Add Assignment 1 checkpoints and tokenizers
Browse files- README.md +44 -0
- checkpoints/d2_mid/meta_000317.json +44 -0
- checkpoints/d2_mid/model_000317.pt +3 -0
- checkpoints/d2_mid/optim_000317_rank0.pt +3 -0
- checkpoints/d2_pretraining/meta_000420.json +59 -0
- checkpoints/d2_pretraining/model_000420.pt +3 -0
- checkpoints/d2_pretraining/optim_000420_rank0.pt +3 -0
- checkpoints/d2_sft/meta_000500.json +44 -0
- checkpoints/d2_sft/model_000500.pt +3 -0
- checkpoints/d2_sft/optim_000500_rank0.pt +3 -0
- checkpoints/d4_mid/meta_000317.json +44 -0
- checkpoints/d4_mid/model_000317.pt +3 -0
- checkpoints/d4_mid/optim_000317_rank0.pt +3 -0
- checkpoints/d4_pretraining/meta_000528.json +59 -0
- checkpoints/d4_pretraining/model_000528.pt +3 -0
- checkpoints/d4_pretraining/optim_000528_rank0.pt +3 -0
- checkpoints/d4_sft/meta_000500.json +44 -0
- checkpoints/d4_sft/model_000500.pt +3 -0
- checkpoints/d4_sft/optim_000500_rank0.pt +3 -0
- tokenizer/token_bytes.pt +3 -0
- tokenizer/tokenizer.pkl +3 -0
- tokenizer_8192/token_bytes.pt +3 -0
- tokenizer_8192/tokenizer.pkl +3 -0
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- nanochat
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Small language models trained with nanochat (Assignment 1, Agentic LLMs, Leiden University)
|
| 9 |
+
|
| 10 |
+
Small language models trained with [nanochat](https://github.com/karpathy/nanochat) on one NVIDIA RTX 2070 SUPER
|
| 11 |
+
(8 GB), for Assignment 1 of the Agentic LLMs course. Authors: Kevin Bretz and An Nguyen.
|
| 12 |
+
Code, setup and all commands: https://github.com/kevin-bretz/Small-Language-Model
|
| 13 |
+
|
| 14 |
+
| Folder | Model | Training |
|
| 15 |
+
|---|---|---|
|
| 16 |
+
| `checkpoints/d2_pretraining` | depth 2, 13.0M parameters | pre-training on ClimbMix, 420 steps, 55M tokens |
|
| 17 |
+
| `checkpoints/d4_pretraining` | depth 4, 36.7M parameters | pre-training on ClimbMix, 528 steps, 138M tokens |
|
| 18 |
+
| `checkpoints/d2_mid`, `checkpoints/d4_mid` | | stage 1, mid-training on MMLU + GSM8K, 310 steps |
|
| 19 |
+
| `checkpoints/d2_sft`, `checkpoints/d4_sft` | | stage 2, SFT on SmolTalk, 500 steps |
|
| 20 |
+
| `tokenizer` | BPE tokenizer with 32,768 tokens, used by all models | 500M characters of ClimbMix |
|
| 21 |
+
| `tokenizer_8192` | BPE tokenizer with 8,192 tokens (tokenizer comparison only) | 500M characters of ClimbMix |
|
| 22 |
+
|
| 23 |
+
Every checkpoint folder contains the weights (`model_*.pt`), nanochat's metadata (`meta_*.json`) and the optimizer
|
| 24 |
+
state (`optim_*_rank0.pt`).
|
| 25 |
+
|
| 26 |
+
## Using the checkpoints
|
| 27 |
+
|
| 28 |
+
1. Set up the code and the virtual environment as described in the README of our
|
| 29 |
+
[GitHub repository](https://github.com/kevin-bretz/Small-Language-Model).
|
| 30 |
+
2. Copy the folders of this repository into nanochat's cache folder `~/.cache/nanochat/`:
|
| 31 |
+
|
| 32 |
+
| This repository | `~/.cache/nanochat/` |
|
| 33 |
+
|---|---|
|
| 34 |
+
| `checkpoints/d2_pretraining`, `checkpoints/d4_pretraining` | `base_checkpoints/d2`, `base_checkpoints/d4` |
|
| 35 |
+
| `checkpoints/d2_mid`, `d2_sft`, `d4_mid`, `d4_sft` | `chatsft_checkpoints/d2_mid`, `d2_sft`, `d4_mid`, `d4_sft` |
|
| 36 |
+
| `tokenizer` | `tokenizer` and `tokenizer_32768` (the same files) |
|
| 37 |
+
| `tokenizer_8192` | `tokenizer_8192` |
|
| 38 |
+
|
| 39 |
+
3. From the repository root, run for example:
|
| 40 |
+
|
| 41 |
+
python -m assignment.task3 eval d4 # ARC-Easy, ARC-Challenge and GSM8K after each training stage
|
| 42 |
+
python -m assignment.task4 d4_sft # our temperature study through nanochat's scripts/chat_cli.py
|
| 43 |
+
|
| 44 |
+
or chat with a model yourself: `python -m scripts.chat_cli -i sft -g d4_sft`
|
checkpoints/d2_mid/meta_000317.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 317,
|
| 3 |
+
"val_bpb": 0.9011348086553114,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 2,
|
| 8 |
+
"n_head": 1,
|
| 9 |
+
"n_kv_head": 1,
|
| 10 |
+
"n_embd": 128,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "dummy",
|
| 15 |
+
"device_type": "",
|
| 16 |
+
"model_tag": "d2",
|
| 17 |
+
"model_step": null,
|
| 18 |
+
"init_source": "base",
|
| 19 |
+
"output_tag": "d2_mid",
|
| 20 |
+
"stage": "mid",
|
| 21 |
+
"load_optimizer": 1,
|
| 22 |
+
"num_iterations": -1,
|
| 23 |
+
"max_seq_len": null,
|
| 24 |
+
"device_batch_size": 4,
|
| 25 |
+
"total_batch_size": 131072,
|
| 26 |
+
"embedding_lr": null,
|
| 27 |
+
"unembedding_lr": null,
|
| 28 |
+
"matrix_lr": null,
|
| 29 |
+
"init_lr_frac": 0.8,
|
| 30 |
+
"warmup_ratio": 0.0,
|
| 31 |
+
"warmdown_ratio": 0.5,
|
| 32 |
+
"final_lr_frac": 0.0,
|
| 33 |
+
"eval_every": 50,
|
| 34 |
+
"eval_tokens": 1048576,
|
| 35 |
+
"chatcore_every": -1,
|
| 36 |
+
"chatcore_max_cat": -1,
|
| 37 |
+
"chatcore_max_sample": 24,
|
| 38 |
+
"mmlu_epochs": 1,
|
| 39 |
+
"gsm8k_epochs": 2
|
| 40 |
+
},
|
| 41 |
+
"device_batch_size": 4,
|
| 42 |
+
"max_seq_len": 2048,
|
| 43 |
+
"total_batch_size": 131072
|
| 44 |
+
}
|
checkpoints/d2_mid/model_000317.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:859b963f15e72dbd4829a6080f60956a28ba25cfc9d8a639cfc28d554484cffd
|
| 3 |
+
size 51913067
|
checkpoints/d2_mid/optim_000317_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d7af769063cc781828ea8d60f5707be8550806e6be4a2237ea8d45f367b8fd6
|
| 3 |
+
size 102257573
|
checkpoints/d2_pretraining/meta_000420.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 420,
|
| 3 |
+
"val_bpb": 1.345103240340398,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 2,
|
| 8 |
+
"n_head": 1,
|
| 9 |
+
"n_kv_head": 1,
|
| 10 |
+
"n_embd": 128,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "dummy",
|
| 15 |
+
"log_every": 1,
|
| 16 |
+
"device_type": "",
|
| 17 |
+
"fp8": false,
|
| 18 |
+
"fp8_recipe": "tensorwise",
|
| 19 |
+
"depth": 2,
|
| 20 |
+
"aspect_ratio": 64,
|
| 21 |
+
"head_dim": 128,
|
| 22 |
+
"max_seq_len": 2048,
|
| 23 |
+
"window_pattern": "SSSL",
|
| 24 |
+
"num_iterations": -1,
|
| 25 |
+
"target_flops": -1.0,
|
| 26 |
+
"target_param_data_ratio": 12,
|
| 27 |
+
"device_batch_size": 4,
|
| 28 |
+
"total_batch_size": -1,
|
| 29 |
+
"embedding_lr": 0.3,
|
| 30 |
+
"unembedding_lr": 0.008,
|
| 31 |
+
"weight_decay": 0.28,
|
| 32 |
+
"matrix_lr": 0.02,
|
| 33 |
+
"scalar_lr": 0.5,
|
| 34 |
+
"warmup_steps": 40,
|
| 35 |
+
"warmdown_ratio": 0.65,
|
| 36 |
+
"final_lr_frac": 0.05,
|
| 37 |
+
"resume_from_step": -1,
|
| 38 |
+
"eval_every": 25,
|
| 39 |
+
"eval_tokens": 2097152,
|
| 40 |
+
"core_metric_every": -1,
|
| 41 |
+
"core_metric_max_per_task": 500,
|
| 42 |
+
"sample_every": 100,
|
| 43 |
+
"save_every": -1,
|
| 44 |
+
"model_tag": "d2"
|
| 45 |
+
},
|
| 46 |
+
"device_batch_size": 4,
|
| 47 |
+
"max_seq_len": 2048,
|
| 48 |
+
"total_batch_size": 131072,
|
| 49 |
+
"dataloader_state_dict": {
|
| 50 |
+
"pq_idx": 1,
|
| 51 |
+
"rg_idx": 21,
|
| 52 |
+
"epoch": 1
|
| 53 |
+
},
|
| 54 |
+
"loop_state": {
|
| 55 |
+
"min_val_bpb": 1.345103240340398,
|
| 56 |
+
"smooth_train_loss": 4.461273705946301,
|
| 57 |
+
"total_training_time": 762.8658761978149
|
| 58 |
+
}
|
| 59 |
+
}
|
checkpoints/d2_pretraining/model_000420.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e417fa003aa66fe678402304e7d5dc36c53d7c87552219336458456c4c5269a4
|
| 3 |
+
size 51913067
|
checkpoints/d2_pretraining/optim_000420_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b49ac8c964fda7868ce1efa426fea3ba46bd89f7d2551791ef66afc9f55a07b
|
| 3 |
+
size 102257573
|
checkpoints/d2_sft/meta_000500.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 500,
|
| 3 |
+
"val_bpb": 0.8444377846635641,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 2,
|
| 8 |
+
"n_head": 1,
|
| 9 |
+
"n_kv_head": 1,
|
| 10 |
+
"n_embd": 128,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "dummy",
|
| 15 |
+
"device_type": "",
|
| 16 |
+
"model_tag": "d2_mid",
|
| 17 |
+
"model_step": null,
|
| 18 |
+
"init_source": "sft",
|
| 19 |
+
"output_tag": "d2_sft",
|
| 20 |
+
"stage": "sft",
|
| 21 |
+
"load_optimizer": 1,
|
| 22 |
+
"num_iterations": 500,
|
| 23 |
+
"max_seq_len": null,
|
| 24 |
+
"device_batch_size": 4,
|
| 25 |
+
"total_batch_size": 131072,
|
| 26 |
+
"embedding_lr": null,
|
| 27 |
+
"unembedding_lr": null,
|
| 28 |
+
"matrix_lr": null,
|
| 29 |
+
"init_lr_frac": 0.8,
|
| 30 |
+
"warmup_ratio": 0.0,
|
| 31 |
+
"warmdown_ratio": 0.5,
|
| 32 |
+
"final_lr_frac": 0.0,
|
| 33 |
+
"eval_every": 50,
|
| 34 |
+
"eval_tokens": 1048576,
|
| 35 |
+
"chatcore_every": -1,
|
| 36 |
+
"chatcore_max_cat": -1,
|
| 37 |
+
"chatcore_max_sample": 24,
|
| 38 |
+
"mmlu_epochs": 3,
|
| 39 |
+
"gsm8k_epochs": 4
|
| 40 |
+
},
|
| 41 |
+
"device_batch_size": 4,
|
| 42 |
+
"max_seq_len": 2048,
|
| 43 |
+
"total_batch_size": 131072
|
| 44 |
+
}
|
checkpoints/d2_sft/model_000500.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fbebc3d92a4c924ff0bd51980253c45460f7952ba9c787ae7e47d5b5063daec
|
| 3 |
+
size 51913067
|
checkpoints/d2_sft/optim_000500_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c7cad66d9d11ec4695f73a161c68cfd8c3dc29ec0a4846e310644802ee46f42
|
| 3 |
+
size 102257573
|
checkpoints/d4_mid/meta_000317.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 317,
|
| 3 |
+
"val_bpb": 0.7525982719472941,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 4,
|
| 8 |
+
"n_head": 2,
|
| 9 |
+
"n_kv_head": 2,
|
| 10 |
+
"n_embd": 256,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "dummy",
|
| 15 |
+
"device_type": "",
|
| 16 |
+
"model_tag": "d4",
|
| 17 |
+
"model_step": null,
|
| 18 |
+
"init_source": "base",
|
| 19 |
+
"output_tag": "d4_mid",
|
| 20 |
+
"stage": "mid",
|
| 21 |
+
"load_optimizer": 1,
|
| 22 |
+
"num_iterations": -1,
|
| 23 |
+
"max_seq_len": null,
|
| 24 |
+
"device_batch_size": 4,
|
| 25 |
+
"total_batch_size": 131072,
|
| 26 |
+
"embedding_lr": null,
|
| 27 |
+
"unembedding_lr": null,
|
| 28 |
+
"matrix_lr": null,
|
| 29 |
+
"init_lr_frac": 0.8,
|
| 30 |
+
"warmup_ratio": 0.0,
|
| 31 |
+
"warmdown_ratio": 0.5,
|
| 32 |
+
"final_lr_frac": 0.0,
|
| 33 |
+
"eval_every": 50,
|
| 34 |
+
"eval_tokens": 1048576,
|
| 35 |
+
"chatcore_every": -1,
|
| 36 |
+
"chatcore_max_cat": -1,
|
| 37 |
+
"chatcore_max_sample": 24,
|
| 38 |
+
"mmlu_epochs": 1,
|
| 39 |
+
"gsm8k_epochs": 2
|
| 40 |
+
},
|
| 41 |
+
"device_batch_size": 4,
|
| 42 |
+
"max_seq_len": 2048,
|
| 43 |
+
"total_batch_size": 131072
|
| 44 |
+
}
|
checkpoints/d4_mid/model_000317.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2adcd80dfdcd1c20a92962392f3d68ba5de078c6e207b14cb104a506ca4dedc
|
| 3 |
+
size 146814983
|
checkpoints/d4_mid/optim_000317_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c15fd59995137fade27ac31f9f0c55e221758413082c4aaebd256e713664877a
|
| 3 |
+
size 281077621
|
checkpoints/d4_pretraining/meta_000528.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 528,
|
| 3 |
+
"val_bpb": 1.1338260507177003,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 4,
|
| 8 |
+
"n_head": 2,
|
| 9 |
+
"n_kv_head": 2,
|
| 10 |
+
"n_embd": 256,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "dummy",
|
| 15 |
+
"log_every": 1,
|
| 16 |
+
"device_type": "",
|
| 17 |
+
"fp8": false,
|
| 18 |
+
"fp8_recipe": "tensorwise",
|
| 19 |
+
"depth": 4,
|
| 20 |
+
"aspect_ratio": 64,
|
| 21 |
+
"head_dim": 128,
|
| 22 |
+
"max_seq_len": 2048,
|
| 23 |
+
"window_pattern": "SSSL",
|
| 24 |
+
"num_iterations": -1,
|
| 25 |
+
"target_flops": -1.0,
|
| 26 |
+
"target_param_data_ratio": 12,
|
| 27 |
+
"device_batch_size": 4,
|
| 28 |
+
"total_batch_size": -1,
|
| 29 |
+
"embedding_lr": 0.3,
|
| 30 |
+
"unembedding_lr": 0.008,
|
| 31 |
+
"weight_decay": 0.28,
|
| 32 |
+
"matrix_lr": 0.02,
|
| 33 |
+
"scalar_lr": 0.5,
|
| 34 |
+
"warmup_steps": 40,
|
| 35 |
+
"warmdown_ratio": 0.65,
|
| 36 |
+
"final_lr_frac": 0.05,
|
| 37 |
+
"resume_from_step": -1,
|
| 38 |
+
"eval_every": 25,
|
| 39 |
+
"eval_tokens": 2097152,
|
| 40 |
+
"core_metric_every": -1,
|
| 41 |
+
"core_metric_max_per_task": 500,
|
| 42 |
+
"sample_every": 100,
|
| 43 |
+
"save_every": -1,
|
| 44 |
+
"model_tag": "d4"
|
| 45 |
+
},
|
| 46 |
+
"device_batch_size": 4,
|
| 47 |
+
"max_seq_len": 2048,
|
| 48 |
+
"total_batch_size": 262144,
|
| 49 |
+
"dataloader_state_dict": {
|
| 50 |
+
"pq_idx": 3,
|
| 51 |
+
"rg_idx": 8,
|
| 52 |
+
"epoch": 1
|
| 53 |
+
},
|
| 54 |
+
"loop_state": {
|
| 55 |
+
"min_val_bpb": 1.1338260507177003,
|
| 56 |
+
"smooth_train_loss": 3.7406013616836242,
|
| 57 |
+
"total_training_time": 3921.9506719112396
|
| 58 |
+
}
|
| 59 |
+
}
|
checkpoints/d4_pretraining/model_000528.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0778c7dceae004d8f87bf2f001467f768d14446a5bc42b457eeba838fd93258b
|
| 3 |
+
size 146814983
|
checkpoints/d4_pretraining/optim_000528_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2927d17ad4714eacdec51358f5040bfa4bc5e499cb04b1d6c3a8463097aa73b0
|
| 3 |
+
size 281077621
|
checkpoints/d4_sft/meta_000500.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 500,
|
| 3 |
+
"val_bpb": 0.6572902281854016,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 4,
|
| 8 |
+
"n_head": 2,
|
| 9 |
+
"n_kv_head": 2,
|
| 10 |
+
"n_embd": 256,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "dummy",
|
| 15 |
+
"device_type": "",
|
| 16 |
+
"model_tag": "d4_mid",
|
| 17 |
+
"model_step": null,
|
| 18 |
+
"init_source": "sft",
|
| 19 |
+
"output_tag": "d4_sft",
|
| 20 |
+
"stage": "sft",
|
| 21 |
+
"load_optimizer": 1,
|
| 22 |
+
"num_iterations": 500,
|
| 23 |
+
"max_seq_len": null,
|
| 24 |
+
"device_batch_size": 4,
|
| 25 |
+
"total_batch_size": 131072,
|
| 26 |
+
"embedding_lr": null,
|
| 27 |
+
"unembedding_lr": null,
|
| 28 |
+
"matrix_lr": null,
|
| 29 |
+
"init_lr_frac": 0.8,
|
| 30 |
+
"warmup_ratio": 0.0,
|
| 31 |
+
"warmdown_ratio": 0.5,
|
| 32 |
+
"final_lr_frac": 0.0,
|
| 33 |
+
"eval_every": 50,
|
| 34 |
+
"eval_tokens": 1048576,
|
| 35 |
+
"chatcore_every": -1,
|
| 36 |
+
"chatcore_max_cat": -1,
|
| 37 |
+
"chatcore_max_sample": 24,
|
| 38 |
+
"mmlu_epochs": 3,
|
| 39 |
+
"gsm8k_epochs": 4
|
| 40 |
+
},
|
| 41 |
+
"device_batch_size": 4,
|
| 42 |
+
"max_seq_len": 2048,
|
| 43 |
+
"total_batch_size": 131072
|
| 44 |
+
}
|
checkpoints/d4_sft/model_000500.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fcfeb70bf541f7347b2943583e3ee4e6b23098142bff38f43283f9db15b82d1
|
| 3 |
+
size 146814983
|
checkpoints/d4_sft/optim_000500_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9cb281ad7d3c5648c0c34f82ee494e4875d12f5db90eb619ffedd7e4af09d73
|
| 3 |
+
size 281077621
|
tokenizer/token_bytes.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6a3ad469e5b2ce0d13064dd170474e5254ed37ad58095cb81ca1d75f322b6f7
|
| 3 |
+
size 132649
|
tokenizer/tokenizer.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af3e0d97ece4abbe45258faa1a593d78c3b8392ec1a90ac74c41a545539a7f2c
|
| 3 |
+
size 411752
|
tokenizer_8192/token_bytes.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe0758bb2fa5232984767acd4a9ba3473f366fe1c1f523fec86cb7d49075d722
|
| 3 |
+
size 34345
|
tokenizer_8192/tokenizer.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e72e908d3e1de0c9097dab6428e7499cd6b811215c480c23c5f4962ba1de6324
|
| 3 |
+
size 94642
|