Skip to content

8.0.0

Latest

Choose a tag to compare

@bbuschkaemper bbuschkaemper released this 27 Nov 12:47
09c63bd

This is a large refactor with breaking changes.
We are introducing a new non-torch data loader that supports worker processes as well as threaded workers for free-threaded Python (no GIL). Metadatasets become Recipes and subflavors become tags (rename). There are several other new features, see below.

Breaking Changes

  • Custom dataloader: The loader factories (get_savable_loader, get_loader) now use the new custom worker runtime and its checkpoint format. Checkpoints written by 7.x cannot be restored. Restore keys are now typed dataclasses, and legacy tuple keys are no longer supported (#162, #359)
  • get_savable_loader no longer accepts checkpoint_every_sec, checkpoint_every_min_n_samples or n_checkpoints, and the global checkpoint methods were removed from the custom loader (#162)
  • Metadataset is renamed to Recipe, and Metadataset v1 is removed. The energon lint command is removed (#279, #303)
  • Dataset join is no longer supported and was removed from recipes and the API (#282)
  • subflavors is renamed to tags in recipes and the API. The old name is kept as an alias (#281, #306)
  • Dataset flavor modules were restructured and moved. Compatibility aliases are provided where possible (#276)
  • TaskEncoder.rng now requires @stateless(restore_task_encoder_seeds=True). Unscoped access raises immediately (#162)
  • SystemRng.seed, SystemRng.seed_args and @stateless(restore_seeds=True) no longer seed accelerator (e.g. CUDA) RNGs. Transforms that need deterministic accelerator randomness must seed those RNGs themselves (#339)
  • Shuffled slice order changes because slices are now shuffled with Feistel-network permutations. The sampler checkpoint layout changed, so older checkpoints cannot be restored (#280, #304)
  • Blend and packing checkpoint state changed, so older checkpoints cannot be restored (#288, #289)
  • Python 3.11 or newer is now required

Features

  • Python-nogil support: The dataloader now supports true free-threaded python-nogil for its workers (#162)
  • Add the custom dataloader with logical workers, async worker lifecycle, deterministic worker shutdown and checkpoint replay, and optional discarding of prefetched batches on migration (#162, #359)
  • Add topology-aware checkpoint migration, so you can resume on a different number of ranks and workers (#354, #350)
  • Add the Parquet dataset format, with row-group shuffling, serial or shuffled read order, and streaming of active slices (#286, #314)
  • Add the Megatron-LM BinIdx dataset format (#284, #317)
  • Add multi-shard JSONL datasets and index freshness checks (#285, #318)
  • Add prepared filter indexes and mapped arrays on EPath, with staleness detection (#283, #309)
  • Add byte-range and custom auxiliary filestore protocols for recipes (#287, #321)
  • Add packing pushback, partial-sample carryover, packing groups and streaming packing (#288, #323, #337)
  • Add sample-size based dynamic blending and a separate sample size metric for the packing group blend (#289, #330)
  • Add finite data processing pipelines to the task encoder (#353, #346)
  • Exclude datasets with a zero blend weight from a blend (#354)
  • Add checkpoint metadata that records exhausted sources, so training can resume from a finished input (#354)
  • Close dataset and reader resources deterministically when a loader is closed (#278, #301)

Fixes

  • Fix rare restore bugs in batching, shuffle buffer, concatenated datasets and packing when restoring while draining or after the input is exhausted (#337, #354)
  • Fix the training RNG not being preserved during inline restore, and process-global RNG errors in task encoder threads (#359)
  • Fix load_dataset() and metadatasets loaded from dict configs not calling post_initialize() (#354)
  • Open mapped SQLite metadata using a local URI (#338)
  • Fix invalid slots_default in edataclass (#270)
  • Fix energon prepare ignoring --skip-dataset-yaml for JSONL and Parquet shard directories (#318, #314)
  • Fix analyze-debug not recognizing custom dataloader and DatasetSampler log events (#359)

Other

  • Allocate thread-local RNG storage lazily, and save buffered restore keys without deep copies (#359)
  • Add AGENTS.md, agent skills, and CI policy checks for commit sign-off and Conventional Commits (#307, #313)
  • Pin CI workflows to Python 3.11 and make the Ruff rule selection explicit (#320)

New Contributors

Full Changelog: 7.4.1...8.0.0