mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
8 lines
193 B
Bash
8 lines
193 B
Bash
|
#!/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
|