Skip to content

fix(models): an mmproj companion is never THE model (#106 spawn failure) - #2102

Merged
joelteply merged 1 commit into
canaryfrom
fix/106-mmproj-never-the-main-model
Aug 2, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/106-mmproj-never-the-main-model

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The failure

This morning's first VL pin killed serving: the GGUF resolver picked the mmproj projector as the main model (-m mmproj-….gguf → "unsupported model architecture: 'clip'" → spawn exit 1, serving down until unpin). Cause: pick_best_candidate sorts by newest mtime, and the projector downloaded seconds after the main weights.

Fix

is_main_model_gguf — one predicate (GGUF, filename not containing mmproj) at all three main-model collectors; find_mmproj_beside stays the projector-positive scan.

Testing

New regression recreating the live download ordering (projector newer): model wins candidacy, projector still resolves for --mmproj, projector-only dir → no main model. artifacts filter 8/8 green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ors from main-GGUF candidacy (#106)

First VL pin this morning took serving fully down: llama-server died
with "unsupported model architecture: 'clip'" because the resolver
passed the PROJECTOR to -m. Root cause: pulling Qwen2.5-VL wrote the
mmproj AFTER the main weights, and pick_best_candidate sorts by
newest mtime — so the sidecar out-mtimed the model and won candidacy.
Manual bring-up with the correct pairing served fine (glass box beat
the first guess; the lane log had the truth).

Fix: ONE predicate, is_main_model_gguf (a GGUF whose filename doesn't
contain 'mmproj'), applied at all three main-model collectors
(find_ggufs_under_snapshots, collect_ggufs_recursive,
first_gguf_in_dir). find_mmproj_beside remains the mmproj-POSITIVE
scan. Regression test recreates the exact live ordering (mmproj
written second, newer mtime) and pins: model wins, projector still
discoverable, a projector-only dir resolves no main model.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit eb8b05d into canary Aug 2, 2026
4 checks passed
@joelteply
joelteply deleted the fix/106-mmproj-never-the-main-model branch August 2, 2026 10:21
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