NVIDIA Megatron-Energon is a multi-modal data loader library for large-scale deep learning, particularly for training large language models (LLMs) and vision-language models. It supports tar-based WebDataset, JSONL files, and polylithic datasets, with features like caching, AV decoding, and FUSE mount. Current version is 7.3.2, with active development and a release cadence of roughly monthly.
pip install megatron-energonVerified import paths — ran on the pinned version, not inferred.
Minimal example loading a training dataset with Megatron-Energon.
Run `energon prepare` again or use an older version (6.0.1) if you must keep legacy format.
Implement new save/restore logic as per updated docs; old checkpoints are not compatible.
Upgrade to >=7.3.2 or avoid concurrent tar readers.
Update to EPath paths as described in the migration guide.
Use `from megatron.energon import ...`
Upgrade to >=7.2.2 which includes a fix for this locking issue.
Ensure your dataset's `.nvs` file includes the correct subflavors (e.g., 'image', 'video', 'audio').
No dependency data recorded yet.