test py311
This commit is contained in:
parent
6f1cee90a4
commit
ba148ff3ff
3 changed files with 43 additions and 43 deletions
58
.github/workflows/llm-binary-build.yml
vendored
58
.github/workflows/llm-binary-build.yml
vendored
|
|
@ -62,8 +62,8 @@ jobs:
|
||||||
conda create -n python39 python=3.9 -y
|
conda create -n python39 python=3.9 -y
|
||||||
conda remove -n python310 --all -y
|
conda remove -n python310 --all -y
|
||||||
conda create -n python310 python=3.10 -y
|
conda create -n python310 python=3.10 -y
|
||||||
|
# conda remove -n python311 --all -y
|
||||||
conda create -n python311 python=3.11 -y
|
# conda create -n python311 python=3.11 -y
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: "intel-analytics/llm.cpp"
|
repository: "intel-analytics/llm.cpp"
|
||||||
|
|
@ -119,18 +119,18 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mv src/chatglm/build/_C.cpython-310-x86_64-linux-gnu.so release/chatglm_C.cpython-310-x86_64-linux-gnu.so
|
mv src/chatglm/build/_C.cpython-310-x86_64-linux-gnu.so release/chatglm_C.cpython-310-x86_64-linux-gnu.so
|
||||||
- name: Build Chatglm Py311
|
# - name: Build Chatglm Py311
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
source activate python311 || conda activate python311
|
# source activate python311 || conda activate python311
|
||||||
cd src/chatglm
|
# cd src/chatglm
|
||||||
rm -r build
|
# rm -r build
|
||||||
scl enable gcc-toolset-11 "cmake -B build"
|
# scl enable gcc-toolset-11 "cmake -B build"
|
||||||
scl enable gcc-toolset-11 "cmake --build build --config Release -j"
|
# scl enable gcc-toolset-11 "cmake --build build --config Release -j"
|
||||||
- name: Move Chatglm binaries Py311
|
# - name: Move Chatglm binaries Py311
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
mv src/chatglm/build/_C.cpython-311-x86_64-linux-gnu.so release/chatglm_C.cpython-311-x86_64-linux-gnu.so
|
# mv src/chatglm/build/_C.cpython-311-x86_64-linux-gnu.so release/chatglm_C.cpython-311-x86_64-linux-gnu.so
|
||||||
- name: Archive build files
|
- name: Archive build files
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -446,21 +446,21 @@ jobs:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
mv src/chatglm/build/Release/_C.cp310-win_amd64.pyd release/chatglm_C.cp310-win_amd64.pyd
|
mv src/chatglm/build/Release/_C.cp310-win_amd64.pyd release/chatglm_C.cp310-win_amd64.pyd
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
# uses: actions/setup-python@v4
|
||||||
with:
|
# with:
|
||||||
python-version: "3.11"
|
# python-version: "3.11"
|
||||||
- name: Build Chatglm Py311
|
# - name: Build Chatglm Py311
|
||||||
shell: powershell
|
# shell: powershell
|
||||||
run: |
|
# run: |
|
||||||
cd src/chatglm
|
# cd src/chatglm
|
||||||
rm -r build
|
# rm -r build
|
||||||
cmake -DAVXVNNI=ON -B build
|
# cmake -DAVXVNNI=ON -B build
|
||||||
cmake --build build --config Release -j
|
# cmake --build build --config Release -j
|
||||||
- name: Move Chatglm binaries Py311
|
# - name: Move Chatglm binaries Py311
|
||||||
shell: powershell
|
# shell: powershell
|
||||||
run: |
|
# run: |
|
||||||
mv src/chatglm/build/Release/_C.cp311-win_amd64.pyd release/chatglm_C.cp311-win_amd64.pyd
|
# mv src/chatglm/build/Release/_C.cp311-win_amd64.pyd release/chatglm_C.cp311-win_amd64.pyd
|
||||||
- name: Archive build files
|
- name: Archive build files
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
24
.github/workflows/llm_unit_tests.yml
vendored
24
.github/workflows/llm_unit_tests.yml
vendored
|
|
@ -44,18 +44,18 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: windows
|
# - os: windows
|
||||||
instruction: avx2
|
# instruction: avx2
|
||||||
python-version: "3.9"
|
# python-version: "3.9"
|
||||||
- os: ubuntu-20.04-lts
|
# - os: ubuntu-20.04-lts
|
||||||
instruction: avx512
|
# instruction: avx512
|
||||||
python-version: "3.9"
|
# python-version: "3.9"
|
||||||
- os: windows
|
# - os: windows
|
||||||
instruction: avx2
|
# instruction: avx2
|
||||||
python-version: "3.10"
|
# python-version: "3.10"
|
||||||
- os: ubuntu-20.04-lts
|
# - os: ubuntu-20.04-lts
|
||||||
instruction: avx512
|
# instruction: avx512
|
||||||
python-version: "3.10"
|
# python-version: "3.10"
|
||||||
- os: windows
|
- os: windows
|
||||||
instruction: avx2
|
instruction: avx2
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ windows_binarys = [
|
||||||
"main-chatglm_vnni.exe",
|
"main-chatglm_vnni.exe",
|
||||||
"chatglm_C.cp39-win_amd64.pyd",
|
"chatglm_C.cp39-win_amd64.pyd",
|
||||||
"chatglm_C.cp310-win_amd64.pyd",
|
"chatglm_C.cp310-win_amd64.pyd",
|
||||||
"chatglm_C.cp311-win_amd64.pyd"
|
|
||||||
]
|
]
|
||||||
linux_binarys = [
|
linux_binarys = [
|
||||||
"libllama_avx.so",
|
"libllama_avx.so",
|
||||||
|
|
@ -127,7 +127,7 @@ linux_binarys = [
|
||||||
"main-chatglm_amx",
|
"main-chatglm_amx",
|
||||||
"chatglm_C.cpython-39-x86_64-linux-gnu.so",
|
"chatglm_C.cpython-39-x86_64-linux-gnu.so",
|
||||||
"chatglm_C.cpython-310-x86_64-linux-gnu.so",
|
"chatglm_C.cpython-310-x86_64-linux-gnu.so",
|
||||||
"chatglm_C.cpython-311-x86_64-linux-gnu.so"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
ext_lib_urls = [
|
ext_lib_urls = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue