-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DummyScheduler
errors
#233
Comments
For a quick solution, you can replace it with a real scheduler. This original code was meant to interface with Deepspeed but it doesn't currently work with non-Deepsped. There will be some updates in the coming days to fix this |
I have the same problem :( @zanussbaum what does it mean to replace it with a real scheduler? |
Thanks |
in deepspeed case,
will initialize a real scheduler |
scheduler defined in Deepspeed config
When I run train.py in pycharm, the errors happen for
accelerator.register_for_checkpointing(scheduler)
as follows:Traceback (most recent call last):
File "/home/wh/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
File "/home/zju/anaconda3/envs/picard/lib/python3.8/site-packages/accelerate/accelerator.py", line 2563, in register_for_checkpointing
raise ValueError(err)
ValueError: All
objects
must include astate_dict
andload_state_dict
function to be stored. The following inputs are invalid:- Item at index 0,
DummyScheduler
how to fix it ?
The text was updated successfully, but these errors were encountered: