Skip to content

feature: Inference recommendation id deployment support #3631

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 2 commits into from
Feb 3, 2023

Conversation

jinpengqi
Copy link
Contributor

Issue #, if available:

Description of changes:

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
  • [ x I have passed the region in to all S3 and STS clients that I've initialized as part of this change.
  • [ x 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.

jinpengqi and others added 2 commits February 3, 2023 13:39
* Add IR id as input and validate compatible parameters

* use inference_recommender_mixin

* Add inf rec id support for deploy method

* Invoke describe boto3 apis directly and wrap params update in mixin

* Refactor mixin

* Get compiled results from modelpkg

* Fix describe calls

* Add check for initial_instance_count

* Fix flake8 and docstyle errors

* Black reformat

* Add recommendation id deployment support for estimator

* Remove ir id for auto_ml model

* Rebase on right size change

Co-authored-by: Jinpeng Qi <[email protected]>
* Add integ test and refactor rec id deploy

* Revert ir id hardcode change

* Fix framework parse

---------

Co-authored-by: Jinpeng Qi <[email protected]>
@jinpengqi jinpengqi requested a review from a team as a code owner February 3, 2023 05:45
@jinpengqi jinpengqi requested review from navinsoni and removed request for a team February 3, 2023 05:45
Copy link
Contributor

@trajanikant trajanikant left a comment

Choose a reason for hiding this comment

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

/bot run all

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2023

Codecov Report

Merging #3631 (cdd4f05) into master (6322794) will decrease coverage by 0.77%.
The diff coverage is 95.45%.

@@            Coverage Diff             @@
##           master    #3631      +/-   ##
==========================================
- Coverage   89.56%   88.80%   -0.77%     
==========================================
  Files         968      227     -741     
  Lines       89844    22278   -67566     
==========================================
- Hits        80470    19784   -60686     
+ Misses       9374     2494    -6880     
Impacted Files Coverage Δ
src/sagemaker/estimator.py 89.64% <ø> (ø)
src/sagemaker/huggingface/model.py 89.87% <ø> (ø)
src/sagemaker/tensorflow/model.py 96.33% <ø> (ø)
...ference_recommender/inference_recommender_mixin.py 91.54% <95.31%> (ø)
src/sagemaker/model.py 93.25% <100.00%> (ø)
...on3.8/site-packages/sagemaker/debugger/debugger.py
...te-packages/sagemaker/workflow/check_job_config.py
...ages/sagemaker/pytorch/training_compiler/config.py
...3.9/site-packages/sagemaker/workflow/parameters.py
...ite-packages/sagemaker/experiments/_run_context.py
... and 1190 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: cdd4f05
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

Copy link
Contributor

@trajanikant trajanikant left a comment

Choose a reason for hiding this comment

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

/bot run slow-tests

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

Copy link
Contributor

@jbarz1 jbarz1 left a comment

Choose a reason for hiding this comment

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

LGTM

@trajanikant trajanikant self-assigned this Feb 3, 2023
@trajanikant trajanikant merged commit 8d2c16b into aws:master Feb 3, 2023
JoseJuan98 pushed a commit to JoseJuan98/sagemaker-python-sdk that referenced this pull request Mar 4, 2023
nmadan pushed a commit to nmadan/sagemaker-python-sdk that referenced this pull request Apr 18, 2023
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.

5 participants