Issue
TPUv5 does not live at
/dev/accel0
โ where TPUv3 and TPUv4 liveโ
sudo fuser -k /dev/accel0
does not workSolution
TPUv5e(TPUv5lite) lives at
/dev/vfio/0
Bash script with gcloud command to kill TPU consuming process
# seq len 2048 export TPU_NAME='v5e-256' export ZONE='europe-west4-b' echo "[local] Killing TPU" gcloud compute tpus tpu-vm ssh $TPU_NAME \ --zone $ZONE --worker=all --command "sudo fuser -k /dev/vfio/0" # TPUv5์์๋ /dev/vfio/0๊ฐ ์ฅ๋น ์ด๋ฆ์ด๋ค. echo "[local] Removing TPU Lock" gcloud compute tpus tpu-vm ssh $TPU_NAME \ --zone $ZONE --worker=all --command "sudo rm -f /tmp/libtpu_lockfile"
ย