mtmd: improve struct initialization (#16981)

This commit is contained in:
Xuan-Son Nguyen
2025-11-05 11:26:37 +01:00
committed by GitHub
parent fd2f84f468
commit 2f0c2db43e
2 changed files with 19 additions and 17 deletions

View File

@@ -2761,6 +2761,7 @@ struct clip_model_loader {
{
// ref: https://huggingface.co/mistral-community/pixtral-12b/blob/main/preprocessor_config.json
// TODO: verify the image_min_tokens
hparams.n_merge = 1; // the original pixtral does not use patch merging
hparams.rope_theta = 10000.0f;
get_u32(KEY_SPATIAL_MERGE_SIZE, hparams.n_merge, false);
hparams.set_limit_image_tokens(8, 1024);