commit ebe2df371c030ab01af2519635048f5db6192a70 from: Oliver Lowe date: Sat Oct 12 01:46:11 2024 UTC precis: correctly accept model arg commit - 2eda27592fea22e42e26e3d88f1f27a3e4226169 commit + ebe2df371c030ab01af2519635048f5db6192a70 blob - 022a353e8b610cf23c0d37bb21c70ade78e0ef9e blob + 3b99393fd0c2d9c7bd7e05a6c67c79a031526408 --- bin/precis +++ 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