accelerate
all
A library that enables the same PyTorch code to be run across any distributed configuration.
More info →Examples (6)
Print environment information
Interactively create a configuration file
accelerate configPrint the estimated GPU memory cost of running a Hugging Face model with different data types
accelerate estimate-memory name/modelTest an Accelerate configuration file
accelerate test --config_file path/to/config.yamlRun a model on CPU with Accelerate
accelerate launch path/to/script.py --cpuRun a model on multi-GPU with Accelerate, with 2 machines
accelerate launch path/to/script.py --multi_gpu --num_machines 2made by @shridhargupta | data from tldr-pages