We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d2d8f commit 8d0195fCopy full SHA for 8d0195f
examples/llava/clip.cpp
@@ -3001,7 +3001,7 @@ int get_deepest_feature_layer(const struct clip_ctx * ctx) {
3001
}
3002
3003
// If we set explicit vision feature layers, only go up to the deepest one
3004
- for (int i = 0; i < 4; i++) {
+ for (int i = 0; i < MAX_IMAGE_FEATURE_LAYERS; i++) {
3005
if (ctx->vision_model.hparams.vision_feature_layer[i] > deepest_feature_layer) {
3006
deepest_feature_layer = ctx->vision_model.hparams.vision_feature_layer[i];
3007
0 commit comments