-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: retrieve jumpstart estimator and predictor without specifying model id (infer from tags) #4304
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
feat: retrieve jumpstart estimator and predictor without specifying model id (infer from tags) #4304
Conversation
…odel id (infer from tags)
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…-predictor-without-model-id
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
- please add support for all JumpStart tags, not just the SDK tags:
- classic Studio tags
- Monarch tags
- SDK tags as you have them
-
what happens if the model version is not supported by the current SDK?
-
what is the story for InferenceComponent-based endpoints?
@patch("sagemaker.predictor.get_jumpstart_model_id_version_from_endpoint") | ||
@patch("sagemaker.jumpstart.utils.verify_model_region_and_return_specs") | ||
@patch("sagemaker.jumpstart.accessors.JumpStartModelsAccessor.get_model_specs") | ||
def test_jumpstart_predictor_support_no_model_id_supplied_sad_case( |
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.
same comment please
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4304 +/- ##
==========================================
- Coverage 86.94% 86.88% -0.06%
==========================================
Files 1203 383 -820
Lines 107211 35397 -71814
==========================================
- Hits 93211 30756 -62455
+ Misses 14000 4641 -9359 ☔ View full report in Codecov by Sentry. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…-predictor-without-model-id
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
/bot run local-mode-tests, slow-tests
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…odel id (infer from tags) (aws#4304) * feat: retrieve jumpstart estimator and predictor without specifying model id (infer from tags) * fix: pylint * chore: add support for ic-based endpoints * chore: update docstrings * chore: add integ tests * chore: add support in conftest for ic endpoints * fix: delete inference components * chore: address tagging and ic determination comments * chore: address PR comments * fix: docstring * chore: improve docs * chore: address comments * fix: list_and_paginate_inference_component_names_associated_with_endpoint in integ test cleanup * fix: boto3 session region * fix: boto_session * fix: sagemaker session to delete IC
…odel id (infer from tags) (aws#4304) * feat: retrieve jumpstart estimator and predictor without specifying model id (infer from tags) * fix: pylint * chore: add support for ic-based endpoints * chore: update docstrings * chore: add integ tests * chore: add support in conftest for ic endpoints * fix: delete inference components * chore: address tagging and ic determination comments * chore: address PR comments * fix: docstring * chore: improve docs * chore: address comments * fix: list_and_paginate_inference_component_names_associated_with_endpoint in integ test cleanup * fix: boto3 session region * fix: boto_session * fix: sagemaker session to delete IC
Description of changes:
Allows customers to do
sagemaker.predictor.retrieve_default("jumpstart-endpoint-name")
andsagemaker.jumpstart.estimator.attach("jumpstart-training-job-name")
. The model id is inferred from the tags of the AWS resource (if present).Testing done:
Unit tests added, manually tested as well
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.