Skip to content

Commit 9e8c4cc

Browse files
committed
Fix workflow
1 parent 393d39e commit 9e8c4cc

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/llama_cpp_plugin_build_and_test.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ jobs:
3838
- name: CMake - build
3939
run: cmake --build build -j`nproc` -- llama_cpp_plugin llama_cpp_e2e_tests
4040

41+
42+
- name: Change dir to build folder
43+
run: cd ${{ github.workspace }}/openvino/bin/intel64/Release/
44+
45+
4146
- name: Upload build artifacts
4247
uses: alehechka/upload-tartifact@v2
4348
with:
4449
name: build_artifacts
45-
path: ${{ github.workspace }}/openvino/bin/intel64/Release/
50+
path: ./
4651

4752
test_ubuntu20:
4853
needs: build_ubuntu20
@@ -52,17 +57,20 @@ jobs:
5257
uses: alehechka/download-tartifact@v2
5358
with:
5459
name: build_artifacts
55-
path: binaries
60+
path: ${{ github.workspace }}/binaries
5661

57-
- name: Prepare test data
62+
- name: Prepare test data - checkout llama.cpp repo
5863
uses: actions/checkout@v3
5964
with:
6065
repository: ggerganov/llama.cpp
6166
path: llama.cpp
62-
run: pip install llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
63-
run: huggingface-cli huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
64-
run: mkdir -p ${{ github.workspace }}/test_data
65-
run: python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
67+
68+
- name: Prepare test data - convert test model files
69+
run: |
70+
pip install -r llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
71+
huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
72+
mkdir -p ${{ github.workspace }}/test_data
73+
python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
6674
6775
- name: Run E2E tests
6876
run: ${{ github.workspace }}/binaries/llama_cpp_e2e_tests

0 commit comments

Comments
 (0)