[LLM] add chatglm pybinding binary file release (#8677)
This commit is contained in:
parent
bc4cdb07c9
commit
5837cc424a
2 changed files with 14 additions and 2 deletions
15
.github/workflows/llm-binary-build.yml
vendored
15
.github/workflows/llm-binary-build.yml
vendored
|
|
@ -32,12 +32,17 @@ jobs:
|
||||||
uses: xSAVIKx/artifact-exists-action@v0
|
uses: xSAVIKx/artifact-exists-action@v0
|
||||||
with:
|
with:
|
||||||
name: linux-avxvnni
|
name: linux-avxvnni
|
||||||
|
|
||||||
linux-build-avxvnni:
|
linux-build-avxvnni:
|
||||||
runs-on: [self-hosted, AVX2, centos7]
|
runs-on: [self-hosted, AVX2, centos7]
|
||||||
needs: check-linux-avxvnni-artifact
|
needs: check-linux-avxvnni-artifact
|
||||||
if: needs.check-linux-avxvnni-artifact.outputs.if-exists == 'false'
|
if: needs.check-linux-avxvnni-artifact.outputs.if-exists == 'false'
|
||||||
steps:
|
steps:
|
||||||
|
# todo: it seems centos7 doesn't support python 3.9
|
||||||
|
# - name: Set up Python
|
||||||
|
# uses: actions/setup-python@v4
|
||||||
|
# with:
|
||||||
|
# python-version: "3.9"
|
||||||
- name: Set access token
|
- name: Set access token
|
||||||
run: |
|
run: |
|
||||||
echo "github_access_token=${GITHUB_ACCESS_TOKEN}" >> "$GITHUB_ENV"
|
echo "github_access_token=${GITHUB_ACCESS_TOKEN}" >> "$GITHUB_ENV"
|
||||||
|
|
@ -112,6 +117,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mv src/chatglm/build/main release/main-chatglm_vnni
|
mv src/chatglm/build/main release/main-chatglm_vnni
|
||||||
|
# mv src/chatglm/build/_C.cpython-39-x86_64-linux-gnu.so release/chatglm_C.cpython-39-x86_64-linux-gnu.so
|
||||||
|
|
||||||
- name: Archive build files
|
- name: Archive build files
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
@ -123,7 +129,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
check-linux-avx512-artifact:
|
check-linux-avx512-artifact:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
|
|
@ -312,6 +318,10 @@ jobs:
|
||||||
needs: check-windows-avx2-vnni-artifact
|
needs: check-windows-avx2-vnni-artifact
|
||||||
if: needs.check-windows-avx2-vnni-artifact.outputs.if-exists == 'false'
|
if: needs.check-windows-avx2-vnni-artifact.outputs.if-exists == 'false'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.9"
|
||||||
- name: Set access token
|
- name: Set access token
|
||||||
run: |
|
run: |
|
||||||
echo "github_access_token=$env:GITHUB_ACCESS_TOKEN" >> $env:GITHUB_ENV
|
echo "github_access_token=$env:GITHUB_ACCESS_TOKEN" >> $env:GITHUB_ENV
|
||||||
|
|
@ -362,6 +372,7 @@ jobs:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
mv src/chatglm/build/Release/main.exe release/main-chatglm_vnni.exe
|
mv src/chatglm/build/Release/main.exe release/main-chatglm_vnni.exe
|
||||||
|
mv src/chatglm/build/Release/_C.cp39-win_amd64.pyd release/chatglm_C.cp39-win_amd64.pyd
|
||||||
- name: Archive build files
|
- name: Archive build files
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
1
python/llm/.gitignore
vendored
Normal file
1
python/llm/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
libs/
|
||||||
Loading…
Reference in a new issue