fix(text-corrector): size threads to available CPUs, keep full context and allow long corrections

This commit is contained in:
dev
2026-10-22 11:57:15 +03:00
parent 9936b68e80
commit 0ecbca5f13
+4 -2
View File
@@ -18,5 +18,7 @@ if [ ! -s "${MODEL_PATH}" ]; then
echo "[text-corrector] Download complete" echo "[text-corrector] Download complete"
fi fi
echo "[text-corrector] Starting llama-server with ${MODEL_PATH}" AI_THREADS="${AI_THREADS:-$(nproc)}"
exec /app/llama-server -m "${MODEL_PATH}" --host 0.0.0.0 --port 8080 -c 4096 -n 256 -t 8 --temp 0.1
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