diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index e2ba301bd..3f8baade0 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -584,7 +584,7 @@ static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32 embeddings = ggml_mul_mat(ctx0, model.mm_2_w, embeddings); embeddings = ggml_add(ctx0, embeddings, model.mm_2_b); - + } else if (ctx->proj_type == PROJECTOR_TYPE_MLP_NORM) { embeddings = ggml_mul_mat(ctx0, model.mm_0_w, embeddings); embeddings = ggml_add(ctx0, embeddings, model.mm_0_b); @@ -1516,4 +1516,4 @@ int clip_n_patches(const struct clip_ctx * ctx) { size_t clip_embd_nbytes(const struct clip_ctx * ctx) { return clip_n_patches(ctx) * clip_n_mmproj_embd(ctx) * sizeof(float); -} \ No newline at end of file +} diff --git a/examples/llava/llava-cli.cpp b/examples/llava/llava-cli.cpp index 8012d3f59..149fbb230 100644 --- a/examples/llava/llava-cli.cpp +++ b/examples/llava/llava-cli.cpp @@ -276,7 +276,7 @@ int main(int argc, char ** argv) { if (ctx_llava == NULL) { fprintf(stderr, "%s: error: failed to init llava\n", __func__); return 1; - } + } auto image_embed = load_image(ctx_llava, ¶ms); if (!image_embed) {