Skip to content

Serve VL models: pass --mmproj so a persona actually sees (#106) + grid-economics doc - #1955

Merged
joelteply merged 1 commit into
canaryfrom
feat/vision-serving-mmproj
Jul 18, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/vision-serving-mmproj

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

Vision serving (#106): the catalog already had qwen2-vl-7b / qwen2.5-omni-7b rows with mmproj_local_path and Model.mmproj_local_path exists — but the llama-server spawn never passed --mmproj, so a vision-capable model loaded blind (image content parts silently ignored).

  • model_registry::artifacts::resolve_mmproj_for_model — serving-time resolver mirroring resolve_gguf_for_model: expands ~ + verifies the projector file exists.
  • llama_server spawn: passes --mmproj <path> when resolvable (the model sees); on a Vision-capable row with no resolvable projector, warns loud (serving text-only) rather than fabricating sight ([[fallbacks-are-illegal-fail-loud]]). Safe on a generation lane — the projector adds the encoder, doesn't switch out of causal mode (unlike --embeddings).

This is the serving half of getting small personas perceiving (uploaded images, screenshots, video-chat frames). Live-serving is the acceptance test.

Doc: docs/architecture/GRID-ECONOMICS-AND-AFFINITY-ROUTING.md — the paged-genome demand-paging economics + affinity-routing spec (why cheap hardware + a friend group hosts "infinite experts": cost scales with the deduped hot working-set union, not users×model). Companion to INFERENCE-LANES-REALISTIC (#109) + MoE affinity paging (#180).

Validation

cargo test ... resolves_mmproj green; serving path compiles clean.

Refs #106, #187, #123. [[open-weight-aligned-paged-genome-beats-massive-experts]]

🤖 Generated with Claude Code

…EES (#106)

The catalog already has qwen2-vl-7b / qwen2.5-omni-7b rows with mmproj_local_path and
Model.mmproj_local_path exists — but the llama-server spawn NEVER passed --mmproj, so a
vision-capable model loaded blind (image content parts silently ignored). Close it:

- model_registry::artifacts::resolve_mmproj_for_model — serving-time resolver mirroring
  resolve_gguf_for_model: expands ~ + verifies the projector file exists on disk.
- llama_server spawn: pass --mmproj <path> when resolvable (the model SEES); on a
  Vision-capable row with NO resolvable projector, warn LOUD (serving TEXT-ONLY) instead
  of fabricating sight ([[fallbacks-are-illegal-fail-loud]]). Safe on a generation lane —
  the projector adds the encoder, doesn't switch out of causal mode (unlike --embeddings).

This is the serving half of getting small personas perceiving (uploaded images,
screenshots, video-chat frames): Qwen3-VL / Qwen2-VL + mmproj now loads its vision
encoder, so ContentPart::Image reaches the model. Live-serving is the acceptance test.

Also lands docs/architecture/GRID-ECONOMICS-AND-AFFINITY-ROUTING.md — the paged-genome
demand-paging economics + affinity-routing spec (why cheap hardware + a friend group
hosts 'infinite experts': cost scales with the deduped hot working-set union, not
users×model). Companion to INFERENCE-LANES-REALISTIC (#109) + MoE affinity paging (#180).

Refs #106, #187, #123. [[open-weight-aligned-paged-genome-beats-massive-experts]]

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit bfdef17 into canary Jul 18, 2026
3 of 4 checks passed
@joelteply
joelteply deleted the feat/vision-serving-mmproj branch July 18, 2026 21:35
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