Skip to content

Latest commit

 

History

History

resnet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Resnet

This script demonstrates how to run a ResNet model on multiple worlds using PyTorch. This script initializes a ResNet model on every worker. The leader sends an image to a worker for inference. After processing the image, the worker sends the predicted class back to the leader.

Running the Script in a single host

python m8d.py --num_workers 1 --backend gloo

Running the Script in multiple hosts

python m8d.py --num_workers 2 --backend nccl --multihost --addr 10.20.1.50 --rank 0