Skip to content
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

AssertionError: must provide optimizer during init in order to use backward #67

Open
tuannvhust opened this issue Mar 13, 2023 · 0 comments

Comments

@tuannvhust
Copy link

Traceback (most recent call last):
  File "/opt/bitnami/python/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/bitnami/python/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/vall-e/vall_e/train.py", line 128, in <module>
    main()
  File "/workspace/vall-e/vall_e/train.py", line 119, in main
    trainer.train(
  File "/workspace/vall-e/vall_e/utils/trainer.py", line 155, in train
    stats = engines.step(feeder=train_feeder, batch=batch)
  File "/workspace/vall-e/vall_e/utils/engines.py", line 156, in step
    engine.backward(loss)
  File "/opt/bitnami/python/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 11, in wrapped_fn
    return func(*args, **kwargs)
  File "/opt/bitnami/python/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1701, in backward
    assert self.optimizer is not None and not isinstance(self.optimizer, DummyOptim), \
AssertionError: must provide optimizer during init in order to use backward

I got this bug? How should I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant