Skip to content

Commit 5837cc4

Browse files
authoredAug 4, 2023
[LLM] add chatglm pybinding binary file release (#8677)
1 parent bc4cdb0 commit 5837cc4

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
 

‎.github/workflows/llm-binary-build.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,17 @@ jobs:
3232
uses: xSAVIKx/artifact-exists-action@v0
3333
with:
3434
name: linux-avxvnni
35-
35+
3636
linux-build-avxvnni:
3737
runs-on: [self-hosted, AVX2, centos7]
3838
needs: check-linux-avxvnni-artifact
3939
if: needs.check-linux-avxvnni-artifact.outputs.if-exists == 'false'
4040
steps:
41+
# todo: it seems centos7 doesn't support python 3.9
42+
# - name: Set up Python
43+
# uses: actions/setup-python@v4
44+
# with:
45+
# python-version: "3.9"
4146
- name: Set access token
4247
run: |
4348
echo "github_access_token=${GITHUB_ACCESS_TOKEN}" >> "$GITHUB_ENV"
@@ -112,6 +117,7 @@ jobs:
112117
shell: bash
113118
run: |
114119
mv src/chatglm/build/main release/main-chatglm_vnni
120+
# mv src/chatglm/build/_C.cpython-39-x86_64-linux-gnu.so release/chatglm_C.cpython-39-x86_64-linux-gnu.so
115121
116122
- name: Archive build files
117123
uses: actions/upload-artifact@v3
@@ -123,7 +129,7 @@ jobs:
123129
shell: bash
124130
run: |
125131
make clean
126-
132+
127133
check-linux-avx512-artifact:
128134
runs-on: ubuntu-latest
129135
outputs:
@@ -312,6 +318,10 @@ jobs:
312318
needs: check-windows-avx2-vnni-artifact
313319
if: needs.check-windows-avx2-vnni-artifact.outputs.if-exists == 'false'
314320
steps:
321+
- name: Set up Python
322+
uses: actions/setup-python@v4
323+
with:
324+
python-version: "3.9"
315325
- name: Set access token
316326
run: |
317327
echo "github_access_token=$env:GITHUB_ACCESS_TOKEN" >> $env:GITHUB_ENV
@@ -362,6 +372,7 @@ jobs:
362372
shell: powershell
363373
run: |
364374
mv src/chatglm/build/Release/main.exe release/main-chatglm_vnni.exe
375+
mv src/chatglm/build/Release/_C.cp39-win_amd64.pyd release/chatglm_C.cp39-win_amd64.pyd
365376
- name: Archive build files
366377
uses: actions/upload-artifact@v3
367378
with:

‎python/llm/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libs/

0 commit comments

Comments
 (0)
Please sign in to comment.