Repository navigation
fix(eval): route external-provider base_model_id via the gateway — never lane-spawn weights served elsewhere (#310) - #2127
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The live failure (2026-08-03)
cognition/eval --base_model_id=deepseek-v4-flash --detach=truetried 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_innerbranches on the registry row'sprovider: anything that isn't the localllama-serverroutes 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_ctxcomes 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.lanebecomesOptionto carry the nothing-to-spawn/nothing-to-kill case honestly; placement evidence reportsexternal:<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