From 1e3a8f7cc4159efd52c0f76d289634ff2f00aece Mon Sep 17 00:00:00 2001 From: Stan Kirdey Date: Tue, 28 Feb 2023 23:09:46 -0800 Subject: [PATCH] Updating readme to reflect version 0.20.0 -> 0.21.0 change (#508) * Updating readme to reflect version 0.20.0 -> 0.21.0 change Co-authored-by: Frank Liu --- README.md | 12 ++++++------ engines/python/README.md | 4 ++-- .../main/java/ai/djl/python/engine/DsNDManager.java | 2 +- .../main/java/ai/djl/python/engine/PyNDManager.java | 2 +- serving/docker/README.md | 4 ++-- .../djl/serving/plugins/DependencyManagerTest.java | 2 +- wlm/README.md | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 461d5b8c7..1804589bc 100644 --- a/README.md +++ b/README.md @@ -50,20 +50,20 @@ brew services stop djl-serving For Ubuntu ``` -curl -O https://publish.djl.ai/djl-serving/djl-serving_0.20.0-1_all.deb -sudo dpkg -i djl-serving_0.20.0-1_all.deb +curl -O https://publish.djl.ai/djl-serving/djl-serving_0.21.0-1_all.deb +sudo dpkg -i djl-serving_0.21.0-1_all.deb ``` For Windows We are considering to create a `chocolatey` package for Windows. For the time being, you can -download djl-serving zip file from [here](https://publish.djl.ai/djl-serving/serving-0.20.0.zip). +download djl-serving zip file from [here](https://publish.djl.ai/djl-serving/serving-0.21.0.zip). ``` -curl -O https://publish.djl.ai/djl-serving/serving-0.20.0.zip -unzip serving-0.20.0.zip +curl -O https://publish.djl.ai/djl-serving/serving-0.21.0.zip +unzip serving-0.21.0.zip # start djl-serving -serving-0.20.0\bin\serving.bat +serving-0.21.0\bin\serving.bat ``` ### Docker diff --git a/engines/python/README.md b/engines/python/README.md index 9b9e6a1a3..9a6026ca8 100644 --- a/engines/python/README.md +++ b/engines/python/README.md @@ -29,13 +29,13 @@ The javadocs output is generated in the `build/doc/javadoc` folder. ## Installation You can pull the Python engine from the central Maven repository by including the following dependency: -- ai.djl.python:python:0.20.0 +- ai.djl.python:python:0.21.0 ```xml ai.djl.python python - 0.20.0 + 0.21.0 runtime ``` diff --git a/engines/python/src/main/java/ai/djl/python/engine/DsNDManager.java b/engines/python/src/main/java/ai/djl/python/engine/DsNDManager.java index a768b5e47..dee714b3b 100644 --- a/engines/python/src/main/java/ai/djl/python/engine/DsNDManager.java +++ b/engines/python/src/main/java/ai/djl/python/engine/DsNDManager.java @@ -19,7 +19,7 @@ /** * {@code DsNDManager} is the Python engine implementation of {@link NDManager}. * - *

TODO: remove this class in 0.20.0 + *

TODO: remove this class in 0.21.0 */ public class DsNDManager extends PyNDManager { diff --git a/engines/python/src/main/java/ai/djl/python/engine/PyNDManager.java b/engines/python/src/main/java/ai/djl/python/engine/PyNDManager.java index e062e23e1..cbae9b3e0 100644 --- a/engines/python/src/main/java/ai/djl/python/engine/PyNDManager.java +++ b/engines/python/src/main/java/ai/djl/python/engine/PyNDManager.java @@ -89,7 +89,7 @@ public PyNDManager newSubManager(Device device) { /** {@inheritDoc} */ @Override public Engine getEngine() { - // FIXME: return engine in 0.20.0, and make this method final + // FIXME: return engine in 0.21.0, and make this method final return Engine.getEngine("Python"); } diff --git a/serving/docker/README.md b/serving/docker/README.md index 1d91c2aa6..0a8cb3326 100644 --- a/serving/docker/README.md +++ b/serving/docker/README.md @@ -32,7 +32,7 @@ mkdir models cd models curl -O https://resources.djl.ai/test-models/pytorch/bert_qa_jit.tar.gz -docker run -it --rm -v $PWD:/opt/ml/model -p 8080:8080 deepjavalibrary/djl-serving:0.20.0 +docker run -it --rm -v $PWD:/opt/ml/model -p 8080:8080 deepjavalibrary/djl-serving:0.21.0 ``` ### GPU @@ -52,5 +52,5 @@ mkdir models cd models curl -O https://resources.djl.ai/test-models/pytorch/bert_qa_inf1.tar.gz -docker run --device /dev/neuron0 -it --rm -v $PWD:/opt/ml/model -p 8080:8080 deepjavalibrary/djl-serving:0.20.0-inf1 +docker run --device /dev/neuron0 -it --rm -v $PWD:/opt/ml/model -p 8080:8080 deepjavalibrary/djl-serving:0.21.0-inf1 ``` diff --git a/serving/src/test/java/ai/djl/serving/plugins/DependencyManagerTest.java b/serving/src/test/java/ai/djl/serving/plugins/DependencyManagerTest.java index bfe5ab50f..8a31a56f3 100644 --- a/serving/src/test/java/ai/djl/serving/plugins/DependencyManagerTest.java +++ b/serving/src/test/java/ai/djl/serving/plugins/DependencyManagerTest.java @@ -25,7 +25,7 @@ public void testInstallDependency() throws IOException { dm.installEngine("OnnxRuntime"); dm.installEngine("XGBoost"); - dm.installDependency("ai.djl.pytorch:pytorch-jni:1.13.0-0.20.0"); + dm.installDependency("ai.djl.pytorch:pytorch-jni:1.13.1-0.21.0"); Assert.assertThrows(() -> dm.installDependency("ai.djl.pytorch:pytorch-jni")); } diff --git a/wlm/README.md b/wlm/README.md index 374f357d0..87d9d5848 100644 --- a/wlm/README.md +++ b/wlm/README.md @@ -56,7 +56,7 @@ You can pull the server from the central Maven repository by including the follo ai.djl.serving wlm - 0.20.0 + 0.21.0 ```