| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Vedant Chauhan <staranonymous1011@gmail.com>
There was a problem hiding this comment.
@baremetaldevx86 Thank you for this PR! This looks good to me.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
DeepCompile retrieves PyTorch's compiled backward hooks directly from the class namespace. On Python 3.9, this returns a staticmethod descriptor that cannot be
called directly, resulting in:
This change unwraps the underlying function before DeepSpeed invokes it.
The fix covers both supported implementations:
A regression test emulates Python 3.9's non-callable staticmethod behavior so the failure remains covered when CI runs on newer Python versions.
Testing
Fixes #7433