Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tensorrt] Updates tensorrt to 9.2.0 #3091

Open
wants to merge 167 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
950340f
To support Yolov8 (#2776)
SidneyLann Sep 20, 2023
da15713
[onnxruntime] Upgrades OnnxRuntime to 1.16.0 (#2784)
frankfliu Sep 21, 2023
15fd0d0
build ft for sm90 (#2785)
rohithkrn Sep 25, 2023
963332d
PtndArrayEx.multiboxDetection() implementation (#2769)
juliangamble Sep 28, 2023
3a90d0a
Updates LightGBM to 1.7.6 (#2793)
zachgk Sep 29, 2023
8fd79db
Revert "Updates LightGBM to 1.7.6 (#2793)" (#2796)
zachgk Sep 29, 2023
27c6a57
[tokenizer] Allows import non-english model (#2797)
frankfliu Oct 2, 2023
d432a65
allow to just build for 1 flow (#2798)
lanking520 Oct 6, 2023
458933c
[api] Fixed NDList decode numpy file bug (#2804)
frankfliu Oct 12, 2023
2f4ebee
[api] Allows cancel Input (#2805)
frankfliu Oct 13, 2023
90059cd
[ci] Fixes out of diskspace issue (#2808)
frankfliu Oct 17, 2023
298ea1f
[docs] Fixes markdown headers (#2812)
zachgk Oct 18, 2023
f0b4334
Bump up DJL version to 0.25.0 (#2809)
frankfliu Oct 19, 2023
fe86680
add gpu flag build for triton client (#2815)
lanking520 Oct 23, 2023
1c5aef8
[xgb] Add .xgb file extension support (#2810)
frankfliu Oct 23, 2023
23e07cf
[tokenizers] Upgrade huggingface tokenizers to 1.14.1 (#2818)
frankfliu Oct 23, 2023
85d9e85
[huggingface] Adds CrossEncoderTranslator (#2817)
frankfliu Oct 23, 2023
0b6474f
[api] Added Early stopping configuration (#38) (#2806)
jagodevreede Oct 24, 2023
185981b
Creates MultiDevice (#2819)
zachgk Oct 25, 2023
7d68857
Update README with release update (#2823)
zachgk Oct 27, 2023
3927867
[api] Replace double-check singlton with lazy initialization (#2826)
frankfliu Oct 30, 2023
9b0c8c9
[api] Refactor PublisherBytesSupplier.java (#2831)
frankfliu Oct 31, 2023
6981d76
Updates doc versions to 0.24.0 (#2829)
zachgk Nov 3, 2023
715e620
Updates XGBoost to 2.0.1 (#2833)
zachgk Nov 4, 2023
9f55189
[tokenizer] Fixes tokenizer bug (#2843)
frankfliu Nov 8, 2023
f84d3bb
Add erf and atan2 (#2842)
TalGrbr Nov 9, 2023
f39640c
Add FFT2 and FFT2 inverse (#2845)
TalGrbr Nov 13, 2023
8f6ff7c
only build triton binaries (#2847)
lanking520 Nov 15, 2023
e8ceef3
[tokenizer] Update import script for huggingface_hub api change (#2850)
frankfliu Nov 15, 2023
e315554
[docs] Update serving configuration nav (#2853)
zachgk Nov 15, 2023
062d395
[tokenizer] Not returns overflow tokens by default (#2857)
frankfliu Nov 17, 2023
a30f133
Fixes archiveBaseName in native builds (#2859)
zachgk Nov 20, 2023
ccb932d
Updates DJL version to 0.25.0 (#2860)
frankfliu Nov 20, 2023
8da4287
Bump up DJL version to 0.26.0 (#2861)
frankfliu Nov 20, 2023
b5e5100
update master branch on the website to have large model inference gui…
lanking520 Nov 20, 2023
5a9191e
[pytorch] Updates PyTorch engine to 2.1.1 (#2864)
frankfliu Nov 21, 2023
c846786
[CI] Fixes flaky early stopping test (#2866)
zachgk Nov 21, 2023
969f84e
[docs] Move jupyter notebooks to DJL Demo (#2854)
zachgk Nov 22, 2023
50f8af6
[docs] Include LMI documents (#2870)
sindhuvahinis Nov 23, 2023
e45f344
[pytorch] Revert InstanceHolder for PyTorch engine (#2876)
frankfliu Nov 26, 2023
a6b2e5c
[tokenizer] Updates huggingface tokenizer to 0.15.0 (#2867)
frankfliu Nov 28, 2023
bb56edc
[pytorch] Fixes windows load nvfuser_codegen bug (#2868)
frankfliu Nov 28, 2023
e2be804
[api] Updates common-compress version to address CVE issues (#2871)
frankfliu Nov 28, 2023
b14a818
[tokenizer] Handles import huggingface model zoo exception case (#2872)
frankfliu Nov 28, 2023
ce441c1
[api] Update offline property name to avoid conflict with other app. …
frankfliu Nov 28, 2023
36d4aec
Minor fixes to improve Apple Silicon MPS support (#2873)
petebankhead Nov 28, 2023
c62a0e9
[ci] Fixes flaky early stopping training test (#2879)
frankfliu Nov 28, 2023
c057898
Tokenizers: Updated huggingface_models.py to support Safetensors mode…
dameikle Nov 29, 2023
2fc8058
[tokenizer] Uses fp32 for TextembeddingTranslator clip() (#2881)
frankfliu Dec 1, 2023
586bb07
[tensorflow] Revert InstanceHolder for TensorFlow engine (#2884)
frankfliu Dec 4, 2023
7f94c1a
[api] Use folk java process to avoid jvm consume GPU memory (#2882)
frankfliu Dec 5, 2023
3c1301a
[onnxruntime] Updates OnnxRuntime to 1.16.3 (#2888)
frankfliu Dec 10, 2023
d95edd4
[pytorch] Ensure shared library loading order for aarch64 (#2892)
frankfliu Dec 12, 2023
df109c0
[api] Handles both JNA conflict and missing case (#2896)
frankfliu Dec 19, 2023
6708a42
[ci] Use JDK 17 for github actions workflow (#2897)
frankfliu Dec 19, 2023
1060bdd
[docs] Updates documents to use JDK 17 (#2898)
frankfliu Dec 20, 2023
1eb54c0
Add Evaluator support to update multiple accumulators (#2894)
petebankhead Dec 20, 2023
e16ef9d
Adds llama.cpp engine (#2904)
bryanktliu Dec 26, 2023
0e6f143
Yelov8 Translator optimization (#2908)
gevant Dec 31, 2023
d7fa91c
[pytorch] Adds Yolov8n model to pytorch model zoo. (#2910)
frankfliu Jan 2, 2024
97102db
[onnx] Adds yolov8n to model zoo (#2909)
frankfliu Jan 2, 2024
13b72d8
[llama.cpp] Adds unit-test and standardize input parameters (#2905)
frankfliu Jan 2, 2024
632c375
[llama.cpp] Adds llama.cpp huggingface model zoo (#2911)
frankfliu Jan 3, 2024
f4a7d26
[ci] Fixes github action for centos and amazonlinux (#2913)
frankfliu Jan 3, 2024
1b2b6fa
[XGBoost] Updates XGBoost to 2.0.3 (#2915)
frankfliu Jan 3, 2024
ca1b5c5
[pytorch] Upgrade pytorch andorid to 2.1.1 (#2914)
frankfliu Jan 3, 2024
d373ff5
add awscurl release (#2917)
lanking520 Jan 4, 2024
2b04c46
change build to jar (#2918)
lanking520 Jan 4, 2024
54f5176
[bom] Adds llama engine to BOM (#2916)
frankfliu Jan 5, 2024
fcfc928
[ci] Allows build project with JDK 21 (#2903)
frankfliu Jan 5, 2024
cae3bd0
[ci] Fixes pytorch android build (#2921)
frankfliu Jan 6, 2024
72242be
[ci] Fix build failure for `build-pytorch-jni-linux` (#2920)
maaquib Jan 8, 2024
77c9a29
[ci] Fixes native ci build failure (#2924)
frankfliu Jan 8, 2024
cf4c824
[api] Adds ModelZooResolver interface (#2922)
frankfliu Jan 8, 2024
d58b755
[ci] Use macos-13 to avoid flaky test (#2927)
frankfliu Jan 9, 2024
1cbddbf
[test] Fixes EarlyStopping flaky test (#2926)
frankfliu Jan 9, 2024
96eebfa
[api] Updates dependencies to latest version (#2928)
frankfliu Jan 9, 2024
4b392f1
Adds Device.getDevices() for all Device (#2820)
zachgk Jan 9, 2024
6141c48
Creates DJL manual engine initialization (#2885)
zachgk Jan 9, 2024
f1b9da6
[pytorch] Allows to load libstdc++.so.6 form different location (#2929)
frankfliu Jan 9, 2024
b942a67
Updates DJL version to 0.26.0 (#2930)
siddvenk Jan 9, 2024
b21ecb9
Bump DJL version to 0.27.0 (#2933)
siddvenk Jan 11, 2024
94f6d29
removing pytorch 2.0.1 from 0.27.0 (#2940)
siddvenk Jan 11, 2024
c69aeb6
[doc] include trtllm convert manual (#2941)
sindhuvahinis Jan 12, 2024
478422c
Suppress serial warning for JDK21 (#2935)
zachgk Jan 16, 2024
aac5eb3
Moves to Actions hosted M1 runner (#2948)
zachgk Jan 17, 2024
1545c09
[ci] Disable run scheduled github actions in fork (#2943)
frankfliu Jan 18, 2024
fd453d9
[api] Moves commons-compress dependency to standalone class. (#2951)
frankfliu Jan 18, 2024
3bcece6
[api] Allows to load .pt or .onnx file from jar url (#2955)
frankfliu Jan 20, 2024
9c8cc60
[docs] Updates README (#2954)
frankfliu Jan 20, 2024
5ece342
[tokenizer] Return if exceed max token length (#2957)
frankfliu Jan 22, 2024
3defba6
[tokenizer] Adds getters for HuggingfaceTokenizer (#2958)
frankfliu Jan 23, 2024
c4e3023
[doc] Make LMI a separate tab and include I/O schema (#2960)
sindhuvahinis Jan 24, 2024
9a52d3d
[docs] Fixes cuda version for pytorch native library (#2963)
frankfliu Jan 25, 2024
e3c6238
[ci] add cloudwatch metrics for scheduled workflow failures (#2966)
siddvenk Jan 26, 2024
5b4cf0e
[ci] Upgrade github actions nodejs 16 to nodejs 2 (#2967)
frankfliu Jan 29, 2024
c02e1b5
[ci] Upgrade codeql-actions to v3 (#2973)
frankfliu Jan 31, 2024
f9b4bc5
[ci] Upgrade aws-actions/configure-aws-credentials to v4 (#2972)
frankfliu Jan 31, 2024
2e97dd5
[ci] refactor cloudwatch metric publishing to avoid needing changes i…
siddvenk Jan 31, 2024
927c15e
[fix][ci] fix typo in publish metric workflow (#2976)
siddvenk Jan 31, 2024
bdf47f5
[pytorch] Upgrade android build to 0.26.0 (#2975)
frankfliu Feb 1, 2024
4762492
[ci] Downgrade github actions version for centos7 and amazonlinux (#2…
frankfliu Feb 1, 2024
557efd6
[ci] move cw publish step to github hosted runner (#2978)
siddvenk Feb 2, 2024
e3089d6
[fix][ci] avoid early exit of script for failure case (#2979)
siddvenk Feb 5, 2024
e76ae3b
docs: add AWS Graviton3 PyTorch inference tuning details (#2982)
snadampal Feb 7, 2024
91a69ed
[ci][fix] update path to android sdk manager cli (#2980)
siddvenk Feb 7, 2024
f457f66
Supports PyTorch stream imperative model load (#2981)
zachgk Feb 7, 2024
be4d1d3
[dataset] Fixes broken link for mnist dataset (#2984)
frankfliu Feb 8, 2024
f9ad5f1
[database] Fixes mnist URL for local unitest (#2988)
frankfliu Feb 11, 2024
cf46182
[pytorch] Avoid loading .lib file from PYTORCH_LIBRARY_PATH (#2987)
frankfliu Feb 11, 2024
0c9eff7
fix #2968 (#2986)
SidneyLann Feb 12, 2024
7ad697c
downgrade the version to V3 (#2990)
lanking520 Feb 12, 2024
64c1b96
change to cache v3 for the versions (#2991)
lanking520 Feb 12, 2024
b9c0aab
[dataset] Fixes wikitext-2 (#2996)
zachgk Feb 15, 2024
87dea1c
[docs] Update Huggingface tokenizer cache directory document (#2994)
frankfliu Feb 15, 2024
d825cf7
Uses gradle dependency submission (#2983)
zachgk Feb 15, 2024
1fcca33
[spark] Fixes python tarslip security concern (#2995)
frankfliu Feb 16, 2024
e6bd293
Excludes test dependencies from dependency submission (#2999)
zachgk Feb 19, 2024
92f2d84
Fixes failing CI (#3001)
ydm-amazon Feb 20, 2024
7959c27
Update continuous OSX to 13 (#3004)
zachgk Feb 22, 2024
19e4302
Fixes cases where the getEngine method in the EngineProvider class re…
onaple Feb 26, 2024
96e93a4
Removes dependency submission (#3006)
zachgk Feb 27, 2024
8a88c35
[api] Adds utility method to Model for accessing properties (#3007)
frankfliu Feb 28, 2024
4eb29bd
[api] Fixes typo in CudaUtils (#3008)
frankfliu Feb 28, 2024
ab00bed
Update README.md (#3009)
fensch Feb 28, 2024
2a75b18
[api] Adds suffix to percentile metric name (#3011)
frankfliu Mar 1, 2024
93123ad
[api] Adds dimension for prediction metric (#3013)
frankfliu Mar 2, 2024
97cfc19
Thread-safe FaceDetectionTranslator.java by using TranslatorContext (…
StefanOltmann Mar 4, 2024
ad076c8
[docs] Disable progress bar for jupyter notebook convertion (#3017)
frankfliu Mar 4, 2024
b144377
[api] Upgrades commons compress to 1.26.0 for CVE (#3018)
frankfliu Mar 5, 2024
c3b1e88
[onnx] Upgrades OnnxRuntime to 1.17.1 (#3019)
frankfliu Mar 5, 2024
ff3978c
Avoid duplicated loading native library (#3020)
frankfliu Mar 5, 2024
063fb8d
[ci] Fixes nightly build for onnx 1.17.1 (#3021)
frankfliu Mar 5, 2024
0fa0db2
[pytorch] Fixes detecting wrong flavor on macOS issue (#3027)
frankfliu Mar 12, 2024
8c5ed49
[api] Allows to use relative jar uri for cache folder name (#3026)
frankfliu Mar 13, 2024
7567277
[example] Adds document about how to trace gpt2 model (#3028)
frankfliu Mar 13, 2024
b6b8729
[docs] update mkdocs structure for new lmi documentation (#3029)
siddvenk Mar 13, 2024
6b32ef2
support includeTokenTypes in TextEmbeddingBatchTranslator (#3032)
morokosi Mar 18, 2024
e3a8e4c
[bom] Fixes djl-serving packages in BOM (#3039)
frankfliu Mar 20, 2024
b3b04f5
[api] Support encode/decode String tensor (#3034)
frankfliu Mar 22, 2024
ee93305
[tokenizer] Adds includeTokenTypes for all translators (#3035)
frankfliu Mar 22, 2024
fa28fbe
Updates dependencies version to latest (#3040)
frankfliu Mar 22, 2024
091a41c
[pytorch] Allows to exclude certain DLL from pytorch directory (#3043)
frankfliu Mar 26, 2024
5eb2b9e
Update checkstyle tool version to 10.14.2 (#3047)
xyang16 Mar 28, 2024
2c1e7fa
Upgrade dependency version (#3049)
xyang16 Mar 28, 2024
a22360a
Increase DJL version to 0.27.0 (#3046)
xyang16 Mar 28, 2024
22b46a9
Increase build version to 0.28.0 (#3050)
xyang16 Mar 28, 2024
25bec4d
[llama.cpp] Fixes llama.cpp JNI build issue (#3057)
frankfliu Apr 2, 2024
9dc1b40
[docs] Update OnnxRuntime version in README. (#3056)
frankfliu Apr 2, 2024
8283acd
[tokenizer] Upgrade rs-jni to 0.21.1 (#3051)
frankfliu Apr 2, 2024
ada3b98
[model-zoo] Avoid use properties as part of cached file path (#3053)
frankfliu Apr 2, 2024
ae00167
[tokenizer] Apply Dense layer for TextEmbeddingTranslator (#3052)
frankfliu Apr 3, 2024
f8791db
[model-zoo] Fixes mxnet yolo metadata.json (#3059)
frankfliu Apr 3, 2024
14e8f0f
[pytorch] Updates PyTorch to 2.1.2 (#3070)
frankfliu Apr 7, 2024
2205a90
[tokenizer] Add do_lower_case support (#3069)
frankfliu Apr 7, 2024
8bd3bf6
[tokenizer] set truncatation to default (#3068)
frankfliu Apr 7, 2024
b35ad45
[tokenizer] set maxLength when importing huggingface model (#3067)
frankfliu Apr 7, 2024
fa9bfbd
[tokenizer] Updates huggingface tokenizer to 0.15.2 (#3071)
frankfliu Apr 7, 2024
412bf76
[api] Fixes ZipUtil bug when unzip large file (#3074)
frankfliu Apr 8, 2024
ce9884e
[api] Fixes tarslip issue (#3075)
frankfliu Apr 9, 2024
edd2e65
[docs] Updates javadoc link (#3077)
frankfliu Apr 9, 2024
a920d21
[docs][lmi] add new docs pages to doc site (#3081)
siddvenk Apr 11, 2024
6be4fd6
[tokenizer] Adds option to disable sigmoid for CrossEncoderTranslator…
frankfliu Apr 15, 2024
4a619b1
[fix] Fix HfModelZoo and LlamaModelZoo concurrent init problem (#3088)
ewan0x79 Apr 15, 2024
4a434c2
[api] Support "inputs" key in json request for text embedding transla…
frankfliu Apr 15, 2024
3813405
[api] Add batch support to TextEmbeddingServingTranslator (#3084)
frankfliu Apr 15, 2024
7839aef
[tensorrt] Updates tensorrt to 9.2.0
frankfliu Apr 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
79 changes: 7 additions & 72 deletions .github/workflows/build_triton_and_ft.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,33 @@
name: Build Triton Server and FasterTransformers
name: Build Triton Server

on:
workflow_dispatch:
inputs:
triton:
description: 'triton branch version'
required: true
default: 'r23.04'
fastertransformer:
description: 'fastertransformer branch/tag version'
required: true
default: 'main'
is_llama_build:
description: 'whether to build custom llama source'
required: false
type: boolean
default: false
default: 'r23.10'

jobs:
build-triton:
if: github.repository == 'deepjavalibrary/djl'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: triton-inference-server/server
ref: ${{ github.event.inputs.triton }}
- name: Set up Python3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Build Triton Binary
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: |
python3 build.py --enable-logging --enable-metrics --enable-stats --enable-cpu-metrics --endpoint http
pip3 install requests
python3 build.py --enable-logging --enable-metrics --enable-stats --enable-cpu-metrics --enable-gpu --endpoint http
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -45,60 +37,3 @@ jobs:
aws s3 cp build/install/lib/libtritonserver.so s3://djl-ai/publish/tritonserver/${{ github.event.inputs.triton }}/
aws s3 cp build/install/bin/tritonserver s3://djl-ai/publish/tritonserver/${{ github.event.inputs.triton }}/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/tritonserver/${{ github.event.inputs.triton }}/*"

create-runner:
if: github.repository == 'deepjavalibrary/djl'
runs-on: [ self-hosted, scheduler ]
steps:
- name: Create new CPU instance
id: create_cpu
run: |
cd /home/ubuntu/djl_benchmark_script/scripts
token=$( curl -X POST -H "Authorization: token ${{ secrets.ACTION_RUNNER_PERSONAL_TOKEN }}" \
https://api.github.com/repos/deepjavalibrary/djl/actions/runners/registration-token \
--fail \
| jq '.token' | tr -d '"' )
./start_instance.sh action_cpu $token djl
outputs:
cpu_instance_id: ${{ steps.create_cpu.outputs.action_cpu_instance_id }}


build-fastertransformer:
if: github.repository == 'deepjavalibrary/djl'
runs-on: [ self-hosted, cpu ]
container: deepjavalibrary/djl-serving:fastertransformer-nightly
timeout-minutes: 60
needs: create-runner
steps:
- uses: actions/checkout@v3
- name: Build FasterTransformers
run: |
tools/scripts/build_ft_deps.sh ${{ github.event.inputs.fastertransformer }} ${{ github.event.inputs.triton }} ${{ github.event.inputs.is_llama_build }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Copy files to S3 with the AWS CLI
if: github.event.inputs.is_llama_build == 'false'
run: |
aws s3 sync /tmp/binaries/ s3://djl-ai/publish/fastertransformer/${{ github.event.inputs.fastertransformer }}/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/fastertransformer/${{ github.event.inputs.fastertransformer }}/*"
- name: Copy files for llama build to S3 with AWS CLI
if: github.event.inputs.is_llama_build == 'true'
run: |
echo "pushing binaries to ft/llama"
aws s3 sync /tmp/binaries/ s3://djl-ai/publish/fastertransformer/llama/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/fastertransformer-llama/${{ github.event.inputs.fastertransformer }}/*"

stop-runner:
if: ${{ github.repository == 'deepjavalibrary/djl' && always() }}
runs-on: [ self-hosted, scheduler ]
needs: [ create-runner, build-fastertransformer]
steps:
- name: Stop all instances
run: |
cd /home/ubuntu/djl_benchmark_script/scripts
instance_id=${{ needs.create-runner.outputs.cpu_instance_id }}
./stop_instance.sh $instance_id
14 changes: 7 additions & 7 deletions .github/workflows/codeql-analysis-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
java-version: 17

- name: Init gradle
run: ./gradlew --no-daemon clean

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -72,4 +72,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
34 changes: 23 additions & 11 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,33 @@ on:
- "**.js"
- "**.css"
- "android/**"
push:
paths-ignore:
- "**.md"
- "**.ipynb"
- "**.json"
- "**.html"
- "**.js"
- "**.css"
- "android/**"

jobs:
build:
if: github.repository == 'deepjavalibrary/djl'
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, macos-12 ]
operating-system: [ ubuntu-latest, macos-13 ]

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
java-version: 17
# Enable gradle cache: https:/actions/cache/blob/master/examples.md#java---gradle
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand All @@ -41,6 +50,9 @@ jobs:
filters: |
src:
- 'extensions/sentencepiece/**'
- name: install libomp on macos
if: ${{ runner.os == 'macOS' }}
run: brew install libomp
- name: Compile Sentencepiece JNI
if: steps.sentencepiece_changes.outputs.src == 'true'
run: ./gradlew :extensions:sentencepiece:compileJNI
Expand Down Expand Up @@ -106,14 +118,14 @@ jobs:
if: github.repository == 'deepjavalibrary/djl'
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
java-version: 17
# Enable gradle cache: https:/actions/cache/blob/master/examples.md#java---gradle
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
if: github.repository == 'deepjavalibrary/djl'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -56,4 +56,4 @@ jobs:
context: .
file: docker/spark/Dockerfile
build-args: DJL_VERSION=${DJL_VERSION}
tags: deepjavalibrary/djl-spark:${{ env.DJL_VERSION }}-cpu
tags: deepjavalibrary/djl-spark:${{ env.DJL_VERSION }}-cpu
22 changes: 11 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Docs
on:
pull_request:
paths:
- "**.ipynb"
- "docs/mkdocs.yml"
# Publish docs weekly
schedule:
Expand All @@ -15,13 +14,13 @@ jobs:
if: github.repository == 'deepjavalibrary/djl'
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
java-version: 17
- name: Set up Python3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install CN fonts
Expand All @@ -34,14 +33,10 @@ jobs:
cd IJava/
./gradlew installKernel
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: add mybinder link
run: |
python3 tools/scripts/add_online_runner.py
- name: run Notebooks
run: |
cd jupyter
bash test_notebook.sh
- name: clone demos
run: |
cd docs
Expand All @@ -50,13 +45,18 @@ jobs:
run: |
cd docs
git clone https:/deepjavalibrary/djl-serving.git serving
- name: run Notebooks
run: |
cd docs/demos/jupyter
bash test_notebook.sh
- name: build docs
run: |
cd docs
export DJL_DISABLE_PROGRESS_BAR=true
mkdocs build --site-dir ../../site
- name: Configure AWS Credentials
if: github.event_name != 'pull_request'
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/native_build_mxnet_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- name: Checkout Apache MXNet repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: apache/incubator-mxnet
ref: 1.9.1
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/native_jni_s3_paddle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
operating-system: [ macos-latest, windows-latest ]

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 11
- uses: actions/cache@v3
java-version: 17
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand Down Expand Up @@ -55,11 +55,11 @@ jobs:
ln -sf /usr/bin/cmake3 /usr/bin/cmake
pip3 install awscli --upgrade
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 11
java-version: 17
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
Expand All @@ -81,7 +81,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ build-paddle-jni-cpu, build-paddle-jni-linux ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download compiledJNI Mac
uses: actions/download-artifact@v3
with:
Expand All @@ -98,7 +98,7 @@ jobs:
name: jnilib-Linux
path: jnilib
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
Loading
Loading