mtmd: add --image-min/max-tokens (#16921)

This commit is contained in:
Xuan-Son Nguyen 2025-11-03 11:11:18 +01:00 committed by GitHub
parent bf7b0c9725
commit 070ff4d535
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 79 additions and 22 deletions

View file

@ -406,6 +406,8 @@ struct common_params {
bool mmproj_use_gpu = true; // use GPU for multimodal model
bool no_mmproj = false; // explicitly disable multimodal model
std::vector<std::string> image; // path to image file(s)
int image_min_tokens = -1;
int image_max_tokens = -1;
// finetune
struct lr_opt lr;