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

Make the exceptions serializable #1239

Merged
merged 27 commits into from
May 25, 2024
Merged

Conversation

dakinggg
Copy link
Collaborator

@dakinggg dakinggg commented May 24, 2024

In order for our custom exceptions to propagate correctly from a multiprocessing context, they need to be serializable. This PR does that, and adds a unit test to confirm that all our custom exceptions are serializable.

Based on #1233

@dakinggg dakinggg marked this pull request as ready for review May 24, 2024 23:40
@dakinggg dakinggg changed the title Attempt to make the exceptions serializable Make the exceptions serializable May 24, 2024
Copy link
Contributor

@milocress milocress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Thanks for helping fix this!

Copy link
Contributor

@irenedea irenedea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!!

llmfoundry/utils/exceptions.py Outdated Show resolved Hide resolved
tests/utils/test_exceptions.py Show resolved Hide resolved
llmfoundry/utils/exceptions.py Show resolved Hide resolved
@dakinggg dakinggg enabled auto-merge (squash) May 25, 2024 01:00
@dakinggg dakinggg merged commit 867e58f into mosaicml:main May 25, 2024
9 checks passed
@dakinggg dakinggg deleted the daniels-exceptions branch June 22, 2024 20:46
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

Successfully merging this pull request may close these issues.

3 participants