Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ OpenAI competition to train the best LM that fits in 16MB.
Baseline: train_gpt_mlx.py (stock), my version: train_gpt_mlx_kl.py

## Commands
- Smoke test: RUN_ID=test ITERATIONS=100 TRAIN_BATCH_TOKENS=8192 VAL_LOSS_EVERY=0 VAL_BATCH_SIZE=8192 WARMUP_STEPS=3 python3 train_gpt_mlx_kl.py
- Must activate venv first: source ~/pg_env/bin/activate (venv is at ~/pg_env, NOT .venv)
- Smoke test (baseline): `RUN_ID=test ITERATIONS=100 TRAIN_BATCH_TOKENS=8192 VAL_LOSS_EVERY=0 VAL_BATCH_SIZE=8192 WARMUP_STEPS=3 python3 train_gpt_mlx_kl.py`
- Smoke test (moonshot): `RUN_ID=test ITERATIONS=100 TRAIN_BATCH_TOKENS=8192 VAL_LOSS_EVERY=0 VAL_BATCH_SIZE=8192 WARMUP_STEPS=3 ENGRAM_LITE_ENABLED=1 COMPLEMENT_ALPHA=0.5 NGRAM_MIXER_ENABLED=1 python3 train_gpt_mlx_kl.py`
- Must activate venv first: `source ~/pg_env/bin/activate` (venv is at ~/pg_env, NOT .venv)
- Data is in ./data/datasets/fineweb10B_sp1024/
- Full moonshot run (8×H100): `ENGRAM_LITE_ENABLED=1 COMPLEMENT_ALPHA=0.5 NGRAM_MIXER_ENABLED=1 NGRAM_ALPHA=0.25 NGRAM_MAX_ORDER=4 python3 train_gpt_mlx_kl.py`

## Key metrics
- train_loss: lower is better, compare at same step count
Expand Down
Loading