gemma4uv alloc fix

This commit is contained in:
Concedo
2026-06-05 00:15:59 +08:00
parent af3bcde675
commit f997d23660
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -5145,8 +5145,8 @@ 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_is_gemma4v(const struct clip_ctx * ctx) { //for kcpp use
return (ctx->proj_type() == PROJECTOR_TYPE_GEMMA4V || ctx->proj_type() == PROJECTOR_TYPE_GEMMA4UV);
}
bool clip_has_vision_encoder(const struct clip_ctx * ctx) {