model, mtmd: fix gemma4 vision handling - #28335
Conversation
|
/bot review |
Automated code reviewReview of PR #28335 (model, mtmd: fix gemma4 vision handling)I reviewed the diff plus surrounding code ( Blocking / important(point 1) Image chunks larger than Will slow the review(point 2) Hardcoded hidden sizes in (point 3) Token budget values need a reference. The removed comment at clip.cpp:1636-1637 documented why the old minimum of 40 existed (poor quality with small images). The new (70, 1120) pair has no provenance. Please confirm 70/1120 match the reference image processor config for gemma4, and state in the PR or a one-line comment where they come from - also noting that this case block is shared by both Nits(point 4) The stale (point 5) The comment "only the SWA cache (or the SWA layers of a single cache) become non-causal" (llama-kv-cache.cpp:1757-1758) overstates what the code does: for a single cache with (point 6) Everything else in the diff looks correct: the This review was generated automatically by pi coding agent using |
Overview
Fix #28318
Recap which model has what:
use_bidirectional_attentionhidden_size)null→ causalnull→ causal"vision"→ bidirectional"vision"→ bidirectional"vision"→ bidirectionalnullbackbone_hidden_size5376nullbackbone_hidden_size= target's dimRequirements