diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-02-10 09:50:33 -0600 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-02-10 09:50:33 -0600 |
| commit | 039c12d3cf7178db6a7d80b02cf022d67231014e (patch) | |
| tree | b3104310bfaced0d992729f59f1a7ef2e769c6bd /configs/s2_gradient_flow.yaml | |
| parent | 80579d6cc254d337a23e71404ae7ecab1849d1e5 (diff) | |
Add auto-resume checkpointing, S1/S2 configs, and experiment results
- Auto-resume: find latest checkpoint in save_dir on startup
- SIGUSR1 handler: save checkpoint before SLURM timeout
- S1 config (constant tau=5, identity init verification)
- S2 config (constant tau=2, gradient flow check)
- Experiment results tracker with S0/S1 data
- Speed estimates and experiment plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'configs/s2_gradient_flow.yaml')
| -rw-r--r-- | configs/s2_gradient_flow.yaml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/configs/s2_gradient_flow.yaml b/configs/s2_gradient_flow.yaml new file mode 100644 index 0000000..fcd2724 --- /dev/null +++ b/configs/s2_gradient_flow.yaml @@ -0,0 +1,52 @@ +# S2 — Gradient flow check (constant tau=2, ~50M tokens) +# Purpose: Lower tau gives sharper gates. Does predictor learn useful topology? +# Any NLL drop below baseline (2.4569) = gradient flows correctly. +# Run: python scripts/train.py --config configs/s2_gradient_flow.yaml + +# Model +olmo_model_id: "allenai/OLMo-2-0425-1B" +qwen_model_id: "Qwen/Qwen3-Embedding-0.6B" + +# Predictor +predictor_hidden_dim: 1024 +predictor_rank: 32 +cascading_gate_k: 5.0 +input_norm: "none" + +# Data +dataset: "allenai/dolma" +dataset_name: "v1_7" +seq_len: 1024 +batch_size: 4 +micro_batch_size: 2 +qwen_input_prefix: "" + +# Eval +eval_skip: 10000 +eval_size: 50 + +# Training — ~50M tokens = 12500 steps @ batch=4, seq=1024 +total_steps: 12500 +lr: 3e-4 +weight_decay: 0.01 +optimizer: "adamw" + +# Schedules — constant tau=2 (sharper gates than S1), no sparsity +tau_init: 2.0 +tau_final: 2.0 +tau_schedule: "cosine" +lambda_max: 0.0 +lambda_warmup_frac: 0.2 + +# Logging +wandb_project: "dagformer" +wandb_run_name: "s2-gradient-flow" +log_every: 10 +eval_every: 500 + +# Checkpointing +save_every: 2500 +save_dir: "checkpoints/s2/" + +# Hardware +num_gpus: 1 |
