new datasets and SFT budget
Browse files
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
|
| 52 |
-
|
| 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-
|
| 66 |
-
-
|
| 67 |
-
|
| 68 |
-
|
| 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
|
|
|
|
| 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.
|