Skip to content

Commit 901b1d0

Browse files
Merge pull request #27 from felipenv/main
ML-9956 removing default image
2 parents aa19640 + 69121b2 commit 901b1d0

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

financial-payment-pipeline.ipynb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
"# Payment classification pipeline"
99
]
1010
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"id": "a3f980d2",
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"%pip install --upgrade mlrun --quiet # upgrade mlrun to the latest vesion\n",
19+
"%pip install --upgrade sagemaker --quiet # upgrade SageMaker to the latest vesion\n",
20+
"%pip install \"kfp==1.8.22\" \"kfp-server-api==1.8.5\" --quiet\n",
21+
"%pip install \"protobuf<4,>=3.20.0\" --force-reinstall --quiet"
22+
]
23+
},
1124
{
1225
"cell_type": "code",
1326
"execution_count": 1,
@@ -26,7 +39,7 @@
2639
},
2740
{
2841
"cell_type": "code",
29-
"execution_count": 2,
42+
"execution_count": null,
3043
"id": "e34f8c80-6584-4e80-981c-0f17e1584ebf",
3144
"metadata": {
3245
"tags": []
@@ -46,7 +59,6 @@
4659
" user_project=True,\n",
4760
" parameters={\n",
4861
" # \"source\" : \"git://github.com/mlrun/demo-sagemaker#main\",\n",
49-
" \"default_image\" : \"yonishelach/sagemaker-demo\"\n",
5062
" }\n",
5163
")"
5264
]

project_setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ def setup(
3131

3232
# Unpack parameters:
3333
source = project.get_param(key="source")
34-
default_image = project.get_param(key="default_image")
3534

36-
# Set or build the default image:
37-
if default_image is None and not project.spec.build.image:
38-
print("Building default image for the demo:")
39-
_build_image(project=project)
40-
else:
41-
project.set_default_image(default_image)
35+
_build_image(project=project)
4236

4337
# Set the project git source:
4438
if source:
@@ -71,6 +65,7 @@ def _build_image(project: mlrun.projects.MlrunProject):
7165
"pip install -U xgboost",
7266
"pip install -U tarsafe",
7367
"pip install -U aiobotocore",
68+
"pip install -U mlrun[complete]",
7469
],
7570
set_as_default=True,
7671
)

src/functions/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def train(context):
3838
container,
3939
role,
4040
instance_count=1,
41-
instance_type="ml.m4.xlarge",
41+
instance_type="ml.m5.xlarge",
4242
output_path="s3://{}/{}/output".format(s3_bucket, bucket_prefix),
4343
sagemaker_session=sagemaker_session,
4444
)

0 commit comments

Comments
 (0)