Skip to content

fix(eval): route external-provider base_model_id via the gateway — never lane-spawn weights served elsewhere (#310) - #2127

Merged
joelteply merged 1 commit into
canaryfrom
fix/310-eval-external-provider
Aug 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/310-eval-external-provider

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The live failure (2026-08-03)

cognition/eval --base_model_id=deepseek-v4-flash --detach=true tried to stand up an ~81GB ephemeral llama-server lane for a model the ds4 sidecar was already answering on :8901. The memory veto then rightly refused, and the bounded 180s pressure-defer failed loud into the progress ledger — but the lane should never have been asked for: the weights live in someone else's process.

Fix

  • build_base_eval_lane_inner branches on the registry row's provider: anything that isn't the local llama-server routes through an adapter built from the provider row — no spawn, no VRAM lease, no memory-headroom gate (it prices a cold-load this path never pays).
  • served_ctx comes from the provider's live /v1/models context_length (the ds4 sidecar serves 8192 while the catalog row states the model's 1M capability — budgeting the fork against the row would overflow the real server), falling back to the row when unreported. Parsing is split pure (parse_provider_context_length) and pinned by a unit test.
  • EvalLaneInner.lane becomes Option to carry the nothing-to-spawn/nothing-to-kill case honestly; placement evidence reports external:<provider> with an explicit reason.

Unblocks Joel's standing ask: benchmarking V4-Flash quality + tok/s through the real cognition loop against the Devstral/Kimi measured rows.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…adapter — never lane-spawn weights served elsewhere (#310)

Live failure 2026-08-03: cognition/eval --base_model_id=deepseek-v4-flash tried to
stand up an ~81GB ephemeral llama-server lane for a model the ds4 sidecar was
already answering on :8901; the memory veto then rightly refused (and the bounded
180s defer failed loud) — but the lane should never have been asked for.

build_base_eval_lane_inner now branches on the registry row's provider: anything
that isn't the local llama-server routes through an adapter built from the
provider row (no spawn, no VRAM lease, no headroom gate — it prices a cold-load
this path never pays). served_ctx comes from the provider's live /v1/models
context_length (the ds4 sidecar serves 8192 while the row states the 1M
capability), falling back to the row. EvalLaneInner.lane becomes Option to carry
the nothing-to-kill case honestly.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 34e243d into canary Aug 3, 2026
5 checks passed
@joelteply
joelteply deleted the fix/310-eval-external-provider branch August 3, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant