File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
tests/integ/sagemaker/serve Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 18
18
import os
19
19
import io
20
20
import numpy as np
21
+ from sagemaker import image_uris
21
22
22
23
from sagemaker .lineage .artifact import Artifact
23
24
from sagemaker .lineage .association import Association
@@ -196,6 +197,14 @@ def test_happy_pytorch_sagemaker_endpoint_with_torch_serve(
196
197
)
197
198
198
199
model_builder = ModelBuilder (
200
+ image_uri = image_uris .retrieve (
201
+ framework = "pytorch" ,
202
+ region = sagemaker_session .boto_region_name ,
203
+ version = "2.2.0" , # Compatible version for py310
204
+ image_scope = "inference" ,
205
+ py_version = "py310" ,
206
+ instance_type = cpu_instance_type ,
207
+ ),
199
208
mode = Mode .SAGEMAKER_ENDPOINT ,
200
209
schema_builder = squeezenet_schema ,
201
210
role_arn = role_arn ,
You can’t perform that action at this time.
0 commit comments