mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04: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
|