-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix: Accelerate packaging in ModelBuilder #4549
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4549 +/- ##
=======================================
Coverage 87.44% 87.44%
=======================================
Files 389 389
Lines 36885 36888 +3
=======================================
+ Hits 32253 32256 +3
Misses 4632 4632 ☔ View full report in Codecov by Sentry. |
jiapinw
suggested changes
Mar 29, 2024
jiapinw
approved these changes
Mar 29, 2024
|
|
|
akrishna1995
approved these changes
Mar 29, 2024
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
malav-shastri
pushed a commit
to malav-shastri/sagemaker-python-sdk
that referenced
this pull request
Jun 20, 2024
* Move module level accelerate import to be function level * Ensure Pt test runs * Fix formatting * Fix flake8 * Fix local import patch path * Add coverage for import error * Fix dependency manager ut
jiapinw
pushed a commit
to jiapinw/sagemaker-python-sdk
that referenced
this pull request
Jun 25, 2024
* Move module level accelerate import to be function level * Ensure Pt test runs * Fix formatting * Fix flake8 * Fix local import patch path * Add coverage for import error * Fix dependency manager ut
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Since accelerate is an extra dependencies for Model size calculations fix logic such that we log error if module not present. The flow continues as usual in the absence of accelerate making it an opt in feature for model size calculations and placement.
Ensure dependency manager for torch servers installs dependencies.
Also enabled the pt test and re-ran it.
Happy case logic:
Module is installed and we pass memory_size_mb which is checked in ModelBuilder._can_fit_on_single_gpu to return True or False
Module not installed
Description of changes:
Testing done:
Integ test:
Notebook: Happy path
Notebook: Force uninstalled accelerate
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.