mtmd: improve struct initialization (#16981)
This commit is contained in:
parent
fd2f84f468
commit
2f0c2db43e
2 changed files with 19 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue