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