Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,373 Bytes
52e4f53 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
#set -e
#set -x
######################################################################
#export NCCL_NET=IB
#export NCCL_SOCKET_IFNAME="bond1"
#export GLOO_SOCKET_IFNAME="bond1"
#export NCCL_DEBUG=INFO
#export NCCL_IB_QPS_PER_CONNECTION=2
#export GLOO_SOCKET_IFNAME=eth0
#export NCCL_DEBUG=INFO
#export NCCL_IB_QPS_PER_CONNECTION=2
#export NCCL_IB_DISABLE=1
export DISTRIBUTED_BACKEND="nccl"
export CUDA_DEVICE_MAX_CONNECTIONS=1
######################################################################
pip3 install -r requirements_ds_gpu.txt
#pip3 install --no-index --find-links=/data/software/ -r requirements_ds_gpu.txt
pip3 install deepspeed==0.15.4
#pip3 install --no-index --find-links=/data/software/ deepspeed==0.15.4
#pip3 install deepspeed==0.16.1
#pip3 install deepspeed==0.14.2
pip3 install -e `pwd`
######################################################################
#export PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:512
#apt update
#apt install -y openssh-server
#apt install -y rsync
######################################################################
export NNODES=${WORLD_SIZE}
export NODE_RANK=${RANK}
export MASTER_PORT=34567
if [ -z "$NPROC_PER_NODE" ]
then
export NPROC_PER_NODE=8
export NNODES=1
export NODE_RANK=0
export MASTER_ADDR=127.0.0.1
fi
######################################################################
|