gpt4all/gpt4all-training/create_hostname.sh

8 lines
193 B
Bash
Raw Normal View History

2023-04-05 02:53:04 +00:00
#!/bin/bash
export WORKER_IP=$1
N_GPUS=8
# create dir if doesn't exist
sudo mkdir -p /job
printf "localhost slots=$N_GPUS\n$WORKER_IP slots=$N_GPUS" | sudo tee /job/hostfile
echo /job/hostfile