More output and remove endoftext. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit fd9d49e110ca32aa32c040d869161cb9b25ede2d DIR parent 25728ff0be3295e3b016a0963b03afccd27742ab HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Mon, 21 Aug 2023 15:51:03 +0200 More output and remove endoftext. Diffstat: M ggml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git a/ggml b/ggml @@ -3,9 +3,12 @@ ggmlbase="$HOME/scm/ggml" ggmlbin="./build/bin/gpt-2" ggmlmodel="models/gpt-2-1558M/ggml-model.bin" +ggmlntokens="400" cd $ggmlbase -$ggmlbin -m $ggmlmodel -p "$@" 2>/dev/null \ +$ggmlbin -m $ggmlmodel -n $ggmlntokens \ + -p "$1" 2>/dev/null \ | tail -n +19 \ - | head -n -6 + | head -n -6 \ + | sed 's,<|endoftext|>,,'