mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 01:05:09 +02:00
fixed gemma4v image crashing on encode, however images are not yet working correctly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user