| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: e1c74fb604
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
…#7875) `import deepspeed` raises `RuntimeError: Dynamo is not supported on Python 3.12+` on PyTorch 2.3 + Python 3.12. The `jit_script_compat` decorator (introduced in deepspeedai#7835) calls `torch.compile()` unconditionally on PyTorch >= 2.0, but Dynamo support for Python 3.12 was only added in PyTorch 2.4. Multiple eager import chains trigger this decorator at import time, crashing before user code runs. This PR adds a version gate to skip torch.compile on known-unsupported combinations, plus a double fallback (torch.compile → torch.jit.script → identity function) so the decorator won't crash. --------- Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com> Co-authored-by: Olatunji Ruwase <tjruwase@gmail.com> Signed-off-by: nathon-lee <leejianwoo@gmail.com>
…#7875) `import deepspeed` raises `RuntimeError: Dynamo is not supported on Python 3.12+` on PyTorch 2.3 + Python 3.12. The `jit_script_compat` decorator (introduced in deepspeedai#7835) calls `torch.compile()` unconditionally on PyTorch >= 2.0, but Dynamo support for Python 3.12 was only added in PyTorch 2.4. Multiple eager import chains trigger this decorator at import time, crashing before user code runs. This PR adds a version gate to skip torch.compile on known-unsupported combinations, plus a double fallback (torch.compile → torch.jit.script → identity function) so the decorator won't crash. --------- Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com> Co-authored-by: Olatunji Ruwase <tjruwase@gmail.com> Signed-off-by: nathon-lee <leejianwoo@gmail.com>
| Back | FazBrowse Home | New Git URL |
import deepspeed raises RuntimeError: Dynamo is not supported on Python 3.12+ on PyTorch 2.3 + Python 3.12.
The jit_script_compat decorator (introduced in #7835) calls torch.compile() unconditionally on PyTorch >= 2.0, but Dynamo support for Python 3.12 was only added in PyTorch 2.4.
Multiple eager import chains trigger this decorator at import time, crashing before user code runs.
This PR adds a version gate to skip torch.compile on known-unsupported combinations, plus a double fallback (torch.compile → torch.jit.script → identity function) so the decorator won't crash.