Skip to content

Commit

Permalink
add model test workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Sep 21, 2023
1 parent 9e0cecf commit fd80bbc
Show file tree
Hide file tree
Showing 16 changed files with 480 additions and 4 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/baichuan2-7b-chat-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: baichuan2-7b-chat-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/baichuan2-7b-chat-linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/baichuan2-7b-chat-linux.yml'

concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
chatglm-6b-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/linux_build.sh
- name: download
run: ./script/download_model.sh baichuan2-7b-chat
- name: test
run: |
cd build
./cli_demo -m ../baichuan2-7b-chat
34 changes: 34 additions & 0 deletions .github/workflows/chatglm-6b-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: chatglm-6b-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/chatglm-6b-linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/chatglm-6b-linux.yml'

concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
chatglm-6b-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/linux_build.sh
- name: download
run: ./script/download_model.sh chatglm-6b
- name: test
run: |
cd build
./cli_demo -m ../chatglm-6b
34 changes: 34 additions & 0 deletions .github/workflows/chatglm-6b-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: chatglm-6b-macos
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/chatglm-6b-macos.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/chatglm-6b-macos.yml'

concurrency:
group: macos-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
chatglm-6b-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/macos_build.sh
- name: download
run: ./script/download_model.sh chatglm-6b
- name: test
run: |
cd build
./cli_demo -m ../chatglm-6b
35 changes: 35 additions & 0 deletions .github/workflows/chatglm-6b-winows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: chatglm-6b-windows
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/chatglm-6b-windows.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/chatglm-6b-windows.yml'

concurrency:
group: windows-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
chatglm-6b-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: build
run: powershell .\script\windows_build.ps1
- name: download
run: powershell .\script\download_model.ps1 chatglm-6b
- name: test
run: |
cd build
.\Release\cli_demo -m ..\chatglm-6b
34 changes: 34 additions & 0 deletions .github/workflows/chatglm2-6b-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: chatglm2-6b-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/chatglm2-6b-linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/chatglm2-6b-linux.yml'

concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
chatglm2-6b-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/linux_build.sh
- name: download
run: ./script/download_model.sh chatglm2-6b
- name: test
run: |
cd build
./cli_demo -m ../chatglm2-6b
34 changes: 34 additions & 0 deletions .github/workflows/codegeex2-6b-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: codegeex2-6b-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/codegeex2-6b-linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/codegeex2-6b-linux.yml'

concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
codegeex2-6b-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/linux_build.sh
- name: download
run: ./script/download_model.sh codegeex2-6b
- name: test
run: |
cd build
./cli_demo -m ../codegeex2-6b
34 changes: 34 additions & 0 deletions .github/workflows/llama2-7b-chat-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: llama2-7b-chat-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/llama2-7b-chat-linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/llama2-7b-chat-linux.yml'

concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
llama2-7b-chat-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/linux_build.sh
- name: download
run: ./script/download_model.sh llama2-7b-chat
- name: test
run: |
cd build
./cli_demo -m ../llama2-7b-chat
34 changes: 34 additions & 0 deletions .github/workflows/qwen-7b-chat-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: qwen-7b-chat-linux
on:
push:
branches:
- master
- 'feature/**'
paths:
- 'src/**'
- '.github/workflows/qwen-7b-chat-linux.yml'
pull_request:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/qwen-7b-chat-linux.yml'

concurrency:
group: linux-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
qwen-7b-chat-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: ./script/linux_build.sh
- name: download
run: ./script/download_model.sh qwen-7b-chat
- name: test
run: |
cd build
./cli_demo -m ../qwen-7b-chat
Binary file added android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit fd80bbc

Please sign in to comment.