Repository navigation
fix(models): an mmproj companion is never THE model (#106 spawn failure) - #2102
Merged
Merged
Conversation
…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
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 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_candidatesorts by newest mtime, and the projector downloaded seconds after the main weights.Fix
is_main_model_gguf— one predicate (GGUF, filename not containingmmproj) at all three main-model collectors;find_mmproj_besidestays 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.artifactsfilter 8/8 green.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo