pixtral is working only on cpu, however the images are distorted

This commit is contained in:
Concedo 2025-04-24 17:59:47 +08:00
parent f1eb6c4e36
commit 2f645bb1b4
3 changed files with 15 additions and 0 deletions

View file

@ -3560,6 +3560,10 @@ bool clip_is_gemma3(const struct clip_ctx * ctx) {
return ctx->proj_type == PROJECTOR_TYPE_GEMMA3;
}
bool clip_is_pixtral(const struct clip_ctx * ctx) {
return ctx->proj_type == PROJECTOR_TYPE_PIXTRAL;
}
// Determine the number of encoder layers to iterate over
int get_deepest_feature_layer(const struct clip_ctx * ctx) {
// Get the index of the second to last layer; this is the