-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUG] Attribute error when importing DeepSpeed Engine #3963
Comments
@Chris-hughes10 - what version of pydantic do you have installed in this environment? We aren't compatible with pydantic 2.0 yet, so we've pinned to |
Hi @Chris-hughes10 - were you able to confirm if this was due to the pydantic version in the environment? |
Hi @Chris-hughes10 - closing this for now, I suspect it is the pydantic issue. If that doesn't fix it, please re-open the issue and let me know. |
I had the same issue and by downgrading the Pydantic version, it was resolved! |
Thanks for confirming @mohman313. We should have this fixed so we support pydantic 2+ shortly. |
Agreed, downgrading the pydantic version helped me as well. |
Is it possible to correct conda-forge deepspeed build to reflect requirement of pydantic<2.0.0? Currently conda isntalls pydantic 2.3.0 as a dependency of deepspeed and it is necessary to google the exception to find this bug report and figure that version 2.3.0 is incompatible. |
Hi @gshimansky - we don't publish those packages, I believe @hadim is the maintainer of this package from here: https://github.com/conda-forge/deepspeed-feedstock. Meanwhile, we are updating the yml that we maintain in our repo here if you are able to test this to confirm, thanks! |
Ok create a bug conda-forge/deepspeed-feedstock#23 |
in my case, i have a another function that use latest version of pydantic. So, solved it upgrade the deepspeed. pydantic 2.6.* |
Describe the bug
When I run the line
from deepspeed import DeepSpeedEngine
an attribute error is raised. Stacktrace provided below.To Reproduce
Steps to reproduce the behavior:
python
from deepspeed import DeepSpeedEngine
Expected behavior
The import works successfully, or steps are given to resolve the error.
ds_report output
System info (please complete the following information):
Launcher context
Are you launching your experiment with the
deepspeed
launcher, MPI, or something else?Unable to launch
Docker context
Are you using a specific docker image that you can share?
Dockerfile:
environment.yaml:
Additional context
Stacktrace:
The text was updated successfully, but these errors were encountered: