Remove conda for llm workflow (#8671)
This commit is contained in:
parent
b6468bac43
commit
bc4cdb07c9
4 changed files with 20 additions and 44 deletions
|
|
@ -10,7 +10,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
rm -rf python/llm/llm-binary || true
|
rm -rf python/llm/llm-binary || true
|
||||||
mkdir python/llm/llm-binary
|
mkdir -p python/llm/llm-binary
|
||||||
mv linux-avx2/* python/llm/llm-binary/
|
mv linux-avx2/* python/llm/llm-binary/
|
||||||
mv linux-avx512/* python/llm/llm-binary/
|
mv linux-avx512/* python/llm/llm-binary/
|
||||||
mv linux-avxvnni/* python/llm/llm-binary/
|
mv linux-avxvnni/* python/llm/llm-binary/
|
||||||
|
|
|
||||||
9
.github/actions/llm/setup-llm-env/action.yml
vendored
9
.github/actions/llm/setup-llm-env/action.yml
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
name: 'Setup BigDL-LLM Env'
|
name: "Setup BigDL-LLM Env"
|
||||||
description: 'Conda env create and BigDL-LLM installation'
|
description: "BigDL-LLM installation"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
@ -7,14 +7,9 @@ runs:
|
||||||
- name: Create conda env for llm tests and conduct install tests
|
- name: Create conda env for llm tests and conduct install tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
$CONDA_HOME/bin/conda env remove -y -n bigdl-llm-test || true
|
|
||||||
$CONDA_HOME/bin/conda create -n bigdl-llm-test -y python==3.9 setuptools==58.0.4
|
|
||||||
source $CONDA_HOME/bin/activate bigdl-llm-test
|
|
||||||
$CONDA_HOME/bin/conda info
|
|
||||||
pip install requests
|
pip install requests
|
||||||
bash python/llm/dev/release_default_linux.sh default false
|
bash python/llm/dev/release_default_linux.sh default false
|
||||||
whl_name=$(ls python/llm/dist)
|
whl_name=$(ls python/llm/dist)
|
||||||
pip install -i https://pypi.python.org/simple "python/llm/dist/${whl_name}[all]"
|
pip install -i https://pypi.python.org/simple "python/llm/dist/${whl_name}[all]"
|
||||||
pip install pytest
|
pip install pytest
|
||||||
bash python/llm/test/run-llm-install-tests.sh
|
bash python/llm/test/run-llm-install-tests.sh
|
||||||
source $CONDA_HOME/bin/deactivate
|
|
||||||
|
|
|
||||||
29
.github/workflows/llm-nightly-test.yml
vendored
29
.github/workflows/llm-nightly-test.yml
vendored
|
|
@ -8,14 +8,14 @@ concurrency:
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '00 13 * * *' # GMT time, 13:00 GMT == 21:00 China
|
- cron: "00 13 * * *" # GMT time, 13:00 GMT == 21:00 China
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/llm-nightly-test.yml'
|
- ".github/workflows/llm-nightly-test.yml"
|
||||||
- '.github/actions/llm/setup-llm-env/action.yml'
|
- ".github/actions/llm/setup-llm-env/action.yml"
|
||||||
- '.github/actions/llm/remove-llm-env/action.yml'
|
- ".github/actions/llm/remove-llm-env/action.yml"
|
||||||
- '.github/actions/llm/convert-test/action.yml'
|
- ".github/actions/llm/convert-test/action.yml"
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
llm-cpp-build:
|
llm-cpp-build:
|
||||||
uses: ./.github/workflows/llm-binary-build.yml
|
uses: ./.github/workflows/llm-binary-build.yml
|
||||||
llm-nightly-convert-test-avx512:
|
llm-nightly-convert-test-avx512:
|
||||||
runs-on: [ self-hosted, llm, AVX512, ubuntu-20.04-lts ]
|
runs-on: [self-hosted, llm, AVX512, ubuntu-20.04-lts]
|
||||||
needs: llm-cpp-build
|
needs: llm-cpp-build
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -42,10 +42,12 @@ jobs:
|
||||||
GPTNEOX_INT4_CKPT_PATH: ./llm/ggml-actions/nightly/bigdl_llm_gptneox_q4_0.bin
|
GPTNEOX_INT4_CKPT_PATH: ./llm/ggml-actions/nightly/bigdl_llm_gptneox_q4_0.bin
|
||||||
BLOOM_INT4_CKPT_PATH: ./llm/ggml-actions/nightly/bigdl_llm_bloom_q4_0.bin
|
BLOOM_INT4_CKPT_PATH: ./llm/ggml-actions/nightly/bigdl_llm_bloom_q4_0.bin
|
||||||
STARCODER_INT4_CKPT_PATH: ./llm/ggml-actions/nightly/bigdl_llm_starcoder_q4_0.bin
|
STARCODER_INT4_CKPT_PATH: ./llm/ggml-actions/nightly/bigdl_llm_starcoder_q4_0.bin
|
||||||
|
|
||||||
|
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
@ -59,13 +61,9 @@ jobs:
|
||||||
|
|
||||||
- name: Install BigDL-LLM
|
- name: Install BigDL-LLM
|
||||||
uses: ./.github/actions/llm/setup-llm-env
|
uses: ./.github/actions/llm/setup-llm-env
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Download original models & convert
|
- name: Download original models & convert
|
||||||
uses: ./.github/actions/llm/convert-test
|
uses: ./.github/actions/llm/convert-test
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Upload ckpt to ftp
|
- name: Upload ckpt to ftp
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -75,11 +73,6 @@ jobs:
|
||||||
tnftp -u ${LLM_FTP_URL}/${INT4_CKPT_DIR:1}/bigdl_llm_bloom_7b_q4_0.bin $BLOOM_INT4_CKPT_PATH
|
tnftp -u ${LLM_FTP_URL}/${INT4_CKPT_DIR:1}/bigdl_llm_bloom_7b_q4_0.bin $BLOOM_INT4_CKPT_PATH
|
||||||
tnftp -u ${LLM_FTP_URL}/${INT4_CKPT_DIR:1}/bigdl_llm_santacoder_1b_q4_0.bin $STARCODER_INT4_CKPT_PATH
|
tnftp -u ${LLM_FTP_URL}/${INT4_CKPT_DIR:1}/bigdl_llm_santacoder_1b_q4_0.bin $STARCODER_INT4_CKPT_PATH
|
||||||
|
|
||||||
- name: Clean up test environment
|
|
||||||
uses: ./.github/actions/llm/remove-llm-env
|
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
llm-inference-test-on-linux:
|
llm-inference-test-on-linux:
|
||||||
needs: llm-nightly-convert-test-avx512
|
needs: llm-nightly-convert-test-avx512
|
||||||
uses: ./.github/workflows/llm_unit_tests_linux.yml
|
uses: ./.github/workflows/llm_unit_tests_linux.yml
|
||||||
|
|
|
||||||
18
.github/workflows/llm_unit_tests_linux.yml
vendored
18
.github/workflows/llm_unit_tests_linux.yml
vendored
|
|
@ -63,10 +63,11 @@ jobs:
|
||||||
runs-on: [self-hosted, llm, "${{matrix.instruction}}", ubuntu-20.04-lts]
|
runs-on: [self-hosted, llm, "${{matrix.instruction}}", ubuntu-20.04-lts]
|
||||||
env:
|
env:
|
||||||
THREAD_NUM: 24
|
THREAD_NUM: 24
|
||||||
|
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
@ -80,8 +81,6 @@ jobs:
|
||||||
|
|
||||||
- name: Run LLM install (all) test
|
- name: Run LLM install (all) test
|
||||||
uses: ./.github/actions/llm/setup-llm-env
|
uses: ./.github/actions/llm/setup-llm-env
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Download ckpt & original models
|
- name: Download ckpt & original models
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -124,20 +123,9 @@ jobs:
|
||||||
|
|
||||||
- name: Run LLM cli test
|
- name: Run LLM cli test
|
||||||
uses: ./.github/actions/llm/cli-test
|
uses: ./.github/actions/llm/cli-test
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Run LLM inference test
|
- name: Run LLM inference test
|
||||||
uses: ./.github/actions/llm/inference-test
|
uses: ./.github/actions/llm/inference-test
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Run LLM langchain test
|
- name: Run LLM langchain test
|
||||||
uses: ./.github/actions/llm/langchain-test
|
uses: ./.github/actions/llm/langchain-test
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
||||||
- name: Clean up test environment
|
|
||||||
uses: ./.github/actions/llm/remove-llm-env
|
|
||||||
env:
|
|
||||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue