Coach-Doku: ehrliche Warm-Zeiten (eine bis wenige Minuten, je nach CPU)

Gemessen auf der Staging-VM (~12 Prompt-Tokens/s): Review mit frischer Payload 222 s warm;
'etwa eine Minute' gilt erst auf moderner Hardware.
This commit is contained in:
Duarte Santos committed 2026-08-31 08:46:09 +02:00
1 parent 29dbdb71c6
commit 1cb4909901
3 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -150,7 +150,8 @@ RP_NAME=openGym
# COACH_JOB_TIMEOUT_MS gives a job longer than the default five minutes. Only a
# local model on a CPU needs it — and normally only for the first request after
# the model server restarts (the api pre-warms the rules cache after that; a
# warm review on a 3B model takes about a minute). A hosted API that needs
# warm review on a 3B model takes one to a few minutes, depending on the CPU).
# A hosted API that needs
# more has a problem. Never goes below one minute.
#
# COACH_JOB_TIMEOUT_MS=1500000
+3 -1
View File
@@ -259,7 +259,9 @@ is a bad way to find that out.
A job is given five minutes by default, which is generous for any hosted API. A model running
on a CPU behind the compatible endpoint can need more — with a warm cache a 3B model answers
in about a minute, but the first job after the model loads pays the full prompt once — so
in one to a few minutes depending on the CPU (an old 4-core box manages ~12 prompt tokens/s;
a modern one several times that), but the first job after the model loads pays the full
prompt once — so
`COACH_JOB_TIMEOUT_MS` in `.env` raises the budget (never below one minute); the api's own
HTTP client waits as long as the job, and the chat says "this can take a while" rather than
promising minutes when the endpoint is a local one. The phone's BYOK mode does the same on
+2 -1
View File
@@ -199,7 +199,8 @@ docker compose up -d</code></pre>
Honest sizing, from measuring exactly this on a small box:</p>
<ul>
<li>A <b>~3B model at Q4</b> (like <code>qwen2.5:3b</code>) fits a 4–6&nbsp;GB container and
answers a review in <b>about a minute</b> on a 4-core CPU once its cache is warm.</li>
answers a review in <b>one to a few minutes</b> once its cache is warm — a modern 4-core
CPU sits at the fast end, an old low-power box at the slow one.</li>
<li>A <b>4B model needs ~6&nbsp;GB+</b> for its container. Squeezed into less, it doesn't
fail — it thrashes, generating at ~1 token/second. Smaller and comfortable beats bigger
and swapping.</li>