Skip to content

Commit d00e1cd

Browse files
authored
Fixed versions (#70)
1 parent 73d4870 commit d00e1cd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

1_experiment_train.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"outputs": [],
3333
"source": [
34-
"!pip install onnx onnxruntime tf2onnx"
34+
"!pip install onnx==1.17.0 onnxruntime==1.20.1 tf2onnx==1.16.1"
3535
]
3636
},
3737
{

2_save_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"metadata": {},
2525
"outputs": [],
2626
"source": [
27-
"!pip install boto3 botocore"
27+
"!pip install boto3==1.35.55 botocore==1.35.55"
2828
]
2929
},
3030
{

7_get_data_train_upload.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ deploymentSpec:
9090
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
9191
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.8.0'\
9292
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' &&\
93-
\ python3 -m pip install --quiet --no-warn-script-location 'onnx' 'onnxruntime'\
94-
\ 'tf2onnx' && \"$0\" \"$@\"\n"
93+
\ python3 -m pip install --quiet --no-warn-script-location 'onnx==1.17.0' 'onnxruntime==1.20.1'\
94+
\ 'tf2onnx==1.16.1' && \"$0\" \"$@\"\n"
9595
- sh
9696
- -ec
9797
- 'program_path=$(mktemp -d)
@@ -170,7 +170,7 @@ deploymentSpec:
170170
\ python3 -m ensurepip --user || apt-get install python3-pip\nfi\n\nPIP_DISABLE_PIP_VERSION_CHECK=1\
171171
\ python3 -m pip install --quiet --no-warn-script-location 'kfp==2.8.0'\
172172
\ '--no-deps' 'typing-extensions>=3.7.4,<5; python_version<\"3.9\"' &&\
173-
\ python3 -m pip install --quiet --no-warn-script-location 'boto3' 'botocore'\
173+
\ python3 -m pip install --quiet --no-warn-script-location 'boto3==1.35.55' 'botocore==1.35.55'\
174174
\ && \"$0\" \"$@\"\n"
175175
- sh
176176
- -ec

pipeline/7_get_data_train_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_data(train_data_output_path: OutputPath(), validate_data_output_path: Ou
2323

2424
@dsl.component(
2525
base_image="quay.io/modh/runtime-images:runtime-cuda-tensorflow-ubi9-python-3.9-2024a-20240523",
26-
packages_to_install=["onnx", "onnxruntime", "tf2onnx"],
26+
packages_to_install=["onnx==1.17.0", "onnxruntime==1.20.1", "tf2onnx==1.16.1"],
2727
)
2828
def train_model(train_data_input_path: InputPath(), validate_data_input_path: InputPath(), model_output_path: OutputPath()):
2929
import numpy as np
@@ -117,7 +117,7 @@ def train_model(train_data_input_path: InputPath(), validate_data_input_path: In
117117

118118
@dsl.component(
119119
base_image="quay.io/modh/runtime-images:runtime-cuda-tensorflow-ubi9-python-3.9-2024a-20240523",
120-
packages_to_install=["boto3", "botocore"]
120+
packages_to_install=["boto3==1.35.55", "botocore==1.35.55"]
121121
)
122122
def upload_model(input_model_path: InputPath()):
123123
import os

0 commit comments

Comments
 (0)