forked from deepjavalibrary/djl-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (95 loc) · 3.06 KB
/
canary-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Canary-Windows
on:
workflow_call:
inputs:
repo-id:
description: 'staging repository id to test'
required: false
type: string
default: ''
djl-version:
description: 'djl version to test'
type: string
required: false
pt-version:
description: 'pytorch version to test'
type: string
required: false
default: ''
workflow_dispatch:
inputs:
repo-id:
description: 'staging repository id to test'
required: false
default: ''
djl-version:
description: 'djl version to test'
required: false
pt-version:
description: 'pytorch version to test'
required: false
default: ''
jobs:
canary-test-windows:
if: github.repository == 'deepjavalibrary/djl-demo'
runs-on: windows-latest
env:
AWS_REGION: us-east-1
DJL_STAGING: ${{github.event.inputs.repo-id}}
DJL_VERSION: ${{github.event.inputs.djl-version}}
PT_VERSION: ${{github.event.inputs.pt-version}}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
- name: Test MXNet
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=mxnet-native-auto ./gradlew clean run
rm -rf ~/.djl.ai
- name: Test PyTorch
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=$PT_VERSION ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.13.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=2.2.2 ./gradlew clean run
rm -rf ~/.djl.ai
# DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=2.3.1 ./gradlew clean run
# rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.13.1 ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=pytorch-native-cpu PT_VERSION=2.2.2 ./gradlew clean run
rm -rf ~/.djl.ai
# DJL_ENGINE=pytorch-native-cpu PT_VERSION=2.3.1 ./gradlew clean run
# rm -rf ~/.djl.ai
- name: Test TensorFlow
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=tensorflow-native-auto ./gradlew clean run
rm -rf ~/.djl.ai
DJL_ENGINE=tensorflow-native-cpu ./gradlew clean run
rm -rf ~/.djl.ai
- name: Test OnnxRuntime
working-directory: canary
shell: bash
run: |
set -x
DJL_ENGINE=onnxruntime ./gradlew clean run
# Xgboost doesn't support Windows
# LightGBM doesn't support Windows
# Huggingface tokenizers doesn't support Windows
# SentencePiece tokenizers doesn't support Windows
# fastText doesn't support Windows