Skip to content

Commit 799be34

Browse files
committed
Fix workflow
1 parent 393d39e commit 799be34

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/llama_cpp_plugin_build_and_test.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,18 @@ jobs:
5454
name: build_artifacts
5555
path: binaries
5656

57-
- name: Prepare test data
57+
- name: Prepare test data - checkout llama.cpp repo
5858
uses: actions/checkout@v3
5959
with:
6060
repository: ggerganov/llama.cpp
6161
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
62+
63+
- name: Prepare test data - convert test model files
64+
run: |
65+
pip install llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
66+
huggingface-cli huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
67+
mkdir -p ${{ github.workspace }}/test_data
68+
python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
6669
6770
- name: Run E2E tests
6871
run: ${{ github.workspace }}/binaries/llama_cpp_e2e_tests

0 commit comments

Comments
 (0)