dist_methods / documentation /distributed_idea_grid_README.md
Ilikemechuri's picture
Add distributed training experiment code and results
bbf3a52 verified
|
Raw History Blame Contribute Delete
3.05 kB
# Five distributed-training proposal prototypes
Run all five proposals at K=16 plus the plain batch-32 baseline:
python -u /workspace/run_distributed_idea_grid.py --clients 16
The baseline trains TinyGPT from scratch for exactly one epoch with batch size
32. Its full val.u16 loss is the target. Each distributed run uses batch size
32 per client, can train for at most seven epochs, and stops after a frequent
validation sample reaches the target and a full val.u16 evaluation confirms it.
A full validation is also recorded at each epoch boundary.
ext_val.u16 is kept out of reported validation loss and stopping. Methods that
need public examples sample 4 sequences of 128 tokens from ext_val for probes or
server replay. Probe token usage is recorded separately.
## Outputs
results.json keeps the baseline and winning K=16 run. screening_summary.json
keeps a compact score row for each of the five methods; non-winning model
checkpoints are deleted after selection. val_loss_grid.png plots the winner.
progress.json is rewritten during a run so the active case can be inspected.
Public train data is treated as warm-cached. Model bootstrap, update payloads,
headers, and a 3% retry reserve count toward virtual client traffic. Uncached
token-file sizes are also recorded in the JSON.
## How to read the results
Model updates and standard validation losses run in PyTorch on the local GPU.
Clients and network are emulated: compute rates vary independently of links and
availability, and event time is estimated from a worker quorum. This is not a
measurement of real multi-GPU speedup or real network traffic.
QuReLo assumes a pretrained frozen backbone in its proposal. Since this
experiment starts from random weights, its result also exposes that scope
mismatch. All five methods are small-model operational prototypes, not exact
paper reproductions.
torch.compile is not enabled. PPBD changes trainable parameter groups and may
trigger recompiles.
B32/S512 microbenchmark throughput was about 442K input tokens/s. A partial
QuReLo K=4 run processed 25.2M train tokens in 79 seconds including probes,
validation, and protocol work. Five K=16 runs capped at seven epochs project to
roughly four hours if none stops early; replay overhead may raise this. The
plain baseline has already completed in 4.5 minutes.
After K=16 screening, run_distributed_idea_lr_sweep.py waits for screening to
finish, selects the top two methods by minimum full val.u16 loss, and evaluates
LR values 1e-4, 3e-4, and 9e-4 for at most one epoch. APR/RPPD server LR scales
at one third of local LR. It keeps the final best checkpoint and sweep summary.
After the LR sweep, the two winning methods are each run once with Muon at K=16
for at most one epoch. Muon handles hidden-layer matrix weights at LR 0.02;
AdamW handles embeddings, biases, and normalization parameters, using each
method's selected fallback LR. The final retained checkpoint is the best full
val.u16 result across the LR and Muon comparisons; compact summaries retain the
method scores.