File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 8
8
" # Payment classification pipeline"
9
9
]
10
10
},
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
+ },
11
24
{
12
25
"cell_type" : " code" ,
13
26
"execution_count" : 1 ,
26
39
},
27
40
{
28
41
"cell_type" : " code" ,
29
- "execution_count" : 2 ,
42
+ "execution_count" : null ,
30
43
"id" : " e34f8c80-6584-4e80-981c-0f17e1584ebf" ,
31
44
"metadata" : {
32
45
"tags" : []
46
59
" user_project=True,\n " ,
47
60
" parameters={\n " ,
48
61
" # \" source\" : \" git://github.com/mlrun/demo-sagemaker#main\" ,\n " ,
49
- " \" default_image\" : \" yonishelach/sagemaker-demo\"\n " ,
50
62
" }\n " ,
51
63
" )"
52
64
]
Original file line number Diff line number Diff line change @@ -31,14 +31,8 @@ def setup(
31
31
32
32
# Unpack parameters:
33
33
source = project .get_param (key = "source" )
34
- default_image = project .get_param (key = "default_image" )
35
34
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 )
42
36
43
37
# Set the project git source:
44
38
if source :
@@ -71,6 +65,7 @@ def _build_image(project: mlrun.projects.MlrunProject):
71
65
"pip install -U xgboost" ,
72
66
"pip install -U tarsafe" ,
73
67
"pip install -U aiobotocore" ,
68
+ "pip install -U mlrun[complete]" ,
74
69
],
75
70
set_as_default = True ,
76
71
)
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def train(context):
38
38
container ,
39
39
role ,
40
40
instance_count = 1 ,
41
- instance_type = "ml.m4 .xlarge" ,
41
+ instance_type = "ml.m5 .xlarge" ,
42
42
output_path = "s3://{}/{}/output" .format (s3_bucket , bucket_prefix ),
43
43
sagemaker_session = sagemaker_session ,
44
44
)
You can’t perform that action at this time.
0 commit comments