accelerate
https://github.com/huggingface/accelerate
Python
🚀 A simple way to train and use PyTorch models with multi-GPU, TPU, mixed-precision
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported1 Subscribers
Add a CodeTriage badge to accelerate
Help out
- Issues
- `PrefixedDataset` violates the `Mapping` contract
- Fix PrefixedDataset mapping contract
- Fix compile_regions breaking ModuleDict and ModuleList indexing
- Add API to materialize offloaded meta tensors
- Skip automatic DataLoader sharding when already_sharded=True
- Stop DataLoaderShard taking a device mesh it never reads
- prepare_model unconditionally imports DTensor, breaking single-GPU training on torch builds without a distributed backend
- Do not import torch.distributed in model_has_dtensor on a non-distributed build
- Stop accepting a split_batches argument Accelerator never reads
- Restore dataloader state when iteration ends early
- Docs
- Python not yet supported