Skip to content

Commit 5f9d0ae

Browse files
authored
v1.1 (#66)
1 parent 9baa4dc commit 5f9d0ae

File tree

206 files changed

+17128
-943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+17128
-943
lines changed

.github/workflows/android-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: ~/Android/Sdk/platform-tools/adb shell pm uninstall ai.picovoice.picollm.testapp.test || true
3737

3838
- name: Download resource files
39-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o phi2-290.pllm
39+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o phi2-290.pllm
4040

4141
- name: Make Android dir
4242
run: ~/Android/Sdk/platform-tools/adb shell mkdir -p /sdcard/Android/data/ai.picovoice.picollm.testapp/files/external
@@ -89,7 +89,7 @@ jobs:
8989
run: ~/Android/Sdk/platform-tools/adb shell pm uninstall ai.picovoice.picollm.testapp.test || true
9090

9191
- name: Download resource files
92-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o phi2-290.pllm
92+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o phi2-290.pllm
9393

9494
- name: Make Android dir
9595
run: ~/Android/Sdk/platform-tools/adb shell mkdir -p /sdcard/Android/data/ai.picovoice.picollm.testapp/files/external

.github/workflows/c-demos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
echo PATH=$PATH >> $GITHUB_ENV
7171
7272
- name: Download resource files
73-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o phi2-290.pllm
73+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o phi2-290.pllm
7474

7575
- name: Create build directory
7676
run: cmake -G "${{ matrix.make_file }}" -B ./build

.github/workflows/ios-demos.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ on:
55
push:
66
branches: [ main ]
77
paths:
8-
- 'demo/ios/**'
98
- '.github/workflows/ios-demos.yml'
9+
- 'demo/ios/**'
10+
- '!demo/ios/README.md'
1011
pull_request:
1112
branches: [ main, 'v[0-9]+.[0-9]+' ]
1213
paths:
13-
- 'demo/ios/**'
1414
- '.github/workflows/ios-demos.yml'
15+
- 'demo/ios/**'
16+
- '!demo/ios/README.md'
1517

1618
jobs:
1719
build-completion-demo:
@@ -28,7 +30,7 @@ jobs:
2830
run: gem install cocoapods
2931

3032
- name: Run Cocoapods
31-
run: pod install
33+
run: pod install --repo-update
3234

3335
- name: Build
3436
run: xcrun xcodebuild build
@@ -53,7 +55,7 @@ jobs:
5355
run: gem install cocoapods
5456

5557
- name: Run Cocoapods
56-
run: pod install
58+
run: pod install --repo-update
5759

5860
- name: Build
5961
run: xcrun xcodebuild build

.github/workflows/ios-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
push:
66
branches: [ main ]
77
paths:
8-
- '.github/workflows/ios-local.yml'
8+
- '.github/workflows/ios-tests.yml'
99
- 'binding/ios/PicoLLMAppTest/**'
1010
- 'resources/.test/**'
1111
pull_request:
1212
branches: [ main, 'v[0-9]+.[0-9]+' ]
1313
paths:
14-
- '.github/workflows/ios-local.yml'
14+
- '.github/workflows/ios-tests.yml'
1515
- 'binding/ios/PicoLLMAppTest/**'
1616
- 'resources/.test/**'
1717

@@ -29,14 +29,14 @@ jobs:
2929
uses: actions/checkout@v3
3030

3131
- name: Run Cocoapods
32-
run: pod install
32+
run: pod install --repo-update
3333

3434
- name: Inject AccessKey
3535
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
3636
PicoLLMAppTestUITests/BaseTest.swift
3737

3838
- name: Inject Resource URL
39-
run: sed -i '.bak' 's?{TESTING_MODEL_URL_HERE}?http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm?'
39+
run: sed -i '.bak' 's?{TESTING_MODEL_URL_HERE}?http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm?'
4040
PicoLLMAppTestUITests/BaseTest.swift
4141

4242
- name: XCode Build

.github/workflows/nodejs-demos.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,11 @@ jobs:
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747

48-
#### Remove after release ####
49-
50-
- name: Build Node.js binding
51-
run: yarn install && yarn build
52-
working-directory: binding/nodejs
53-
54-
####
55-
5648
- name: Install dependencies
5749
run: yarn install
5850

5951
- name: Download resource files
60-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o phi2-290.pllm
52+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o phi2-290.pllm
6153

6254
- name: Test
6355
run: yarn completion --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --model_path phi2-290.pllm --completion_token_limit 10 --prompt "Hello my name is" --device ${{matrix.xpu}}

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
xpu: [ cpu ]
34+
xpu: [ "cpu" ]
3535
machine: [ rpi4-32, rpi4-64, rpi5-32, rpi5-64, pv-linux, pv-ios, pv-windows ]
3636
include:
3737
- xpu: gpu
@@ -46,7 +46,7 @@ jobs:
4646
run: yarn install
4747

4848
- name: Download resource files
49-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o test/phi2-290.pllm
49+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o test/phi2-290.pllm
5050

5151
- name: Test
5252
run: yarn test test/index.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --device=${{matrix.xpu}}

.github/workflows/python-demos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: python3 -m pip install -r requirements.txt
5555

5656
- name: Download resource files
57-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o phi2-290.pllm
57+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o phi2-290.pllm
5858

5959
- name: Test
6060
run: python3 picollm_demo_completion.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --model_path phi2-290.pllm --completion_token_limit 10 --prompt "Hello my name is" --device ${{matrix.xpu}}

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
xpu: [ cpu ]
37+
xpu: [ "cpu" ]
3838
machine: [ rpi4-32, rpi4-64, rpi5-32, rpi5-64, pv-linux, pv-ios, pv-windows ]
3939
include:
4040
- xpu: gpu
@@ -62,7 +62,7 @@ jobs:
6262
run: python3 -m pip install -r binding/python/requirements.txt
6363

6464
- name: Download resource files
65-
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm -o phi2-290.pllm
65+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm -o phi2-290.pllm
6666

6767
- name: Test
6868
run: python3 -m binding.python.test_picollm ${{secrets.PV_VALID_ACCESS_KEY}} ./phi2-290.pllm ${{matrix.xpu}}

.github/workflows/web-demos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232

33+
#### REMOVE AFTER RELEASE ####
34+
3335
- name: Install dependencies
3436
run: yarn install
3537

.github/workflows/web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: yarn build
4343

4444
- name: Prepare Test
45-
run: yarn setup-test http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/latest/phi2-290.pllm phi2-290.pllm
45+
run: yarn setup-test http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/03-280e68c/phi2-290.pllm phi2-290.pllm
4646

4747
- name: Test Web Worker
4848
run: yarn test --env ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}}

0 commit comments

Comments
 (0)