mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-09 12:03:15 +00:00
chore(deps): bump llama.cpp to '1d36b3670b285e69e58b9d687c770a2a0a192194' Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
13 lines
695 B
Diff
13 lines
695 B
Diff
diff --git a/tools/llava/clip.cpp b/tools/llava/clip.cpp
|
|
index 3cd0d2fa..6c5e811a 100644
|
|
--- a/tools/llava/clip.cpp
|
|
+++ b/tools/llava/clip.cpp
|
|
@@ -2608,7 +2608,7 @@ bool clip_image_batch_encode(clip_ctx * ctx, const int n_threads, const clip_ima
|
|
struct ggml_tensor * patches = ggml_graph_get_tensor(gf, "patches");
|
|
int* patches_data = (int*)malloc(ggml_nbytes(patches));
|
|
for (int i = 0; i < num_patches; i++) {
|
|
- patches_data[i] = i + 1;
|
|
+ patches_data[i] = i;
|
|
}
|
|
ggml_backend_tensor_set(patches, patches_data, 0, ggml_nbytes(patches));
|
|
free(patches_data);
|