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 <vt@altlinux.org>
This commit is contained in:
parent
643a495f3b
commit
6abfa1bde7
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue