x

Programs, configuration and documentation that don't fit anywhere else
Log | Files | Refs | README | LICENSE

commit ebe2df371c030ab01af2519635048f5db6192a70
parent 2eda27592fea22e42e26e3d88f1f27a3e4226169
Author: Oliver Lowe <o@olowe.co>
Date:   Sat, 12 Oct 2024 12:46:11 +1100

precis: correctly accept model arg

Diffstat:
Mbin/precis | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/bin/precis b/bin/precis @@ -13,18 +13,12 @@ echo '<|eot_id|>' >> $tmp echo -n '<|start_header_id|>assistant<|end_header_id|>' >> $tmp usage="usage: precis [model]" -if test $# -gt 1 -then - echo $usage - exit 2 -fi model=$HOME/llama-3.2-3b-instruct-q4_k_m.gguf -if test $1 != "" +if test $1 then model=$1 fi llama-cli -m --no-display-prompt -c 8192 -f $tmp 2>/dev/null - rm $tmp