Skip to content

Commit

Permalink
bump paddleserver to 0.11.2, add testing instructions (#40)
Browse files Browse the repository at this point in the history
* bump paddleserver to 0.11.2, add testing instructions
  • Loading branch information
ca-scribner committed Mar 4, 2024
1 parent e54c69e commit ee9909a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
33 changes: 33 additions & 0 deletions paddleserver/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Testing

### Prerequisites

* docker
* Google Cloud CLI tools ([installation guide](https://cloud.google.com/sdk/docs/install))

### Instructions

From the [upstream usage example](https://kserve.github.io/website/master/modelserving/v1beta1/paddle/), this rock can be tested locally using:

Launch the server with:
```
# download the model locally
mkdir sample_model
gsutil cp -r gs://kfserving-examples/models/paddle/resnet ./sample_model/
# mount the model into the container at runtime
docker run -p 8080:8080 -v $(pwd)/sample_model/resnet:/mnt/models paddleserver:<version> --model_name test_model --model_dir=/mnt/models --http_port=8080
```

Test the server with:
```
wget https://kserve.github.io/website/master/modelserving/v1beta1/paddle/jay.json -O input.json
curl -v
-H "Content-Type: application/json" \
-d @./input.json \
localhost:8080/v1/models/test_model:predict
```

which should return the expected output described in the docs.
6 changes: 3 additions & 3 deletions paddleserver/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
name: paddleserver
summary: Paddle server for Kserve deployments
description: "Kserve Paddle server"
version: "0.11.0"
version: "0.11.2"
license: Apache-2.0
base: [email protected]
platforms:
Expand All @@ -33,7 +33,7 @@ parts:
plugin: nil
source: https://github.com/kserve/kserve.git
source-subdir: python
source-tag: v0.11.0
source-tag: v0.11.2
build-packages:
- build-essential
- libgomp1
Expand Down Expand Up @@ -75,7 +75,7 @@ parts:
after: [python]
source: https://github.com/kserve/kserve.git
source-subdir: python
source-tag: v0.11.0
source-tag: v0.11.2
override-build: |
cp -fr third_party/* ${CRAFT_PART_INSTALL}/third_party

0 comments on commit ee9909a

Please sign in to comment.