loopprep

Weighted Data Batcher

total 00:00
Hard48 minPremium Asked at Anthropic

    The mixer that feeds training: blend examples from several datasets in proportion to their weights, keep the mix exact across batches, resume from a checkpoint, and never pull an item twice.

    The five steps
    1. Mix by weight 9 min
    2. When a dataset runs dry 9 min
    3. Checkpoint and resume 10 min
    4. Change the mix mid-run 10 min
    5. Pull only what you emit 10 min