-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init * minor * fix * fix * add interrupt to demos * fix * fixes * fixes * fixes * fix * fixes * fix * add .net2.1 testing * fix * fix * release
- Loading branch information
Showing
28 changed files
with
4,497 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: .NET Codestyle | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'binding/dotnet/**/*.cs' | ||
- 'demo/dotnet/**/*.cs' | ||
- '.github/workflows/dotnet-codestyle.yml' | ||
pull_request: | ||
branches: [ master, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'binding/dotnet/**/*.cs' | ||
- 'demo/dotnet/**/*.cs' | ||
- '.github/workflows/dotnet-codestyle.yml' | ||
|
||
jobs: | ||
check-dotnet-codestyle: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up .NET 8.0 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Run Binding Codestyle | ||
run: dotnet format --verify-no-changes | ||
working-directory: binding/dotnet | ||
|
||
- name: Run Demo Codestyle | ||
run: dotnet format --verify-no-changes | ||
working-directory: demo/dotnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: .NET Demos | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/dotnet-demos.yml' | ||
- 'demo/dotnet/**' | ||
- '!demo/dotnet/README.md' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- '.github/workflows/dotnet-demos.yml' | ||
- 'demo/dotnet/**' | ||
- '!demo/dotnet/README.md' | ||
|
||
defaults: | ||
run: | ||
working-directory: demo/dotnet/PicoLLMDemo | ||
|
||
jobs: | ||
build-self-hosted: | ||
runs-on: ${{ matrix.machine }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xpu: [ cpu ] | ||
machine: [ rpi4-32, rpi4-64, rpi5-32, rpi5-64, pv-linux, pv-ios, pv-windows, pv-windows-arm64 ] | ||
include: | ||
- xpu: gpu | ||
machine: pv-linux | ||
- xpu: gpu | ||
machine: pv-windows | ||
- xpu: gpu | ||
machine: pv-windows-igpu | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download resource files | ||
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o phi2-290.pllm | ||
|
||
- name: Package restore | ||
run: dotnet restore | ||
|
||
- name: Build completion demo | ||
run: dotnet build -c CompletionDemo.Release | ||
|
||
- name: Run completion demo | ||
run: dotnet run -c CompletionDemo.Release -- --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --model_path phi2-290.pllm --completion_token_limit 10 --prompt "Hello my name is" --device ${{matrix.xpu}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: .NET | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/dotnet.yml' | ||
- 'binding/dotnet/**' | ||
- '!binding/dotnet/README.md' | ||
- 'lib/linux/**' | ||
- 'lib/mac/**' | ||
- 'lib/raspberry-pi/**' | ||
- 'lib/windows/**' | ||
- 'resources/.test/**' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- '.github/workflows/dotnet.yml' | ||
- 'binding/dotnet/**' | ||
- '!binding/dotnet/README.md' | ||
- 'lib/linux/**' | ||
- 'lib/mac/**' | ||
- 'lib/raspberry-pi/**' | ||
- 'lib/windows/**' | ||
- 'resources/.test/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/dotnet | ||
|
||
jobs: | ||
build-self-hosted: | ||
runs-on: ${{ matrix.machine }} | ||
env: | ||
ACCESS_KEY: ${{secrets.PV_VALID_ACCESS_KEY}} | ||
MODEL_PATH: ../../../../phi2-290.pllm | ||
DEVICE: ${{matrix.xpu}} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xpu: [ cpu ] | ||
dotnet: | ||
- binding-framework: net8.0 | ||
test-framework: net8.0 | ||
machine: [ rpi4-32, rpi4-64, rpi5-32, rpi5-64, pv-linux, pv-ios, pv-windows, pv-windows-arm64 ] | ||
include: | ||
- xpu: gpu | ||
dotnet: | ||
binding-framework: net8.0 | ||
test-framework: net8.0 | ||
machine: pv-windows | ||
- dotnet: | ||
binding-framework: netstandard2.0 | ||
test-framework: netcoreapp2.1 | ||
xpu: cpu | ||
machine: pv-windows | ||
- xpu: gpu | ||
dotnet: | ||
binding-framework: net8.0 | ||
test-framework: net8.0 | ||
machine: pv-linux | ||
- xpu: gpu | ||
dotnet: | ||
binding-framework: net8.0 | ||
test-framework: net8.0 | ||
machine: pv-windows-igpu | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download resource files | ||
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o phi2-290.pllm | ||
working-directory: binding/dotnet | ||
|
||
- name: Build binding | ||
run: dotnet build PicoLLM/PicoLLM.csproj --framework ${{ matrix.dotnet.binding-framework }} | ||
|
||
- name: Test | ||
run: dotnet test --framework ${{ matrix.dotnet.test-framework }} -v n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.