Insert image pad markers for kimi K2.5 and K2.6 (#1912)

This commit is contained in:
Farmadupe 2026-06-04 08:27:28 +01:00 committed by GitHub
parent 3f40e73c36
commit e08ad51f15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,6 +307,11 @@ struct mtmd_context {
img_end = "<image|>";
//image_preproc = std::make_unique<mtmd_image_preprocessor_dyn_size>(ctx_v);
}
else if (proj == PROJECTOR_TYPE_KIMIK25) {
// template renders: <|media_begin|>image<|media_content|> <pad/embeddings> <|media_end|>
img_beg = "<|media_begin|>image<|media_content|>";
img_end = "<|media_end|>";
}
}
void init_audio() {