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)
My own task or dataset (give details below)
Reproduction
I copied the example from examples/nlp_example.py and renamed it to main.py in a new folder then I replaced the optimizer and scheduler in the file with DummyOptim and DummyScheduler to make it compatible with deepspeed configs. This is fine, the code is running properly. But once I add the following it started to raise errors in the title:
Then run accelerate launch --config_file config.yaml main.py, it will raise the error saying ValueError: Default process group has not been initialized, please make sure to call init_process_group.
Expected behavior
I expect accelerator.wait_for_everyone to work fine.
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
examples/nlp_example.py
and renamed it tomain.py
in a new folder then I replaced the optimizer and scheduler in the file with DummyOptim and DummyScheduler to make it compatible with deepspeed configs. This is fine, the code is running properly. But once I add the following it started to raise errors in the title:(1)
stage2.json
config.yaml
:Then run
accelerate launch --config_file config.yaml main.py
, it will raise the error sayingValueError: Default process group has not been initialized, please make sure to call init_process_group.
Expected behavior
I expect accelerator.wait_for_everyone to work fine.
The text was updated successfully, but these errors were encountered: