Skip to content

Commit 7d02be0

Browse files
committed
Fix workflow
1 parent 393d39e commit 7d02be0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/llama_cpp_plugin_build_and_test.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
- name: CMake - build
3939
run: cmake --build build -j`nproc` -- llama_cpp_plugin llama_cpp_e2e_tests
4040

41+
4142
- name: Upload build artifacts
42-
uses: alehechka/upload-tartifact@v2
43+
uses: actions/upload-artifact@v4
4344
with:
4445
name: build_artifacts
4546
path: ${{ github.workspace }}/openvino/bin/intel64/Release/
@@ -49,20 +50,23 @@ jobs:
4950
runs-on: ubuntu-20.04
5051
steps:
5152
- name: Download build artifacts
52-
uses: alehechka/download-tartifact@v2
53+
uses: actions/download-artifact@v4
5354
with:
5455
name: build_artifacts
55-
path: binaries
56+
path: ${{ github.workspace }}/binaries
5657

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

0 commit comments

Comments
 (0)