fixed gemma4v image crashing on encode, however images are not yet working correctly

This commit is contained in:
Concedo
2026-04-03 15:56:35 +08:00
parent 17678748ac
commit e8cffa37c8
4 changed files with 21 additions and 1 deletions
+4
View File
@@ -4041,6 +4041,10 @@ bool clip_is_llava(const struct clip_ctx * ctx) {
return ctx->model.hparams.has_llava_projector;
}
bool clip_is_gemma4(const struct clip_ctx * ctx) { //for kcpp use
return ctx->proj_type() == PROJECTOR_TYPE_GEMMA4V;
}
bool clip_has_vision_encoder(const struct clip_ctx * ctx) {
return ctx->model.modality == CLIP_MODALITY_VISION;
}