Buckets:
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| configs | 7 items | ||
| runs | 13 items | ||
| README.md | 2.46 kB xet | ced07a3a | |
| __init__.py | 73 Bytes xet | 122be546 | |
| attention.py | 5.55 kB xet | a39e1317 | |
| budget.py | 1.68 kB xet | ca1d93b2 | |
| entry_spec.py | 209 Bytes xet | e6af8ec3 | |
| run.sh | 279 Bytes xet | ffac8abd | |
| run_pipeline.sh | 1.26 kB xet | 016e805c | |
| run_pipeline_4gpu.sh | 1.26 kB xet | 69fefdb1 | |
| spec.py | 2.48 kB xet | abd581e3 | |
| test_config.py | 4.51 kB xet | 7d812856 | |
| train.py | 3.09 kB xet | 1520d4b7 |
kvpath2-rolling-head64-roll16
Isolated 12-layer rolling experiment with 64-D Q/K/V heads assembled from a
four-state FIFO of 16-D raw K/V states. Layer 1 creates four states; each later
layer creates one state. Every layer concatenates its four active states, then
applies one standard split-half 64-D RoPE to Q/K and one causal softmax scaled
by 1/sqrt(64). Values remain unrotated.
Matched budgets
- 12 layers, hidden 512, 8 query heads, 4 KV heads.
- FFN widths are 2166 in layers 1-4 and 2165 in layers 5-12.
- Total parameters are exactly 98,710,016, matching KVPath-Concat.
- There are
4 + 11 = 15unique states. - Persistent cache is
2 * 4 * 15 * 16 = 1920elements/token. - BF16 cache is 3840 bytes/token: 68.75% below KVPath-Concat's 6144 elements, and equal to the repository's MLA baseline.
The parameter match moves capacity released by the narrower attention heads into the FFNs. This is a matched-parameter/cache comparison, not a matched-attention-FLOP comparison.
Training recipe
The three stages match the existing KVPath-Concat recipe exactly for data, sequence/global/micro batches, optimizer, LR schedule, warmup, evaluation and checkpoint cadence:
| Stage | Tokens | Steps | Peak LR | Global batch |
|---|---|---|---|---|
| 2K | 10,000,269,312 | 19074 | 1e-3 | 256 |
| 8K | 1,000,341,504 | 1908 | 1e-4 | 64 |
| 32K | 1,000,341,504 | 1908 | 1e-4 | 16 |
The 2K stage starts from seed 5000 because KVPath-Concat checkpoints are
structurally incompatible. The 8K and 32K stages load the preceding stage with
the existing --finetune handoff behavior. TP=PP=CP=1; eight data-parallel GPUs.
Checks and launch
source env/activate_deltakv_env.sh
python -m unittest training.kvpath2_rolling_head64_roll16.test_config
python training/kvpath2_rolling_head64_roll16/budget.py
bash training/kvpath2_rolling_head64_roll16/run.sh \
--config training/kvpath2_rolling_head64_roll16/configs/train_2k.toml --dry-run
# On an idle 8-GPU host, validate real BF16 forward/backward/save first.
bash training/kvpath2_rolling_head64_roll16/run.sh \
--config training/kvpath2_rolling_head64_roll16/configs/smoke.toml
# Runs/resumes 2K -> 8K -> 32K and writes one train.log per stage.
bash training/kvpath2_rolling_head64_roll16/run_pipeline.sh
The Python package uses underscores because hyphens are not valid in Python
module imports; the experiment name exposed in logs is
kvpath2-rolling-head64-roll16.
- Total size
- 5.78 GB
- Files
- 9,654
- Last updated
- Oct 27
- Pre-warmed CDN
- US EU US EU