From 5837cc424a0e696760ef8455496c08f1a03890e0 Mon Sep 17 00:00:00 2001 From: Yishuo Wang Date: Fri, 4 Aug 2023 11:45:27 +0800 Subject: [PATCH] [LLM] add chatglm pybinding binary file release (#8677) --- .github/workflows/llm-binary-build.yml | 15 +++++++++++++-- python/llm/.gitignore | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 python/llm/.gitignore diff --git a/.github/workflows/llm-binary-build.yml b/.github/workflows/llm-binary-build.yml index 3c5ba151..e4acc21e 100644 --- a/.github/workflows/llm-binary-build.yml +++ b/.github/workflows/llm-binary-build.yml @@ -32,12 +32,17 @@ jobs: uses: xSAVIKx/artifact-exists-action@v0 with: name: linux-avxvnni - + linux-build-avxvnni: runs-on: [self-hosted, AVX2, centos7] needs: check-linux-avxvnni-artifact if: needs.check-linux-avxvnni-artifact.outputs.if-exists == 'false' 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 run: | echo "github_access_token=${GITHUB_ACCESS_TOKEN}" >> "$GITHUB_ENV" @@ -112,6 +117,7 @@ jobs: shell: bash run: | 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 uses: actions/upload-artifact@v3 @@ -123,7 +129,7 @@ jobs: shell: bash run: | make clean - + check-linux-avx512-artifact: runs-on: ubuntu-latest outputs: @@ -312,6 +318,10 @@ jobs: needs: check-windows-avx2-vnni-artifact if: needs.check-windows-avx2-vnni-artifact.outputs.if-exists == 'false' steps: + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.9" - name: Set access token run: | echo "github_access_token=$env:GITHUB_ACCESS_TOKEN" >> $env:GITHUB_ENV @@ -362,6 +372,7 @@ jobs: shell: powershell run: | 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 uses: actions/upload-artifact@v3 with: diff --git a/python/llm/.gitignore b/python/llm/.gitignore new file mode 100644 index 00000000..2fd4c3b3 --- /dev/null +++ b/python/llm/.gitignore @@ -0,0 +1 @@ +libs/