You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mtmd/qwen3vl): treat image_max_tiles=0 as unset, not an override
Zero-initialized clip_context_params/mtmd_context_params pass 0, which
was clamped to 1 and silently forced single-tile preprocessing. Only a
positive value now overrides the GGUF/model default.
Copy file name to clipboardExpand all lines: tools/mtmd/clip.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ struct clip_context_params {
59
59
void * cb_eval_user_data;
60
60
constchar * backend_device; // optional, if null will use env var or default GPU backend
61
61
int image_tile_mode; // 0=batched, 1=sequential (default), 2=disabled. NOTE: 0 (batched) is the zero value but NOT the default — init via mtmd_context_params_default() or set explicitly.
62
-
int image_max_tiles; // override preproc_max_tiles; -1 = use GGUF/model default
62
+
int image_max_tiles; // override preproc_max_tiles; -1 or 0 = use GGUF/model default (only a positive value overrides)
0 commit comments