fix(text-corrector): size threads to available CPUs, keep full context and allow long corrections
This commit is contained in:
@@ -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
|
||||
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
|
||||
Reference in New Issue
Block a user