File tree Expand file tree Collapse file tree 6 files changed +11
-7
lines changed
Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ description = "An python package for sagemaker core functionalities"
99authors = [
1010 {
name =
" AWS" ,
email =
" [email protected] " }
1111]
12- readme = " README.rst"
12+ readme = " README.rst"
1313dependencies = [
1414 # Add your dependencies here (Include lower and upper bounds as applicable)
1515 " boto3>=1.42.2,<2.0.0" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66name = " sagemaker-mlops"
77dynamic = [" version" ]
88description = " SageMaker MLOps package for workflow orchestration and model building"
9- readme = " README.md"
9+ readme = " README.md"
1010requires-python = " >=3.9"
1111authors = [
1212 {name = " Amazon Web Services" },
Original file line number Diff line number Diff line change @@ -99,12 +99,13 @@ def build_and_deploy():
9999 )
100100
101101 # Build and deploy your model. Returns SageMaker Core Model and Endpoint objects
102- core_model = model_builder .build (model_name = f"{ MODEL_NAME_PREFIX } -{ unique_id } " )
102+ core_model = model_builder .build (model_name = f"{ MODEL_NAME_PREFIX } -{ unique_id } " , region = AWS_REGION )
103103 logger .info (f"Model Successfully Created: { core_model .model_name } " )
104104
105105 core_endpoint = model_builder .deploy (
106106 endpoint_name = f"{ ENDPOINT_NAME_PREFIX } -{ unique_id } " ,
107- initial_instance_count = 1
107+ initial_instance_count = 1 ,
108+ region = AWS_REGION
108109 )
109110 logger .info (f"Endpoint Successfully Created: { core_endpoint .endpoint_name } " )
110111
Original file line number Diff line number Diff line change @@ -107,12 +107,13 @@ def build_and_deploy():
107107 )
108108
109109 # Build and deploy your model. Returns SageMaker Core Model and Endpoint objects
110- core_model = model_builder .build (model_name = f"{ MODEL_NAME_PREFIX } -{ unique_id } " )
110+ core_model = model_builder .build (model_name = f"{ MODEL_NAME_PREFIX } -{ unique_id } " , region = AWS_REGION )
111111 logger .info (f"Model Successfully Created: { core_model .model_name } " )
112112
113113 core_endpoint = model_builder .deploy (
114114 endpoint_name = f"{ ENDPOINT_NAME_PREFIX } -{ unique_id } " ,
115- initial_instance_count = 1
115+ initial_instance_count = 1 ,
116+ region = AWS_REGION
116117 )
117118 logger .info (f"Endpoint Successfully Created: { core_endpoint .endpoint_name } " )
118119
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ commands =
9090 pip install ' torch==2.3.1+cpu' -f ' https://download.pytorch.org/whl/torch_stable.html'
9191 pip install ' torchvision==0.18.1+cpu' -f ' https://download.pytorch.org/whl/torch_stable.html'
9292 pip install ' dill>=0.3.9'
93+ pip install ' tensorflow==2.16.2'
9394
9495 pytest {posargs}
9596deps =
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ test = [
5757 " pandas" ,
5858 " scipy" ,
5959 " omegaconf" ,
60- " graphene"
60+ " graphene" ,
61+ " IPython"
6162]
6263
6364[tool .setuptools .packages .find ]
You can’t perform that action at this time.
0 commit comments