From 6abfa1bde71a470d1c0193b34ebfdc95e9c216b3 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Mon, 3 Jun 2024 13:23:04 +0300 Subject: [PATCH] spec: check: Do an actual run on tiny-llamas model `test-eval-callback` wants the same model but it wants to download it, thus instead of enabling the test run llama-main manually to generate something. Signed-off-by: Vitaly Chikunov --- .gear/llama.cpp.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index bc9467499..f1eaab593 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -30,6 +30,7 @@ BuildRequires: libcurl-devel BuildRequires: libopenblas-devel %{?!_without_check:%{?!_disable_check: BuildRequires: ctest +BuildRequires: tinyllamas-gguf }} %description @@ -132,7 +133,12 @@ EOF %check %_cmake__builddir/bin/main --version |& grep -Fx 'version: %version (%release)' +# test-eval-callback wants network. %ctest -j1 -E test-eval-callback +PATH=%buildroot%_bindir:$PATH +llama-main -m %_datadir/tinyllamas/stories260K.gguf -p "Hello" -s 42 -n 500 +llama-main -m %_datadir/tinyllamas/stories260K.gguf -p "Once upon a time" -s 55 -n 33 | + grep 'Once upon a time, there was a boy named Tom. Tom had a big box of colors.' %files %define _customdocdir %_docdir/%name