mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-01 06:14:35 +00:00
12 lines
622 B
CMake
12 lines
622 B
CMake
set(TARGET llama-eval-callback)
|
|
add_executable(${TARGET} eval-callback.cpp)
|
|
install(TARGETS ${TARGET} RUNTIME)
|
|
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
|
|
target_compile_features(${TARGET} PRIVATE cxx_std_11)
|
|
|
|
set(TEST_TARGET test-eval-callback)
|
|
add_test(NAME ${TEST_TARGET}
|
|
COMMAND llama-eval-callback --hf-repo ggml-org/models --hf-file tinyllamas/stories260K.gguf --model stories260K.gguf --prompt hello --seed 42 -ngl 0
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../) # HACK for dl backends
|
|
set_property(TEST ${TEST_TARGET} PROPERTY LABELS eval-callback curl)
|