Skip to content

Commit 393d39e

Browse files
committed
Add test data preparation step to workflow
1 parent f82ee68 commit 393d39e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/llama_cpp_plugin_build_and_test.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: alehechka/upload-tartifact@v2
4343
with:
4444
name: build_artifacts
45-
path: ${{ github.workspace }}/bin/intel64/Release/
45+
path: ${{ github.workspace }}/openvino/bin/intel64/Release/
4646

4747
test_ubuntu20:
4848
needs: build_ubuntu20
@@ -54,5 +54,15 @@ jobs:
5454
name: build_artifacts
5555
path: binaries
5656

57+
- name: Prepare test data
58+
uses: actions/checkout@v3
59+
with:
60+
repository: ggerganov/llama.cpp
61+
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
66+
5767
- name: Run E2E tests
5868
run: ${{ github.workspace }}/binaries/llama_cpp_e2e_tests

0 commit comments

Comments
 (0)