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 1818import os
1919import io
2020import numpy as np
21+ from sagemaker import image_uris
2122
2223from sagemaker .lineage .artifact import Artifact
2324from sagemaker .lineage .association import Association
@@ -196,6 +197,14 @@ def test_happy_pytorch_sagemaker_endpoint_with_torch_serve(
196197 )
197198
198199 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+ ),
199208 mode = Mode .SAGEMAKER_ENDPOINT ,
200209 schema_builder = squeezenet_schema ,
201210 role_arn = role_arn ,
You can’t perform that action at this time.
0 commit comments