Multi-node training
Distributed (Multi node) training is a method of scaling models and data to multiple devices for parallel execution
Multi-node or distributed training allows you to train a single model across more than one machine.
Note: At this time multi-node training is only supported for the Lightning framework.
Early access to multi-node is now available, send us a message on community slack: or email at [email protected] with feedback
We are continuing to improve this beta feature and feedback is greatly appreciated! Grid support for distributed training is for torch-based frameworks only at this time. If 4 GPUs are requested, then 4 images with 2 CPUs and 1 GPU each will run in a distributed manner.

When should you use multi-node?

Multi-node training allows you to run an experiment across multiple machines, therefore leveraging more GPUs that a single machine can offer.
However, running multi-node training doesn't always make your experiment run faster, as there is overhead of communicating and synchronizing between all the nodes to ensure a correct training output.
We recommend you try out multi-node with a few epochs and see if the speed up is there before running a full training.

Using CLI

Starting a multi node run in CLI is the same as how you run any other script, Grid calculates number of gpus and nodes for you. simply specify how many GPUs you will use per experiment.
For example --gpus 5 --instance_type 4_v100_32gb will automatically trigger multi node training
Example of 1 node 4 GPUs :
grid run --instance_type 4_v100_16gb --framework lightning --gpus 4 --data_path grid:stl10:1
Example of 2 nodes 8 GPUs:
grid run --instance_type 4_v100_16gb --framework lightning --gpus 8 --data_path grid:stl10:1

Step 0: Start a Run using Web UI

Start a new run
Paste the Github script in Run dialog as you would normally
Select the machine and specify GPUs per experiment
Could not load image

Step 1: Visualize Results

In the same way as you would for a single node run. If tensorboard logs are available, scalars will be visible and artifacts such as checkpoints and configurations can be downloaded
Verify how many GPUs were run in the Experiment Details
Last modified 54m ago