MLX: report ready only once the model answers; quieter logs
mlx_lm.server's /health is OK as soon as its thread starts, so the dashboard showed Ready while the model was still downloading. The proxy now sends a 1-token probe and answers /health with 503 until it succeeds. Also drop health-check, dashboard-poll and per-file HF request lines from the MLX log while keeping download progress bars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QaE1hpvyZTJixEbUUMj9Ca
This commit is contained in:
parent
16f096714e
commit
85912dd3b2
2 changed files with 60 additions and 2 deletions
|
|
@ -19,7 +19,8 @@ HERE = Path(__file__).resolve().parent
|
|||
SAMPLE_SECONDS = 2
|
||||
HISTORY_POINTS = 300 # 10 minutes
|
||||
# The sampler's own polling shows up in vLLM's access log every 2s; hide it from the log view.
|
||||
OWN_POLL_RE = re.compile(r'127\.0\.0\.1:\d+ - "GET /(health|metrics|v1/models|llmhost/metrics) ')
|
||||
OWN_POLL_RE = re.compile(r'127\.0\.0\.1(:\d+)? - (- \[[^]]*\] )?"GET /(health|metrics|v1/models|llmhost/metrics) '
|
||||
r'|- INFO - HTTP Request: ')
|
||||
PROGRESS_RE = re.compile(r"\d+(\.\d+)?(it/s|s/it)\]")
|
||||
METRIC_RE = re.compile(r"^(vllm:[a-z_]+)(\{[^}]*\})?\s+([0-9.eE+-]+|NaN)$")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue