Customization
This section describes how to customize TorchElastic to fit your needs.
Launcher
The launcher program that ships with TorchElastic should be sufficient for most use-cases (see torchrun (Elastic Launch)). You can implement a custom launcher by programmatically creating an agent and passing it specs for your workers as shown below.
# my_launcher.py
if __name__ == "__main__":
args = parse_args(sys.