-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature: add pytorch 1.5.1 eia configuration #2441
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
Changes from 5 commits
d625ebf
f3eaf1b
4bb5338
e487a03
3ac5bf8
fecc3c8
1abdcd9
02ad179
3964980
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,14 @@ | |
"us-gov-west-1": "246785580436", | ||
"us-iso-east-1": "744548109606", | ||
} | ||
ELASTIC_INFERENCE_REGIONS = [ | ||
"ap-northeast-1", | ||
"ap-northeast-2", | ||
"eu-west-1", | ||
"us-east-1", | ||
"us-east-2", | ||
"us-west-2", | ||
] | ||
|
||
|
||
def _test_image_uris( | ||
|
@@ -385,13 +393,13 @@ def test_pytorch_eia(pytorch_eia_version, pytorch_eia_py_version): | |
) | ||
assert expected == uri | ||
|
||
for region, account in DLC_ALTERNATE_REGION_ACCOUNTS.items(): | ||
for region in ELASTIC_INFERENCE_REGIONS: | ||
uri = image_uris.retrieve(region=region, **base_args) | ||
|
||
expected = expected_uris.framework_uri( | ||
"pytorch-inference-eia", | ||
pytorch_eia_version, | ||
account, | ||
DLC_ACCOUNT, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would recommend looking up the account id from the I guess something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! |
||
py_version=pytorch_eia_py_version, | ||
region=region, | ||
) | ||
|
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.
All these regions, apart from
ap-northeast-1
,ap-northeast-2
,eu-west-1
,us-east-1
,us-east-2
, andus-west-2
, cannot create EI inference endpoints because EI is unsupported in those regions.The list of regions for PT 1.5.1 is correct, and the list of regions for PT 1.3.1 needs to be updated to match that.
Reference: https://aws.amazon.com/machine-learning/elastic-inference/pricing/
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.
Thanks for clarifying! As discussed, this does lead to a change in customer experience whereby if these regions are non existent, we won't be able to construct the image URIs for the customer properly, and it will diverge from the current error thrown in this scenario. Since we aren't supporting EIA in these regions prior to this, I think this is a correct bug fix in that regard; but we should in general think of introducing a framework which checks for feature/region compatibility and alerts users accordingly, which will allow for easier and more seamless deprecation