-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeeq
More file actions
14 lines (14 loc) · 820 Bytes
/
deeq
File metadata and controls
14 lines (14 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#Function deeq, dedicated to DeepSeek-R1-Distill-Qwen-14B-Q5_K_L model
#Usage: `deeq [-some llama-cli opts --more llamacli -- ] "Command-line Prompt"`
#deeq () {
(( ${+TPROMPTF} )) || source $ZDOTDIR/.zfunc/qlm.cfg
local posit=${argv[(Ie)--]}
if (( $posit )); then
local llamacli_opts=${argv:1:$posit-1}
shift $(( $posit ))
fi
local defopts=(-t 8 --temp 0 -fa --top-p 0.95 -mli --no-mmap --mlock --no-display-prompt --no-perf --no-warmup -c 4096 -ngl 99 -m $LLMDIR/DeepSeek-R1-Distill-Qwen-14B-Q5_K_L.gguf)
local userinput=${1:-$(cat $TPROMPTF 2>/dev/null || xsel -op)}
echo -e "${userinput}\n" > /dev/shm/redeeq
llam ${(z)defopts} -s $(date +%s) ${1:+-no-cnv} -p "<|User|>${userinput}<|Assistant|>" ${(z)llamacli_opts} 2>/dev/null | tee -a /dev/shm/redeeq
#}