visual-arena / gradio_controller.sh
tianleliphoebe's picture
Upload folder using huggingface_hub
ec0c335 verified
raw
history blame contribute delete
538 Bytes
#!/bin/bash
#SBATCH --job-name=visual_arena_controller
#SBATCH --gres=gpu:rtx6000:1
#SBATCH --qos=m3
#SBATCH --time=100:00:00
#SBATCH --qos=deadline
#SBATCH --account=deadline
#SBATCH -c 4
#SBATCH --mem=10G
#SBATCH --output=visual_arena_controller-%j.out
#SBATCH --error=visual_arena_controller-%j.err
# put your command here
ipAddr=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
echo "ipAddr = $ipAddr"
python3 -m fastchat.serve.controller --host $ipAddr