Slackbot
03/29/2023, 3:37 PMChaoyu
03/29/2023, 3:41 PMstage('build') {
steps {
sh 'python my_script.py'
}
}
Sarthak Verma
03/29/2023, 3:45 PMChaoyu
03/29/2023, 3:52 PMbentoml build
is a CLI command, you can invoke it directly in shellChaoyu
03/29/2023, 3:53 PMpip install bentoml
, you should have access to the bentoml
cli command, try which bentoml
Sarthak Verma
03/29/2023, 3:54 PM+ python3 -c from blob_connection import download_model_files; download_model_files("M156601414")
code1.1 M156601414
M156601414/bentofile.yaml
M156601414/bentoml_store.py
M156601414/deploy.zip
M156601414/diabetes_dt.pkl
M156601414/requirements.txt
M156601414/service.py
Model files downloaded successfully.
[Pipeline] sh
+ python3 bentoml_store.py
/var/lib/jenkins/.local/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator DecisionTreeClassifier from version 1.0.2 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
<https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations>
warnings.warn(
Converting 'Machine_Learning_Model' to lowercase: 'machine_learning_model'.
[Pipeline] sh
+ bentoml list
Tag Size Creation Time Path
It is not unable to save it to bentoml store on VM.Instead it is creating a vague folder.Chaoyu
03/29/2023, 3:59 PMSarthak Verma
03/29/2023, 4:00 PMChaoyu
03/29/2023, 4:02 PMChaoyu
03/29/2023, 4:02 PMSarthak Verma
03/29/2023, 4:06 PM+ python3 bentoml_store.py
/var/lib/jenkins/.local/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator DecisionTreeClassifier from version 1.0.2 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
<https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations>
warnings.warn(
Converting 'Machine_Learning_Model' to lowercase: 'machine_learning_model'.
[Pipeline] sh
+ bentoml models list
Tag Module Size Creation Time
machine_learning_model:f3qnu… bentoml.sklearn 16.58 KiB 2023-03-29 16:03:02
It is saving model with a vague name.My bentoml_store.py has different nameChaoyu
03/29/2023, 4:07 PMChaoyu
03/29/2023, 4:07 PMChaoyu
03/29/2023, 4:07 PMSarthak Verma
03/29/2023, 4:08 PMChaoyu
03/29/2023, 4:10 PMChaoyu
03/29/2023, 4:10 PMSarthak Verma
03/29/2023, 4:11 PMSarthak Verma
03/29/2023, 4:11 PM+ python3 -c from blob_connection import download_model_files; download_model_files("M156601414")
code1.1 M156601414
M156601414/bentofile.yaml
M156601414/bentoml_store.py
M156601414/deploy.zip
M156601414/diabetes_dt.pkl
M156601414/requirements.txt
M156601414/service.py
Model files downloaded successfully.
[Pipeline] sh
+ python3 bentoml_store.py
/var/lib/jenkins/.local/lib/python3.10/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator DecisionTreeClassifier from version 1.0.2 when using version 1.2.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
<https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations>
warnings.warn(
Converting 'Machine_Learning_Model' to lowercase: 'machine_learning_model'.
[Pipeline] sh
+ bentoml models list
Tag Module Size Creation Time
machine_learning_model:f3qnu… bentoml.sklearn 16.58 KiB 2023-03-29 16:03:02
Chaoyu
03/29/2023, 4:13 PMSarthak Verma
03/29/2023, 4:14 PMChaoyu
03/29/2023, 4:23 PMSarthak Verma
03/29/2023, 4:24 PMChaoyu
03/29/2023, 4:30 PMSarthak Verma
03/29/2023, 4:36 PMSarthak Verma
03/29/2023, 4:36 PMSarthak Verma
03/29/2023, 4:37 PMSarthak Verma
03/29/2023, 5:10 PMChaoyu
03/29/2023, 9:54 PM