ggml_debug: ci: add tests

This commit is contained in:
Pierrick HYMBERT 2024-04-10 21:06:12 +02:00
parent 01dd5e9776
commit cda1d42a64
2 changed files with 6 additions and 1 deletions

View file

@ -223,7 +223,7 @@ jobs:
id: cmake_test
run: |
cd build
ctest -L main --verbose --timeout 900
ctest --verbose --timeout 900
- name: Test llama2c conversion
id: llama2c_test

View file

@ -3,3 +3,8 @@ add_executable(${TARGET} ggml-debug.cpp)
install(TARGETS ${TARGET} RUNTIME)
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
target_compile_features(${TARGET} PRIVATE cxx_std_11)
# define tests
enable_testing()
add_test(NAME test-ggml-debug COMMAND ggml-debug --hf-repo ggml-org/models --hf-file tinyllamas/stories260K.gguf --model stories260K.gguf --prompt hello --seed 42)