Skip to content

Commit 1900524

Browse files
ashishgupta023Ashish Gupta
and
Ashish Gupta
authored
feature: add inferentia pytorch inference container config (#1915)
* add inferentia pytorch config * add test * fix styling Co-authored-by: Ashish Gupta <[email protected]>
1 parent 69c2107 commit 1900524

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"processors": ["inf"],
3+
"scope": ["inference"],
4+
"versions": {
5+
"1.5.1": {
6+
"py_versions": ["py3"],
7+
"registries": {
8+
"us-east-1": "785573368785",
9+
"us-west-2": "301217895009"
10+
},
11+
"repository": "sagemaker-neo-pytorch"
12+
}
13+
}
14+
}

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"coach_tensorflow",
4545
"inferentia_mxnet",
4646
"inferentia_tensorflow",
47+
"inferentia_pytorch",
4748
"mxnet",
4849
"neo_mxnet",
4950
"neo_pytorch",

tests/unit/sagemaker/image_uris/test_neo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ def test_inferentia_tensorflow(inferentia_tensorflow_version):
118118
_test_inferentia_framework_uris("tensorflow", inferentia_tensorflow_version)
119119

120120

121+
def test_inferentia_pytorch(inferentia_pytorch_version):
122+
_test_inferentia_framework_uris("pytorch", inferentia_pytorch_version)
123+
124+
121125
def _expected_framework_uri(framework, version, region="us-west-2", processor="cpu"):
122126
return expected_uris.framework_uri(
123127
"sagemaker-{}".format(framework),

0 commit comments

Comments
 (0)