Skip to content

Bench qwen selfhost#25

Merged
swelljoe merged 2 commits into
mainfrom
bench-qwen-selfhost
May 30, 2026
Merged

Bench qwen selfhost#25
swelljoe merged 2 commits into
mainfrom
bench-qwen-selfhost

Conversation

@swelljoe
Copy link
Copy Markdown
Owner

Make Qwen work, add retry with backoff for models that fail for seeming infra reasons (rate limits, timeout, etc.).

Joe Cooper and others added 2 commits May 30, 2026 06:30
The matrix kept failing whole runs on the first transient fault: Mistral's
tokens-per-minute 429s (an agentic burst of large-context calls trips the rate
limit even on a paid tier — it's a rate, not a quota, so adding credits doesn't
help) and a self-hosted LM Studio endpoint closing the socket mid-response on a
heavy request. Both are recoverable; _post_chat just gave up.

_post_chat now retries 429/5xx and transport errors with exponential backoff
(1,2,4,8,16s, capped at 60s), honoring a Retry-After header when present. After
MAX_HTTP_RETRIES the last error still propagates, so a persistent outage is
recorded as a real auth/infra failure — never masked as "found nothing". sleep
is injectable for tests; non-retryable client errors (e.g. 400) are not retried.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rix Halo

A slow self-hosted endpoint (Qwen 3.6 27B on a Strix Halo APU) needs more than
the 600s/call default: one big-context reasoning turn over freerdp's 1821-line
planar.c exceeded it and failed the run as infra_error (a socket-read TimeoutError,
not a crash — the APU's extra memory fixed the OOM the desktop GPUs hit).

_http_timeout() now reads NELSON_HTTP_TIMEOUT (default 600); RawApiLoopRuntime
threads it from the competitor's cost_model "http_timeout". Qwen's competitor is
repointed from desktop LM Studio (qwen/qwen3.6-27b @ 192.168.122.1:1234) to the
Strix Halo llama-server (unsloth/Qwen3.6-27B-GGUF:UD-Q8_K_XL @ 10.20.30.2:8080)
with http_timeout 1800, its stable home after the desktop OOM-crashes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@swelljoe swelljoe merged commit 746f6c7 into main May 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant