You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
from accelerate import Accelerator, notebook_launcher
notebook_launcher(train_loop, args)
FileNotFoundError: [Errno 2] No such file or directory: 'nvidia-smi'
Expected behavior
notebook_launcher doesn't work with TPU in Google Colab. The reason is that os environment variable TPU_NAME is not set and launchers.py@line:135 returns False. Setting manually by os.environ["TPU_NAME"]="dummy", raises another error
RuntimeError: Runtime is already initialized. Do not use the XLA device before calling xmp.spawn.
The text was updated successfully, but these errors were encountered:
System Info
Information
Tasks
no_trainer
script in theexamples
folder of thetransformers
repo (such asrun_no_trainer_glue.py
)Reproduction
Google Colab with TPUv2-8
FileNotFoundError: [Errno 2] No such file or directory: 'nvidia-smi'
Expected behavior
notebook_launcher
doesn't work with TPU in Google Colab. The reason is that os environment variableTPU_NAME
is not set andlaunchers.py@line:135
returnsFalse
. Setting manually byos.environ["TPU_NAME"]="dummy"
, raises another errorThe text was updated successfully, but these errors were encountered: