Skip to content

Commit

Permalink
Add a dockerfile for the fvt image
Browse files Browse the repository at this point in the history
Signed-off-by: ted chang <htchang@us.ibm.com>
  • Loading branch information
tedhtchang committed Jan 11, 2023
1 parent 08b1ee7 commit cee8e3a
Show file tree
Hide file tree
Showing 59 changed files with 7,128 additions and 1 deletion.
25 changes: 25 additions & 0 deletions fvt/minio-examples-image/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2022 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

From quay.io/cloudservices/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.35a0912ff
EXPOSE 9000
RUN mkdir -p /data1/modelmesh-example-models
COPY sklearn /data1/modelmesh-example-models/sklearn/
COPY lightgbm /data1/modelmesh-example-models/lightgbm/
COPY onnx /data1/modelmesh-example-models/onnx/
COPY pytorch /data1/modelmesh-example-models/pytorch/
COPY xgboost /data1/modelmesh-example-models/xgboost/
COPY tensorflow /data1/modelmesh-example-models/tensorflow/
COPY keras /data1/modelmesh-example-models/keras/
COPY fvt /data1/modelmesh-example-models/fvt/
9 changes: 8 additions & 1 deletion fvt/minio-examples-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ This MinIO docker image contains example models. When ModelMesh is deployed with

## Build the image locally

`docker build -t docker.io/kserve/modelmesh-minio-examples:latest .`
```sh
docker build -t docker.io/kserve/modelmesh-minio-examples:latest .
```

Building the dev image for using with `--fvt` flag
```sh
docker build -f Dockerfile.dev -t kserve/modelmesh-minio-dev-examples:latest .
```

## Usage examples

Expand Down
Binary file added fvt/minio-examples-image/fvt/keras/mnist.h5
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"implementation": "mlserver_lightgbm.LightGBMModel"
}
2,005 changes: 2,005 additions & 0 deletions fvt/minio-examples-image/fvt/lightgbm/mushroom-dup/model.bst

Large diffs are not rendered by default.

2,005 changes: 2,005 additions & 0 deletions fvt/minio-examples-image/fvt/lightgbm/mushroom.bst

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"implementation": "mlserver_lightgbm.LightGBMModel"
}
2,005 changes: 2,005 additions & 0 deletions fvt/minio-examples-image/fvt/lightgbm/mushroom/model.bst

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions fvt/minio-examples-image/fvt/onnx/onnx-test-model/config.pbtxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
platform: "onnxruntime_onnx"
max_batch_size: 32
input [
{
name: "input"
data_type: TYPE_FP32
dims: [3, 224, 224]
}
]
output [
{
name: "output"
data_type: TYPE_FP32
dims: [3]
label_filename: "test_labels.txt"
}
]
instance_group [
{
kind: KIND_AUTO
count: 1
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class1
class2
class3
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
backend: "onnxruntime"
max_batch_size: 0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
backend: "onnxruntime"
max_batch_size: 0
12 changes: 12 additions & 0 deletions fvt/minio-examples-image/fvt/onnx/schema/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"inputs": [{
"name": "Input3",
"datatype": "FP32",
"shape": [1,1,28,28]
}],
"outputs": [{
"name": "Plus214_Output_0",
"datatype": "FP32",
"shape": [1,10]
}]
}
Binary file not shown.
79 changes: 79 additions & 0 deletions fvt/minio-examples-image/fvt/openvino/mnist-dup/mnist.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0"?>
<mapping>
<map>
<framework name="Input3" output_port_id="Input3" />
<IR name="Input3" output_port_id="0" />
</map>
<map>
<framework name="Parameter5" output_port_id="Parameter5" />
<IR name="Parameter5" output_port_id="0" />
</map>
<map>
<framework name="Convolution28" output_port_id="Convolution28_Output_0" />
<IR name="Convolution28" output_port_id="2" />
</map>
<map>
<framework name="Parameter6" output_port_id="Parameter6" />
<IR name="Parameter6" output_port_id="0" />
</map>
<map>
<framework name="Plus30" output_port_id="Plus30_Output_0" />
<IR name="Plus30" output_port_id="2" />
</map>
<map>
<framework name="ReLU32" output_port_id="ReLU32_Output_0" />
<IR name="ReLU32" output_port_id="1" />
</map>
<map>
<framework name="Pooling66" output_port_id="Pooling66_Output_0" />
<IR name="Pooling66" output_port_id="1" />
</map>
<map>
<framework name="Parameter87" output_port_id="Parameter87" />
<IR name="Parameter87" output_port_id="0" />
</map>
<map>
<framework name="Convolution110" output_port_id="Convolution110_Output_0" />
<IR name="Convolution110" output_port_id="2" />
</map>
<map>
<framework name="Parameter88" output_port_id="Parameter88" />
<IR name="Parameter88" output_port_id="0" />
</map>
<map>
<framework name="Plus112" output_port_id="Plus112_Output_0" />
<IR name="Plus112" output_port_id="2" />
</map>
<map>
<framework name="ReLU114" output_port_id="ReLU114_Output_0" />
<IR name="ReLU114" output_port_id="1" />
</map>
<map>
<framework name="Pooling160" output_port_id="Pooling160_Output_0" />
<IR name="Pooling160" output_port_id="1" />
</map>
<map>
<framework name="Pooling160_Output_0_reshape0_shape" output_port_id="Pooling160_Output_0_reshape0_shape" />
<IR name="Pooling160_Output_0_reshape0_shape" output_port_id="0" />
</map>
<map>
<framework name="Times212_reshape0" output_port_id="Pooling160_Output_0_reshape0" />
<IR name="Times212_reshape0" output_port_id="2" />
</map>
<map>
<framework name="Times212_reshape1" output_port_id="Parameter193_reshape1" />
<IR name="Times212_reshape1" output_port_id="0" />
</map>
<map>
<framework name="Times212" output_port_id="Times212_Output_0" />
<IR name="Times212" output_port_id="2" />
</map>
<map>
<framework name="Parameter194" output_port_id="Parameter194" />
<IR name="Parameter194" output_port_id="0" />
</map>
<map>
<framework name="Plus214_Output_0" output_port_id="Plus214_Output_0" />
<IR name="Plus214_Output_0" output_port_id="2" />
</map>
</mapping>
Loading

0 comments on commit cee8e3a

Please sign in to comment.