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

Fix: Move accelerate dependency closer to size calculations #4502

Merged
merged 6 commits into from Mar 20, 2024

Conversation

samruds
Copy link
Collaborator

@samruds samruds commented Mar 14, 2024

Issue #, if available:

Description of changes:

  1. Move accelerate out of ModelBuilder to prevent import issues
  2. Fix attribute error in SchemaBuilder.repr() when custom translators are used

Testing done:

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

  • I have read the CONTRIBUTING doc
  • I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the Python SDK team
  • I used the commit message format described in CONTRIBUTING
  • I have passed the region in to all S3 and STS clients that I've initialized as part of this change.
  • I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes
  • I have checked that my tests are not configured for a specific region or account (if appropriate)
  • I have used 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.

@samruds samruds force-pushed the accelerate-source branch 2 times, most recently from 36e0d7a to 0629384 Compare March 14, 2024 20:20
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 87.35%. Comparing base (a414542) to head (e4780cd).

Files Patch % Lines
src/sagemaker/serve/builder/schema_builder.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4502      +/-   ##
==========================================
- Coverage   87.36%   87.35%   -0.01%     
==========================================
  Files         389      389              
  Lines       36638    36639       +1     
==========================================
- Hits        32007    32006       -1     
- Misses       4631     4633       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samruds samruds force-pushed the accelerate-source branch 10 times, most recently from cd2dd7a to a15065b Compare March 15, 2024 00:19
@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: a15065b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: 81e69eb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: b6991c6
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: f2f520c
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: ecd24ed
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@samruds samruds force-pushed the accelerate-source branch 4 times, most recently from 35c7f2c to 56836a1 Compare March 19, 2024 20:20
@samruds samruds force-pushed the accelerate-source branch 8 times, most recently from 650d40e to e0c363e Compare March 20, 2024 00:32
@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: c008915
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@samruds samruds force-pushed the accelerate-source branch 2 times, most recently from d78726e to 3a62911 Compare March 20, 2024 05:06
@samruds samruds marked this pull request as ready for review March 20, 2024 06:14
@samruds samruds requested a review from a team as a code owner March 20, 2024 06:14
@samruds samruds requested review from liujiaorr and removed request for a team March 20, 2024 06:14
@mufaddal-rohawala
Copy link
Member

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: e4780cd
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@benieric benieric merged commit 345381e into aws:master Mar 20, 2024
8 checks passed
@samruds samruds deleted the accelerate-source branch March 20, 2024 16:57
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.

None yet

3 participants