Skip to content

Commit 78acb79

Browse files
authored
[PT-D] Add TP and DDP into the example run script (#1014)
1 parent a6ec11e commit 78acb79

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

distributed/sharded_tensor/tensor_parallel.py

100644100755
File mode changed.

run_python_examples.sh

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ function dcgan() {
7171
python main.py --dataset lsun --dataroot lsun --classes $DATACLASS --niter 1 $CUDA_FLAG --dry-run || error "dcgan failed"
7272
}
7373

74+
function distributed() {
75+
start
76+
python sharded_tensor/tensor_parallel.py || error "tensor parallel example failed"
77+
python ddp/main.py || error "ddp example failed"
78+
}
79+
7480
function fast_neural_style() {
7581
start
7682
if [ ! -d "saved_models" ]; then
@@ -193,6 +199,7 @@ function run_all() {
193199
dcgan
194200
# distributed
195201
fast_neural_style
202+
distributed
196203
imagenet
197204
mnist
198205
mnist_hogwild

0 commit comments

Comments
 (0)