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)
run accelerate launch test.py. test.py could be an existing or non-existing file, the command halts before reach where the file matters. That being said, the test.py I used is
import torch
import torch.nn as nn
from accelerate import Accelerator
if __name__ == "__main__":
accelerator = Accelerator()
model = nn.Conv2d(10, 20, 3, 1, 1)
model = accelerator.prepare(model)
Expected behavior
Expected behavior is if test.py exists, it gets executed.
The actual behavior is the program halts forever after running accelerate launch, without printing anything. Ctrl-C cannot kill it, I have to Ctrl-Z. Then there's still something running on port 29500 so next time I have to kill it manually.
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
accelerate launch test.py
. test.py could be an existing or non-existing file, the command halts before reach where the file matters. That being said, the test.py I used isExpected behavior
Expected behavior is if test.py exists, it gets executed.
The actual behavior is the program halts forever after running accelerate launch, without printing anything. Ctrl-C cannot kill it, I have to Ctrl-Z. Then there's still something running on port 29500 so next time I have to kill it manually.
The text was updated successfully, but these errors were encountered: