Skip to content

Commit

Permalink
Fix workflow indents
Browse files Browse the repository at this point in the history
  • Loading branch information
vshampor committed Mar 22, 2024
1 parent d5447c9 commit 552411a
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/llama_cpp_plugin_build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: llama_cpp_plugin_build_and_test

on:
pull_request:
types:
- opened
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- 'modules/llama_cpp_plugin/**'
- 'modules/llama_cpp_plugin/**'

jobs:
build_ubuntu20:
runs-on: ubuntu-20.04
build_ubuntu20:
runs-on: ubuntu-20.04
steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.14
with:
cmake-version: '3.24.x'
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.14
with:
cmake-version: '3.24.x'

- name: Checkout openvino_contrib
uses: actions/checkout@v3
with:
submodules: recursive
submodules: recursive
path: openvino_contrib

- name: Checkout openvino
uses: actions/checkout@v3
with:
submodules: recursive
submodules: recursive
repository: openvinotoolkit/openvino
path: openvino

Expand All @@ -41,40 +41,40 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build_artifacts
name: build_artifacts
path: ${{ github.workspace }}/openvino/bin/intel64/Release/

test_ubuntu20:
needs: build_ubuntu20
runs-on: ubuntu-20.04
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build_artifacts
path: ${{ github.workspace }}/binaries
needs: build_ubuntu20
runs-on: ubuntu-20.04
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build_artifacts
path: ${{ github.workspace }}/binaries

- name: Prepare test data - checkout llama.cpp repo
uses: actions/checkout@v3
with:
repository: ggerganov/llama.cpp
- name: Prepare test data - checkout llama.cpp repo
uses: actions/checkout@v3
with:
repository: ggerganov/llama.cpp
path: llama.cpp

- name: Prepare test data - convert test model files
run: |
pip install -r llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
mkdir -p ${{ github.workspace }}/test_data
python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
- name: Prepare test data - convert test model files
run: |
pip install -r llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
mkdir -p ${{ github.workspace }}/test_data
python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
- name: Install libtbb2
run: |
wget https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/oneapi-tbb-2021.2.4-lin.tgz
mkdir -p tbb
tar xvzf oneapi-tbb-2021.2.4-lin.tgz
- name: Install libtbb2
run: |
wget https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/oneapi-tbb-2021.2.4-lin.tgz
mkdir -p tbb
tar xvzf oneapi-tbb-2021.2.4-lin.tgz
- name: Run E2E tests
run: |
chmod +x ${{ github.workspace }}/binaries/llama_cpp_e2e_tests
export LD_LIBRARY_PATH=${{ github.workspace }}/binaries:${{ github.workspace }}/tbb/lib
${{ github.workspace }}/binaries/llama_cpp_e2e_tests
- name: Run E2E tests
run: |
chmod +x ${{ github.workspace }}/binaries/llama_cpp_e2e_tests
export LD_LIBRARY_PATH=${{ github.workspace }}/binaries:${{ github.workspace }}/tbb/lib
${{ github.workspace }}/binaries/llama_cpp_e2e_tests

0 comments on commit 552411a

Please sign in to comment.