Skip to content

Commit

Permalink
Increase DJL version to 0.30.0 (deepjavalibrary#3465)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Sep 11, 2024
1 parent 5bd8a0b commit 7e3d2a5
Show file tree
Hide file tree
Showing 36 changed files with 53 additions and 54 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ The following pseudocode demonstrates running training:

## Release Notes

* [0.30.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.30.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.30.0))
* [0.29.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.29.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.29.0))
* [0.28.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.28.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.28.0))
* [0.27.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.27.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.27.0))
* [0.26.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.26.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.26.0))
* [0.25.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.25.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.25.0))
* [0.24.0](https://github.com/deepjavalibrary/djl/releases/tag/v0.24.0) ([Code](https://github.com/deepjavalibrary/djl/tree/v0.24.0))
* [+25 releases](https://github.com/deepjavalibrary/djl/releases)

The release of DJL 0.30.0 is planned for September 2024.
The release of DJL 0.30.0 is planned for November 2024.

## Building From Source

Expand Down
2 changes: 1 addition & 1 deletion android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In gradle, you can add the 5 modules in your dependencies:

```groovy
dependencies {
implementation platform("ai.djl:bom:0.29.0")
implementation platform("ai.djl:bom:0.30.0")
implementation "ai.djl:api"
implementation "ai.djl.android:core"
Expand Down
4 changes: 2 additions & 2 deletions android/pytorch-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ cd ..
./gradlew compileAndroidJNI -Ppt_version=${PYTORCH_VERSION}
```

`jnilib/0.29.0/android` folder will be created after build, and shared library will be uploaded to S3 in CI build
`jnilib/0.30.0/android` folder will be created after build, and shared library will be uploaded to S3 in CI build

## Build PyTorch android library (.aar) and publish to Sonatype snapshot repo

Expand All @@ -138,7 +138,7 @@ cd ../../../android

# To avoid download jni from S3, manually copy them
mkdir -p pytorch-native/jnilib
cp -r ../engines/pytorch/pytorch-native/jnilib/0.29.0/android/* pytorch-native/jnilib
cp -r ../engines/pytorch/pytorch-native/jnilib/0.30.0/android/* pytorch-native/jnilib

./gradlew :pytorch-native:assemble
# publish to local maven repo (~/.m2 folder)
Expand Down
2 changes: 1 addition & 1 deletion api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can pull the DJL API from the central Maven repository by including the foll
<dependency>
<groupId>ai.djl</groupId>
<artifactId>api</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion basicdataset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basicdataset</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions bom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ will need to mention the type as pom and the scope as import) as the following:
<dependency>
<groupId>ai.djl</groupId>
<artifactId>bom</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -38,7 +38,7 @@ will need to mention the type as pom and the scope as import) as the following:
<dependency>
<groupId>ai.djl</groupId>
<artifactId>bom</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -65,7 +65,7 @@ will need to mention the type as pom and the scope as import) as the following:
- First you need add BOM into your build.gradle file as the following:

```
implementation platform("ai.djl:bom:0.29.0")
implementation platform("ai.djl:bom:0.30.0")
```

- Then you import the desired DJL modules into to you pom.xml file (no version is needed):
Expand Down
2 changes: 1 addition & 1 deletion djl-zero/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl</groupId>
<artifactId>djl-zero</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
2 changes: 1 addition & 1 deletion docker/spark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FROM 314815235551.dkr.ecr.us-east-2.amazonaws.com/sagemaker-spark-processing:3.5
LABEL maintainer="[email protected]"

# Install dependencies
ARG DJL_VERSION=0.29.0
ARG DJL_VERSION=0.30.0
ARG JNA_VERSION=5.14.0
ARG JAVACV_VERSION=1.5.10
ARG JAVACPP_VERSION=1.5.10
Expand Down
4 changes: 2 additions & 2 deletions docs/development/example_dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ api group: 'org.apache.commons', name: 'commons-csv', version: '1.7'
In order to extend the dataset, the following dependencies are required:

```
api "ai.djl:api:0.29.0"
api "ai.djl:basicdataset:0.29.0"
api "ai.djl:api:0.30.0"
api "ai.djl:basicdataset:0.30.0"
```

There are four parts we need to implement for CSVDataset.
Expand Down
2 changes: 1 addition & 1 deletion docs/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dependencies {
implementation platform("ai.djl:bom:<UPCOMING VERSION>-SNAPSHOT")
}
```
Currently, the `<UPCOMING VERSION> = 0.29.0`.
Currently, the `<UPCOMING VERSION> = 0.30.0`.
This snapshot version is the same as the custom DJL repository.

You also need to change directory to `djl/bom`. Then build and publish it to maven local same as what was done in `djl`.
Expand Down
6 changes: 3 additions & 3 deletions docs/hybrid_engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ to run in a hybrid mode:
To use it along with Apache MXNet for additional API support, add the following two dependencies:

```
runtimeOnly "ai.djl.mxnet:mxnet-engine:0.29.0"
runtimeOnly "ai.djl.mxnet:mxnet-engine:0.30.0"
```

You can also use PyTorch or TensorFlow Engine as the supplemental engine by adding their corresponding dependencies.

```
runtimeOnly "ai.djl.pytorch:pytorch-engine:0.29.0"
runtimeOnly "ai.djl.pytorch:pytorch-engine:0.30.0"
```

```
runtimeOnly "ai.djl.tensorflow:tensorflow-engine:0.29.0"
runtimeOnly "ai.djl.tensorflow:tensorflow-engine:0.30.0"
```

## How Hybrid works
Expand Down
2 changes: 1 addition & 1 deletion docs/load_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Here is a few tips you can use to help you debug model loading issue:
See [here](development/configure_logging.md#configure-logging-level) for how to enable debug log

#### List models programmatically in your code
You can use [ModelZoo.listModels()](https://javadoc.io/static/ai.djl/api/0.29.0/ai/djl/repository/zoo/ModelZoo.html#listModels--) API to query available models.
You can use [ModelZoo.listModels()](https://javadoc.io/static/ai.djl/api/0.30.0/ai/djl/repository/zoo/ModelZoo.html#listModels--) API to query available models.

#### List available models using DJL command line

Expand Down
4 changes: 2 additions & 2 deletions engines/ml/lightgbm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ LightGBM can only run on top of the Linux/Mac/Windows machine using x86_64.
## Installation
You can pull the LightGBM engine from the central Maven repository by including the following dependency:

- ai.djl.ml.lightgbm:lightgbm:0.29.0
- ai.djl.ml.lightgbm:lightgbm:0.30.0

```xml
<dependency>
<groupId>ai.djl.ml.lightgbm</groupId>
<artifactId>lightgbm</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
4 changes: 2 additions & 2 deletions engines/ml/xgboost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ XGBoost can only run on top of the Linux/Mac machine. User can build from source
## Installation
You can pull the XGBoost engine from the central Maven repository by including the following dependency:

- ai.djl.ml.xgboost:xgboost:0.29.0
- ai.djl.ml.xgboost:xgboost:0.30.0

```xml
<dependency>
<groupId>ai.djl.ml.xgboost</groupId>
<artifactId>xgboost</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
4 changes: 2 additions & 2 deletions engines/mxnet/mxnet-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This module contains the Deep Java Library (DJL) EngineProvider for Apache MXNet
We don't recommend that developers use classes in this module directly. Use of these classes
will couple your code with Apache MXNet and make switching between engines difficult. Even so,
developers are not restricted from using engine-specific features. For more information,
see [NDManager#invoke()](https://javadoc.io/static/ai.djl/api/0.29.0/ai/djl/ndarray/NDManager.html#invoke-java.lang.String-ai.djl.ndarray.NDArray:A-ai.djl.ndarray.NDArray:A-ai.djl.util.PairList-).
see [NDManager#invoke()](https://javadoc.io/static/ai.djl/api/0.30.0/ai/djl/ndarray/NDManager.html#invoke-java.lang.String-ai.djl.ndarray.NDArray:A-ai.djl.ndarray.NDArray:A-ai.djl.util.PairList-).

## Documentation

Expand All @@ -33,7 +33,7 @@ You can pull the MXNet engine from the central Maven repository by including the
<dependency>
<groupId>ai.djl.mxnet</groupId>
<artifactId>mxnet-engine</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion engines/mxnet/mxnet-model-zoo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can pull the MXNet engine from the central Maven repository by including the
<dependency>
<groupId>ai.djl.mxnet</groupId>
<artifactId>mxnet-model-zoo</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions engines/onnxruntime/onnxruntime-android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ This module contains the DJL ONNX Runtime engine for Android.
## Installation
You can pull the ONNX Runtime for Android from the central Maven repository by including the following dependency:

- ai.djl.android:onnxruntime:0.29.0
- ai.djl.android:onnxruntime:0.30.0

```xml
<dependency>
<groupId>ai.djl.android</groupId>
<artifactId>onnxruntime</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
8 changes: 4 additions & 4 deletions engines/onnxruntime/onnxruntime-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ for the official ONNX Runtime project.
## Installation
You can pull the ONNX Runtime engine from the central Maven repository by including the following dependency:

- ai.djl.onnxruntime:onnxruntime-engine:0.29.0
- ai.djl.onnxruntime:onnxruntime-engine:0.30.0

```xml
<dependency>
<groupId>ai.djl.onnxruntime</groupId>
<artifactId>onnxruntime-engine</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand All @@ -61,7 +61,7 @@ Maven:
<dependency>
<groupId>ai.djl.onnxruntime</groupId>
<artifactId>onnxruntime-engine</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
Expand All @@ -81,7 +81,7 @@ Maven:
Gradle:

```groovy
implementation("ai.djl.onnxruntime:onnxruntime-engine:0.29.0") {
implementation("ai.djl.onnxruntime:onnxruntime-engine:0.30.0") {
exclude group: "com.microsoft.onnxruntime", module: "onnxruntime"
}
implementation "com.microsoft.onnxruntime:onnxruntime_gpu:1.18.0"
Expand Down
4 changes: 2 additions & 2 deletions engines/pytorch/pytorch-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ The javadocs output is built in the `build/doc/javadoc` folder.

You can pull the PyTorch engine from the central Maven repository by including the following dependency:

- ai.djl.pytorch:pytorch-engine:0.29.0
- ai.djl.pytorch:pytorch-engine:0.30.0

```xml

<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-engine</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion engines/pytorch/pytorch-model-zoo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ You can pull the PyTorch engine from the central Maven repository by including t
<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-model-zoo</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion engines/tensorflow/tensorflow-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ You can pull the TensorFlow core java API from the central Maven repository by i
<dependency>
<groupId>ai.djl.tensorflow</groupId>
<artifactId>tensorflow-api</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
4 changes: 2 additions & 2 deletions engines/tensorflow/tensorflow-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ The javadocs output is built in the `build/doc/javadoc` folder.

You can pull the TensorFlow engine from the central Maven repository by including the following dependency:

- ai.djl.tensorflow:tensorflow-engine:0.29.0
- ai.djl.tensorflow:tensorflow-engine:0.30.0

```xml
<dependency>
<groupId>ai.djl.tensorflow</groupId>
<artifactId>tensorflow-engine</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion engines/tensorflow/tensorflow-model-zoo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ from the central Maven repository by including the following dependency:
<dependency>
<groupId>ai.djl.tensorflow</groupId>
<artifactId>tensorflow-model-zoo</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions engines/tensorrt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ The javadocs output is generated in the `build/doc/javadoc` folder.
## Installation
You can pull the TensorRT engine from the central Maven repository by including the following dependency:

- ai.djl.tensorrt:tensorrt:0.29.0
- ai.djl.tensorrt:tensorrt:0.30.0

```xml
<dependency>
<groupId>ai.djl.tensorrt</groupId>
<artifactId>tensorrt</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
<scope>runtime</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion extensions/audio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl.audio</groupId>
<artifactId>audio</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
2 changes: 1 addition & 1 deletion extensions/aws-ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl.aws</groupId>
<artifactId>aws-ai</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
2 changes: 1 addition & 1 deletion extensions/fasttext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can pull the fastText engine from the central Maven repository by including
<dependency>
<groupId>ai.djl.fasttext</groupId>
<artifactId>fasttext-engine</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

2 changes: 1 addition & 1 deletion extensions/hadoop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl.hadoop</groupId>
<artifactId>hadoop</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
2 changes: 1 addition & 1 deletion extensions/opencv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl.opencv</groupId>
<artifactId>opencv</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
2 changes: 1 addition & 1 deletion extensions/sentencepiece/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl.sentencepiece</groupId>
<artifactId>sentencepiece</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```
2 changes: 1 addition & 1 deletion extensions/spark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can pull the module from the central Maven repository by including the follo
<dependency>
<groupId>ai.djl.spark</groupId>
<artifactId>spark_2.12</artifactId>
<version>0.29.0</version>
<version>0.30.0</version>
</dependency>
```

Expand Down
Loading

0 comments on commit 7e3d2a5

Please sign in to comment.