david-thrower commited on
Commit
067cbfb
·
verified ·
1 Parent(s): 8cbae8e

new datasets and SFT budget

Browse files
Files changed (1) hide show
  1. README.md +7 -12
README.md CHANGED
@@ -48,10 +48,8 @@ degenerate at that point.
48
  ```bash
49
  pip install torch==2.15.0 transformers==5.8.1 datasets==4.8.5 trackio==0.45.0
50
 
51
- # 1. one-time data (CPU box): builds the SFT mix (pushed) and the 2048 store
52
- # (the store compile is ~2-4 h single-core; skip it and the pretrain script will
53
- # compile it itself on first run)
54
- python prepare_data.py
55
 
56
  # 2. pretrain
57
  HF_TOKEN=hf_... python pretrain_helix.py
@@ -62,13 +60,10 @@ HF_TOKEN=hf_... python sft_helix.py
62
 
63
  ## Data
64
 
65
- - Pretrain: [HelixLM-medium-1500.0Mt-2988750pt-20260528](https://huggingface.co/datasets/david-thrower/HelixLM-medium-1500.0Mt-2988750pt-20260528) — measured at ~2.9B GPT-2 tokens (991/doc x 2.99M docs), not 1.5B, so 3B tokens is ~1.03 epochs.
66
- - Pre-tokenised 2048 windows: built by `prepare_data.py`. The full 2.9B-token compile is
67
- single-core and took longer than a 3-hour `cpu-basic` job window at 2 vCPU, so it is
68
- not published yet. Run `python prepare_data.py` on a box with time to spare (it uploads
69
- to `david-thrower/HelixLM-pretrain-1500Mt-2048-gpt2`), or let `pretrain_helix.py`
70
- compile it on first use (~1 h on the training box, ≈$2 of GPU time).
71
- - SFT mix: [HelixLM-s512-instruct-smollm-dolly-replay](https://huggingface.co/datasets/david-thrower/HelixLM-s512-instruct-smollm-dolly-replay) — smollm-instruct + Dolly + 8% replay, OpenHermes removed.
72
 
73
  ## What to know before running
74
 
@@ -80,4 +75,4 @@ HF_TOKEN=hf_... python sft_helix.py
80
  `False`. `grad_buffer_ratio` defaults to `1/e`; both set `0`.
81
  - The pretrain store is compiled once and reused. On a job with ephemeral disk, mount
82
  or download `HelixLM-pretrain-1500Mt-2048-gpt2` to skip the compile.
83
- - Dropping OpenHermes leaves ~4.6M tokens per SFT epoch; 8 epochs ≈ 37M tokens.
 
48
  ```bash
49
  pip install torch==2.15.0 transformers==5.8.1 datasets==4.8.5 trackio==0.45.0
50
 
51
+ # 1. one-time data (CPU box): builds and pushes both subsets
52
+ python prepare_data.py both
 
 
53
 
54
  # 2. pretrain
55
  HF_TOKEN=hf_... python pretrain_helix.py
 
60
 
61
  ## Data
62
 
63
+ - Pretrain: [HelixLM-fineweb-edu-dedup-99-openwebmath-1-3B](https://huggingface.co/datasets/david-thrower/HelixLM-fineweb-edu-dedup-99-openwebmath-1-3B) — 99% `fineweb-edu-dedup` + 1% `open-web-math`, ~3B tokens, built by `prepare_data.py`.
64
+ - Pretrain windows: `pretrain_helix.py` compiles them on first run (~1.8 h for 3B tokens on the training box, ≈$3) or reuses `./pretrain_store_2048`.
65
+ - SFT: [HelixLM-s2048-instruct-dolly-cosmopedia-v2](https://huggingface.co/datasets/david-thrower/HelixLM-s2048-instruct-dolly-cosmopedia-v2) — all Dolly + 90k long Cosmopedia-v2 pairs (1024–2048 tokens, same chat template).
66
+ - Earlier mix kept for reference: [HelixLM-s512-instruct-smollm-dolly-replay](https://huggingface.co/datasets/david-thrower/HelixLM-s512-instruct-smollm-dolly-replay).
 
 
 
67
 
68
  ## What to know before running
69
 
 
75
  `False`. `grad_buffer_ratio` defaults to `1/e`; both set `0`.
76
  - The pretrain store is compiled once and reused. On a job with ephemeral disk, mount
77
  or download `HelixLM-pretrain-1500Mt-2048-gpt2` to skip the compile.
78
+ - Dropping OpenHermes is solved by Cosmopedia: ~128M real SFT tokens per epoch, 2 epochs ≈ 2.4 tokens/param.