gpt4all/gpt4all-training/create_hostname.sh

8 lines
193 B
Bash
Raw Permalink Normal View History

2023-04-04 22:53:04 -04: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