-
Notifications
You must be signed in to change notification settings - Fork 1.2k
change: use recommended inference image URI from Neo API #2806
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
Conversation
…ries (aws#2755) Co-authored-by: Payton Staub <[email protected]> Co-authored-by: Ahsan Khan <[email protected]>
Co-authored-by: Shreya Pandit <[email protected]>
Co-authored-by: Basil Beirouti <[email protected]> Co-authored-by: Payton Staub <[email protected]> Co-authored-by: Ahsan Khan <[email protected]> Co-authored-by: Mufaddal Rohawala <[email protected]> Co-authored-by: Basil Beirouti <[email protected]> Co-authored-by: Payton Staub <[email protected]> Co-authored-by: Shreya Pandit <[email protected]>
Codecov Report
@@ Coverage Diff @@
## dev #2806 +/- ##
==========================================
+ Coverage 88.71% 88.93% +0.21%
==========================================
Files 175 178 +3
Lines 15500 15755 +255
==========================================
+ Hits 13751 14011 +260
+ Misses 1749 1744 -5
Continue to review full report at Codecov.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Hi, is it possible to check the log for those failed tests? |
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.
Minor comment to be discussed
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@@ -286,7 +282,7 @@ def test_compile_with_framework_version_15(session): | |||
job_name="compile-model", | |||
) | |||
|
|||
assert "1.5" in model.image_uri | |||
assert model.image_uri is not None |
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.
any specific reason we are not checking "1.5" here in image uri
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.
Since the uri is fetched from Neo API now, I think it would be suffice to just check that
model.image_uri is equal to the uri inside the response.
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.
I think we should still check for 1.5 to make sure the uri we are receiving is as expected
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.
I don't think that is possible. Checking 1.5
requires API access within the unit tests. I changed it to make sure the model.image_uri
is the same as what is inside the response.
) | ||
|
||
assert "Unsupported neo-pytorch version: 1.6.1." in str(e) | ||
assert model.image_uri is not None |
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 here
@patch("sagemaker.session.Session") | ||
def test_compile_validates_framework_version(session): | ||
session.return_value.boto_region_name = REGION | ||
|
||
model = _create_model() | ||
with pytest.raises(ValueError) as e: | ||
model.compile( | ||
target_instance_family="ml_c4", | ||
input_shape={"data": [1, 3, 1024, 1024]}, | ||
output_path="s3://output", | ||
role="role", | ||
framework="pytorch", | ||
framework_version="1.6.1", | ||
job_name="compile-model", | ||
) | ||
|
||
assert "Unsupported neo-pytorch version: 1.6.1." in str(e) |
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.
any specific reason we are removing negative test 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 as the previous reply.
Since the uri is fetched from Neo API now, the API response will put inference uri
as None
if there is not a proper inference image.
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 |
* update smdmp change log, archive api doc for 1.4.0 and 1.5.0 * add no-index flags * finish api doc archive * fix: Set ProcessingStep upload locations deterministically to avoid c… (aws#2790) * fix: Prevent repack_model script from referencing nonexistent directories (aws#2755) Co-authored-by: Payton Staub <[email protected]> Co-authored-by: Ahsan Khan <[email protected]> * fix: S3Input - add support for instance attributes (aws#2754) * fix: typos and broken link (aws#2765) Co-authored-by: Shreya Pandit <[email protected]> * add all api docs * add appendix, fix links * structural changes, fix links * incorporate feedback * prepare release v2.72.1 * update development version to v2.72.2.dev0 Co-authored-by: Payton Staub <[email protected]> Co-authored-by: Payton Staub <[email protected]> Co-authored-by: Ahsan Khan <[email protected]> Co-authored-by: Mufaddal Rohawala <[email protected]> Co-authored-by: Mohamed Ali Jamaoui <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Jeniya Tabassum <[email protected]>
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 |
framework, | ||
framework_version, | ||
) | ||
self.image_uri = job_status.get("InferenceImage", None) |
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.
What is the impact if this is None? Would that prevent creation of model? Can we have a default instead?
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.
What is the impact if this is None?
It would be None
only if there is no recommended inference image. In that case, all other functions depending on this value ought to fail naturally since it is not valid.
Would that prevent creation of model?
No. In model.compile function, it simply launches a compilation job.
Can we have a default instead?
From now on, we want user to use the image_uri
provided by Neo service. Even if we decide to have a default image-uri later, we will make that change through our API response.
Co-authored-by: chenxy <[email protected]>
Currently the Clarify BiasConfig only accepts facet name. Actually Clarify analysis configuration supports both name and index. This commit adds the same support to BiasConfig.
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 |
f5e6849
to
34b07c0
Compare
96c01d7
to
c437191
Compare
Since the history and the diff are getting messier overtime, I create a new PR if that helps. |
Since the history and the diff are getting messier overtime, I create a new #2923 if that helps. |
Issue #, if available:
Description of changes:
DescribeCompilationJob
API responseTesting done:
unit tests passed
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.