Skip to content

Commit

Permalink
Merge pull request #245 from aws-samples/sean-smith-patch-2
Browse files Browse the repository at this point in the history
Activate conda environment
  • Loading branch information
KeitaW authored Apr 5, 2024
2 parents 6bc1417 + bd172e0 commit 81f2d50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 3.test_cases/13.SM-dataparallel-deepspeed/exec_torchrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0

# Activate conda environment
source ./conda/bin/activate
conda activate smdataparallel

export OMP_NUM_THREADS=1
export GPUS_PER_NODE=8 # p4d/p4de instances have 8 GPUs per node
MASTER_NODE=$(scontrol show hostname | head -n 1)
Expand Down

0 comments on commit 81f2d50

Please sign in to comment.