fix falcon-40b conversion error (#153) #461
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: llm_bench Python Test | |
env: | |
LLM_BENCH_PYPATH: llm_bench/python | |
on: | |
push: | |
branches: [ "master" ] | |
paths: | |
- llm_bench/python/** | |
pull_request: | |
paths: | |
- llm_bench/python/** | |
- .github/workflows/llm_bench-python.yml | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 pytest black | |
pip install -r ${{ env.LLM_BENCH_PYPATH }}/requirements.txt | |
pip install openvino-nightly | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
python -m flake8 ${{ env.LLM_BENCH_PYPATH }} --config=${{ env.LLM_BENCH_PYPATH }}/setup.cfg | |
- name: Create code style diff for samples | |
if: failure() | |
run: | | |
python -m black -l 160 -S ${{ env.LLM_BENCH_PYPATH }}/ | |
git diff > llm.bench_diff.diff | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: llm.bench_diff | |
path: llm.bench_diff.diff | |
- name: Test bloomz-560m on Linux | |
run: llm_bench/python/llm_run_bloomz_560m_on_linux.sh | |
- name: Test tiny-stable-diffusion on Linux | |
run: llm_bench/python/llm_run_stable_diffusion_on_linux.sh | |
stateful: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Test stateful | |
run: | | |
python -m pip install -r llm_bench/python/requirements.txt optimum | |
python -m pip uninstall --yes openvino | |
python -m pip install openvino-nightly | |
python llm_bench/python/convert.py --model_id TinyLlama/TinyLlama-1.1B-Chat-v0.6 --output_dir . --stateful | |
grep beam_idx pytorch/dldt/FP32/openvino_model.xml |