Add llamacpp container
This commit is contained in:
19
Services/llamacpp-swap/Scripts/startCoderMini.sh
Executable file
19
Services/llamacpp-swap/Scripts/startCoderMini.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec /app/llama-server $CODER_MINI_MODEL \
|
||||
-c 4096 -n 256 \
|
||||
--temp 0.3 --top-p 0.9 --top-k 40 --repeat-penalty 1.05 \
|
||||
--flash-attn auto --threads -1 --threads-batch -1 --threads-http -1 \
|
||||
--timeout 600 --host 0.0.0.0 --port 8094 &
|
||||
PID=$!
|
||||
|
||||
cleanup() {
|
||||
echo "Stopping llama-server..."
|
||||
kill $PID 2>/dev/null
|
||||
wait $PID 2>/dev/null
|
||||
exit 0
|
||||
}
|
||||
|
||||
trap cleanup SIGTERM SIGINT
|
||||
|
||||
wait $PID
|
||||
Reference in New Issue
Block a user