spec: Update 'convert' tool
Old tool is deprecated and moved to `examples/convert-legacy-llama.py`. Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
parent
56f53cb0be
commit
5dfe77e649
1 changed files with 3 additions and 3 deletions
|
|
@ -86,10 +86,9 @@ grep ^LLAMA %_cmake__builddir/CMakeCache.txt | sort | tee build-options.txt
|
|||
find -name '*.py' | xargs sed -i '1s|#!/usr/bin/env python3|#!%__python3|'
|
||||
|
||||
%install
|
||||
# Main format converter.
|
||||
install -Dp convert.py %buildroot%_bindir/llama-convert
|
||||
# Additional and experimental converters.
|
||||
# Format converters.
|
||||
install -Dp convert-*.py -t %buildroot%_bindir
|
||||
ln -s convert-hf-to-gguf.py %buildroot%_bindir/llama-convert
|
||||
# Python requirements file.
|
||||
install -Dpm644 requirements.txt -t %buildroot%_datadir/%name
|
||||
# Additional data.
|
||||
|
|
@ -97,6 +96,7 @@ cp -rp prompts -t %buildroot%_datadir/%name
|
|||
cp -rp grammars -t %buildroot%_datadir/%name
|
||||
# Not all examples.
|
||||
install -Dp examples/*.sh -t %buildroot%_datadir/%name/examples
|
||||
install -Dp examples/*.py -t %buildroot%_datadir/%name/examples
|
||||
# Install and rename binaries to have llama- prefix.
|
||||
cd %_cmake__builddir/bin
|
||||
find -maxdepth 1 -type f -executable -not -name 'test-*' -printf '%%f\0' |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue