diff --git a/start-text-corrector.sh b/start-text-corrector.sh index ef8ed73..75385c9 100755 --- a/start-text-corrector.sh +++ b/start-text-corrector.sh @@ -18,5 +18,7 @@ if [ ! -s "${MODEL_PATH}" ]; then echo "[text-corrector] Download complete" fi -echo "[text-corrector] Starting llama-server with ${MODEL_PATH}" -exec /app/llama-server -m "${MODEL_PATH}" --host 0.0.0.0 --port 8080 -c 4096 -n 256 -t 8 --temp 0.1 \ No newline at end of file +AI_THREADS="${AI_THREADS:-$(nproc)}" + +echo "[text-corrector] Starting llama-server with ${MODEL_PATH} (threads: ${AI_THREADS})" +exec /app/llama-server -m "${MODEL_PATH}" --host 0.0.0.0 --port 8080 -c 4096 -n 2048 -t "${AI_THREADS}" -np 1 --temp 0.1 \ No newline at end of file