forked from bentoml/BentoML
/
config.yml
255 lines (222 loc) · 5.03 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# NOTE: PUT YOUR PYPI dependencies under `dependencies`
# `dependencies` will pass all given arguments to a `requirements.txt`
# then `./scripts/ci/run_tests.sh` will try to install all given dependencies
# for given tests
# `external_scripts` will be run AFTER installing dependencies, and can be used
# to setup external envvar
template: &tmpl
root_test_dir: "tests/integration/frameworks"
is_dir: false
override_name_or_path:
dependencies: []
external_scripts:
type_tests: "integration"
new_template: &ntmpl
root_test_dir: "tests/integration/frameworks"
is_dir: false
override_name_or_path: "test_frameworks.py"
depedencies: []
external_scripts:
type_tests: "integration"
unit:
<<: *tmpl
root_test_dir: "tests/unit"
is_dir: true
type_tests: "unit"
http_server:
<<: *tmpl
root_test_dir: "tests/e2e/bento_server_http"
is_dir: true
type_tests: "e2e"
dependencies:
- Pillow
- pydantic
- fastapi
grpc_server:
<<: *tmpl
root_test_dir: "tests/e2e/bento_server_grpc"
is_dir: true
type_tests: "e2e"
dependencies:
- Pillow
- pydantic
catboost:
<<: *ntmpl
dependencies:
- "catboost"
detectron2:
<<: *tmpl
dependencies:
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.9.0+cpu"
- "torchvision==0.10.0+cpu"
- "-f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.9/index.html"
- "detectron2"
easyocr:
<<: *tmpl
dependencies:
- "easyocr"
- "opencv-python-headless==4.5.4.60"
evalml:
<<: *tmpl
dependencies:
- "evalml>=0.25.0"
fastai:
<<: *ntmpl
dependencies:
- fastai
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.9.0+cpu"
- "torchvision==0.10.0+cpu"
- pandas
- scikit-learn
fasttext:
<<: *tmpl
dependencies:
- "fasttext"
gluon:
<<: *tmpl
dependencies:
- "mxnet"
h2o:
<<: *tmpl
dependencies:
- "h2o"
keras_tf1:
<<: *tmpl
override_name_or_path: test_keras_impl.py
dependencies:
- "tensorflow==1.15"
- "h5py==2.10.0"
keras_tf2:
<<: *ntmpl
dependencies:
- "protobuf<3.20,>=3.9.2"
- "tensorflow==2.7.3"
lightgbm:
<<: *ntmpl
dependencies:
- "lightgbm"
# we need to use external_scripts to update scikit-learn here due to some error
# with mismatch scikit-learn from mlflow side
mlflow:
<<: *tmpl
is_dir: true
override_name_or_path: mlflow
dependencies:
- "mlflow"
external_scripts: |
python -m pip install -U scikit-learn
onnx:
<<: *ntmpl
dependencies:
- "onnx"
- "onnxruntime"
- "skl2onnx"
- "tensorflow"
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.9.0+cpu"
onnxmlir:
<<: *tmpl
dependencies:
- "tensorflow"
- "tf2onnx"
- "pandas"
- "protobuf"
paddle:
<<: *tmpl
is_dir: true
override_name_or_path: paddle
dependencies:
- "opencv-python==4.5.4.58"
- "paddlepaddle"
- "paddlehub"
- "gast==0.3.3"
external_scripts: |
export SETUPTOOLS_USE_DISTUTILS=stdlib
picklable_model:
<<: *tmpl
pycaret:
<<: *tmpl
dependencies:
- "numba==0.53.1"
- "pycaret==2.3.3"
pyspark:
<<: *tmpl
dependencies:
- "pyspark"
pytorch:
<<: *ntmpl
dependencies:
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.9.0+cpu"
- "torchvision==0.10.0+cpu"
- "psutil"
sklearn:
<<: *tmpl
spacy:
<<: *tmpl
is_dir: true
override_name_or_path: spacy
dependencies:
- "spacy==3.1.2"
- "pyyaml"
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.9.0+cpu"
- "torchvision==0.10.0+cpu"
- "tensorflow==2.7.3"
external_scripts: |
python -m spacy download en_core_web_sm
python -m pip install "typing_extensions>=3.10"
statsmodels:
<<: *tmpl
dependencies:
- "statsmodels==0.12.2"
- "scipy==1.7.3" # statsmodels 0.12.2 is using internal APIs of scipy
- "joblib"
tf1:
<<: *tmpl
override_name_or_path: test_tensorflow_v1_impl.py
dependencies:
- "tensorflow==1.15"
transformers:
<<: *ntmpl
dependencies:
- "transformers"
- "tensorflow"
- "tensorflow_hub"
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.11.0"
- "jax"
- "jaxlib"
- "flax"
- "importlib_metadata"
- "Pillow==8.4.0"
- "typing_extensions==4.2.0"
external_scripts: |
python -m pip install "typing_extensions>=3.10"
xgboost:
<<: *ntmpl
dependencies:
- "xgboost"
tensorflow_v2:
<<: *ntmpl
dependencies:
- "tensorflow"
torchscript:
<<: *ntmpl
dependencies:
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.11.0+cpu"
- "torchvision==0.12.0+cpu"
- "protobuf<4.21.0" # https://github.com/PyTorchLightning/pytorch-lightning/issues/13159
- "psutil"
pytorch_lightning:
<<: *ntmpl
dependencies:
- "-f https://download.pytorch.org/whl/torch_stable.html"
- "torch==1.11.0+cpu"
- "torchvision==0.12.0+cpu"
- "pytorch_lightning==1.6.3"
- "protobuf<4.21.0" # https://github.com/PyTorchLightning/pytorch-lightning/issues/13159
- "psutil"