Debian Codegraph @

examples/config_yaml_templates/multi_node.yaml

raw
1 # This config template is for a multi-node setup. This assumes DDP, but can be interop'd with the other configs in this folder
2 # Generally it's recommended to look at the SLURM config template for a more robust multi-node setup
3 distributed_type: MULTI_GPU
4 # We need to specify the current machine's rank
5 machine_rank: 0
6 # We then need to specify the IP address and port of the main process
7 main_process_ip: '1234'
8 main_process_port: 9999
9 # We need to specify the number of machines
10 num_machines: 2
11 # We need to specify the *total* number of processes
12 num_processes: 8
13 # And then we need to specify how rdvz comms will be handled
14 rdzv_backend: static # or c10d
15 # If the compute nodes are on the same network (cloud will more than likely be false)
16 same_network: false