Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Fix LLaVA regression for square images
M. Yusuf Sarıgözc373b5d128a3
diff --git a/llama.cpp/llava/clip.cpp b/llama.cpp/llava/clip.cppindex 741c91e6..d3b82bdb 100644--- a/llama.cpp/llava/clip.cpp+++ b/llama.cpp/llava/clip.cpp@@ -767,7 +767,7 @@ bool clip_image_preprocess(const clip_ctx * ctx, const clip_image_u8 * img, cliptemp->ny = img->ny;temp->size = img->size;temp->data = new uint8_t[temp->size]();- *temp->data = *img->data; // copy+ memcpy(&temp->data[0], &img->data[0], temp->size); // copy}const int nx = temp->nx;