-
Notifications
You must be signed in to change notification settings - Fork 50
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
Added some safeguards when the necessary imports are not available #291
Added some safeguards when the necessary imports are not available #291
Conversation
Hey @RobotSail, I had a rebasing/signing-off problem in my previous branch (#267) so I made a new branch with the requested changes. Please let me know what you think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hello @Maxusmusti, This PR is ready for review please let me know what you think. |
@Harthi7 will take a look today, thanks! |
5d7b743
to
b5bc651
Compare
…cessary imports are not available Signed-off-by: Harthi7 <[email protected]> Signed-off-by: abdullah-ibm <[email protected]>
Signed-off-by: abdullah-ibm <[email protected]>
e045f2d
to
a8aab02
Compare
…re/add-try-catch-import-to-deepspeed
a8aab02
to
2d3e3cf
Compare
Looks like you are hitting some linting/formatting issues, but otherwise looks good |
Signed-off-by: abdullah-ibm <[email protected]>
Fixed, Please take a look and let me know what you think @Maxusmusti |
Re-triggering tests |
@Harthi7 looks like it is still failing linting and formatting, you can run the following to identify the linting issues and automatically reformat:
|
…re/add-try-catch-import-to-deepspeed
@Harthi7 this is a great addition, would you please fix the linting + minor issues? |
…re/add-try-catch-import-to-deepspeed
85c045b
to
da624f4
Compare
da624f4
to
9c03b6b
Compare
I fixed the Pylint/Formatting issue, Please take a look again @Maxusmusti |
|
||
# pylint: disable=no-name-in-module | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You separated these try-except blocks because DeepSpeedCPUAdam is only imported for CPU offloading training correct? It'd be appreciated to have this documented since you're repeating code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I believe that is correct as @RobotSail have stated in a previous comment #267 (comment), as for the documentation how should we move forward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wanting clarification on the import try-except with a comment, otherwise it'll be good to go in.
Signed-off-by: abdullah-ibm <[email protected]>
37c4fa6
to
5417952
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is really helpful. I appreciate your contribution!
Context Issue:
#250 (comment)
Implemented error handling for the import of deepspeed to prevent runtime crashes
when the module is unavailable. This improves the robustness of the application.
Issue: #250