Skip to content

Commit 48d2914

Browse files
authored
v1.2 (#71)
1 parent 3a03412 commit 48d2914

File tree

105 files changed

+422
-252
lines changed

Some content is hidden

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

105 files changed

+422
-252
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/03-280e68c/phi2-290.pllm -o phi2-290.pllm
39+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/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/03-280e68c/phi2-290.pllm -o phi2-290.pllm
92+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/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: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,29 @@ jobs:
5151
- xpu: cpu
5252
machine: pv-windows
5353
make_file: "MinGW Makefiles"
54+
- xpu: gpu
55+
machine: pv-windows-igpu
56+
make_file: "MinGW Makefiles"
5457

5558
steps:
5659
- uses: actions/checkout@v3
5760

5861
- name: Setup Python virtualenv (*nix)
59-
if: ${{ matrix.machine != 'pv-windows' }}
62+
if: ${{ matrix.machine != 'pv-windows' && matrix.machine != 'pv-windows-igpu' }}
6063
run: |
6164
python3 -m venv binding/python/.venv
6265
. binding/python/.venv/bin/activate
6366
echo PATH=$PATH >> $GITHUB_ENV
6467
6568
- name: Setup Python virtualenv (windows)
66-
if: ${{ matrix.machine == 'pv-windows' }}
69+
if: ${{ matrix.machine == 'pv-windows' || matrix.machine == 'pv-windows-igpu' }}
6770
run: |
68-
python3 -m venv binding\python\.venv
71+
python3 -m venv binding\python\.venv --symlinks
6972
binding\python\.venv\Scripts\activate
7073
echo PATH=$PATH >> $GITHUB_ENV
7174
7275
- name: Download resource files
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
76+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o phi2-290.pllm
7477

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

.github/workflows/ios-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
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/03-280e68c/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/04-d5f2aa0/phi2-290.pllm?'
4040
PicoLLMAppTestUITests/BaseTest.swift
4141

4242
- name: XCode Build

.github/workflows/nodejs-demos.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
machine: pv-linux
3737
- xpu: gpu
3838
machine: pv-windows
39+
- xpu: gpu
40+
machine: pv-windows-igpu
3941

4042
steps:
4143
- uses: actions/checkout@v3
@@ -49,7 +51,7 @@ jobs:
4951
run: yarn install
5052

5153
- name: Download resource files
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
54+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o phi2-290.pllm
5355

5456
- name: Test
5557
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
machine: pv-linux
3939
- xpu: gpu
4040
machine: pv-windows
41+
- xpu: gpu
42+
machine: pv-windows-igpu
4143

4244
steps:
4345
- uses: actions/checkout@v3
@@ -46,7 +48,7 @@ jobs:
4648
run: yarn install
4749

4850
- name: Download resource files
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
51+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o test/phi2-290.pllm
5052

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

.github/workflows/python-demos.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,30 @@ jobs:
3333
machine: pv-linux
3434
- xpu: gpu
3535
machine: pv-windows
36+
- xpu: gpu
37+
machine: pv-windows-igpu
3638
steps:
3739
- uses: actions/checkout@v3
3840

3941
- name: Setup Python virtualenv (*nix)
40-
if: ${{ matrix.machine != 'pv-windows' }}
42+
if: ${{ matrix.machine != 'pv-windows' && matrix.machine != 'pv-windows-igpu' }}
4143
run: |
4244
python3 -m venv .venv
4345
. .venv/bin/activate
4446
echo PATH=$PATH >> $GITHUB_ENV
4547
4648
- name: Setup Python virtualenv (windows)
47-
if: ${{ matrix.machine == 'pv-windows' }}
49+
if: ${{ matrix.machine == 'pv-windows' || matrix.machine == 'pv-windows-igpu' }}
4850
run: |
49-
python3 -m venv .venv
51+
python3 -m venv .venv --symlinks
5052
.venv\Scripts\activate
5153
echo PATH=$PATH >> $GITHUB_ENV
5254
5355
- name: Install Python dependencies
5456
run: python3 -m pip install -r requirements.txt
5557

5658
- name: Download resource files
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
59+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o phi2-290.pllm
5860

5961
- name: Test
6062
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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,30 @@ jobs:
4141
machine: pv-linux
4242
- xpu: gpu
4343
machine: pv-windows
44+
- xpu: gpu
45+
machine: pv-windows-igpu
4446
steps:
4547
- uses: actions/checkout@v3
4648

4749
- name: Setup Python virtualenv (*nix)
48-
if: ${{ matrix.machine != 'pv-windows' }}
50+
if: ${{ matrix.machine != 'pv-windows' && matrix.machine != 'pv-windows-igpu' }}
4951
run: |
5052
python3 -m venv binding/python/.venv
5153
. binding/python/.venv/bin/activate
5254
echo PATH=$PATH >> $GITHUB_ENV
5355
5456
- name: Setup Python virtualenv (windows)
55-
if: ${{ matrix.machine == 'pv-windows' }}
57+
if: ${{ matrix.machine == 'pv-windows' || matrix.machine == 'pv-windows-igpu' }}
5658
run: |
57-
python3 -m venv binding\python\.venv
59+
python3 -m venv binding\python\.venv --symlinks
5860
binding\python\.venv\Scripts\activate
5961
echo PATH=$PATH >> $GITHUB_ENV
6062
6163
- name: Install Python dependencies
6264
run: python3 -m pip install -r binding/python/requirements.txt
6365

6466
- name: Download resource files
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
67+
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm -o phi2-290.pllm
6668

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

.github/workflows/web-demos.yml

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

33-
#### REMOVE AFTER RELEASE ####
34-
3533
- name: Install dependencies
3634
run: yarn install
3735

.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/03-280e68c/phi2-290.pllm phi2-290.pllm
45+
run: yarn setup-test http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.pllm/04-d5f2aa0/phi2-290.pllm phi2-290.pllm
4646

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

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ pv_picollm_delete(pllm);
413413

414414
## Releases
415415

416+
### v1.2.0 - November 14th, 2024
417+
418+
- Performance improvements
419+
- Added support for phi3.5
420+
416421
### v1.1.0 - October 1st, 2024
417422

418423
- Added `interrupt()` function for halting completion generation early

0 commit comments

Comments
 (0)