From 080b600865f8852095493e49edd8f97f9e23c8d0 Mon Sep 17 00:00:00 2001 From: jmorganca Date: Wed, 12 Jun 2024 11:40:13 -0700 Subject: [PATCH] add header to not edit --- llama/build-info.cpp | 2 +- llama/clip.cpp | 2 +- llama/clip.h | 2 +- llama/common.cpp | 2 +- llama/common.h | 2 +- llama/ggml-alloc.c | 2 +- llama/ggml-alloc.h | 2 +- llama/ggml-backend-impl.h | 2 +- llama/ggml-backend.c | 2 +- llama/ggml-backend.h | 2 +- llama/ggml-common.h | 2 +- llama/ggml-cuda.cu | 2 +- llama/ggml-cuda.h | 2 +- llama/ggml-impl.h | 2 +- llama/ggml-metal-darwin_arm64.m | 6 +++--- llama/ggml-metal.h | 3 ++- llama/ggml-metal.metal | 2 +- llama/ggml-quants.c | 2 +- llama/ggml-quants.h | 2 +- llama/ggml.c | 2 +- llama/ggml.h | 2 +- llama/grammar-parser.cpp | 2 +- llama/grammar-parser.h | 2 +- llama/json-schema-to-grammar.cpp | 2 +- llama/json-schema-to-grammar.h | 2 +- llama/llama.cpp | 2 +- llama/llama.h | 2 +- llama/llava.cpp | 2 +- llama/llava.h | 2 +- llama/log.h | 2 +- llama/sampling.cpp | 2 +- llama/sampling.h | 2 +- llama/stb_image.h | 2 +- llama/sync_llama.sh | 2 +- llama/unicode-data.cpp | 2 +- llama/unicode-data.h | 2 +- llama/unicode.cpp | 2 +- llama/unicode.h | 2 +- 38 files changed, 41 insertions(+), 40 deletions(-) diff --git a/llama/build-info.cpp b/llama/build-info.cpp index 6542f61e1..f890ee9cf 100644 --- a/llama/build-info.cpp +++ b/llama/build-info.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/clip.cpp b/llama/clip.cpp index 973bbcdbc..36d1b3b3e 100644 --- a/llama/clip.cpp +++ b/llama/clip.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/clip.h b/llama/clip.h index 4251574b3..ae2ab6ba3 100644 --- a/llama/clip.h +++ b/llama/clip.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/common.cpp b/llama/common.cpp index cbde5ba3a..6596c10de 100644 --- a/llama/common.cpp +++ b/llama/common.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/common.h b/llama/common.h index ff2c8b13f..583451f22 100644 --- a/llama/common.h +++ b/llama/common.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-alloc.c b/llama/ggml-alloc.c index c719bfe80..a422c052a 100644 --- a/llama/ggml-alloc.c +++ b/llama/ggml-alloc.c @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-alloc.h b/llama/ggml-alloc.h index 2b5b24502..cc0a1a1c3 100644 --- a/llama/ggml-alloc.h +++ b/llama/ggml-alloc.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-backend-impl.h b/llama/ggml-backend-impl.h index 2032f60e8..14babea19 100644 --- a/llama/ggml-backend-impl.h +++ b/llama/ggml-backend-impl.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-backend.c b/llama/ggml-backend.c index f5881ee13..cf698a96f 100644 --- a/llama/ggml-backend.c +++ b/llama/ggml-backend.c @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-backend.h b/llama/ggml-backend.h index a9c69c8e2..850690452 100644 --- a/llama/ggml-backend.h +++ b/llama/ggml-backend.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-common.h b/llama/ggml-common.h index 6051d50b3..a8520fd24 100644 --- a/llama/ggml-common.h +++ b/llama/ggml-common.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-cuda.cu b/llama/ggml-cuda.cu index fa0f4d2be..0c602c31d 100644 --- a/llama/ggml-cuda.cu +++ b/llama/ggml-cuda.cu @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-cuda.h b/llama/ggml-cuda.h index 2be90aaeb..f71a99331 100644 --- a/llama/ggml-cuda.h +++ b/llama/ggml-cuda.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-impl.h b/llama/ggml-impl.h index 2e608bbe1..721c3c284 100644 --- a/llama/ggml-impl.h +++ b/llama/ggml-impl.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-metal-darwin_arm64.m b/llama/ggml-metal-darwin_arm64.m index 50e347f1e..b56c36044 100644 --- a/llama/ggml-metal-darwin_arm64.m +++ b/llama/ggml-metal-darwin_arm64.m @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * @@ -377,8 +377,8 @@ static struct ggml_metal_context * ggml_metal_init(int n_cb) { #if GGML_METAL_EMBED_LIBRARY GGML_METAL_LOG_INFO("%s: using embedded metal library\n", __func__); - extern const char* ggml_metallib_start; - extern const char* ggml_metallib_end; + extern const char ggml_metallib_start[]; + extern const char ggml_metallib_end[]; NSString * src = [[NSString alloc] initWithBytes:ggml_metallib_start length:(ggml_metallib_end-ggml_metallib_start) encoding:NSUTF8StringEncoding]; #else diff --git a/llama/ggml-metal.h b/llama/ggml-metal.h index 7dce757e8..b6c88a2ae 100644 --- a/llama/ggml-metal.h +++ b/llama/ggml-metal.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * @@ -89,3 +89,4 @@ GGML_API void ggml_backend_metal_capture_next_compute(ggml_backend_t backend); #ifdef __cplusplus } #endif + diff --git a/llama/ggml-metal.metal b/llama/ggml-metal.metal index f266f2dd0..5ee578c48 100644 --- a/llama/ggml-metal.metal +++ b/llama/ggml-metal.metal @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-quants.c b/llama/ggml-quants.c index 904cb0d10..796b2a32a 100644 --- a/llama/ggml-quants.c +++ b/llama/ggml-quants.c @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml-quants.h b/llama/ggml-quants.h index c363c12a2..99b67dca2 100644 --- a/llama/ggml-quants.h +++ b/llama/ggml-quants.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml.c b/llama/ggml.c index 214f5dba0..7fadd6e2e 100644 --- a/llama/ggml.c +++ b/llama/ggml.c @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/ggml.h b/llama/ggml.h index d8a701a43..b7a073fd6 100644 --- a/llama/ggml.h +++ b/llama/ggml.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/grammar-parser.cpp b/llama/grammar-parser.cpp index 6267c2d99..6ebc78e95 100644 --- a/llama/grammar-parser.cpp +++ b/llama/grammar-parser.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/grammar-parser.h b/llama/grammar-parser.h index 3deb0ee77..5c16f71c6 100644 --- a/llama/grammar-parser.h +++ b/llama/grammar-parser.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/json-schema-to-grammar.cpp b/llama/json-schema-to-grammar.cpp index 45785a3c1..45fcd14b5 100644 --- a/llama/json-schema-to-grammar.cpp +++ b/llama/json-schema-to-grammar.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/json-schema-to-grammar.h b/llama/json-schema-to-grammar.h index b8158a318..5544b894a 100644 --- a/llama/json-schema-to-grammar.h +++ b/llama/json-schema-to-grammar.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/llama.cpp b/llama/llama.cpp index 230842895..fc77dd99f 100644 --- a/llama/llama.cpp +++ b/llama/llama.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/llama.h b/llama/llama.h index 5b669fe76..908a57abf 100644 --- a/llama/llama.h +++ b/llama/llama.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/llava.cpp b/llama/llava.cpp index 1f30bab98..6fd9cba22 100644 --- a/llama/llava.cpp +++ b/llama/llava.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/llava.h b/llama/llava.h index e7bec2122..3214c0e0a 100644 --- a/llama/llava.h +++ b/llama/llava.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/log.h b/llama/log.h index d376d29d2..434519b7b 100644 --- a/llama/log.h +++ b/llama/log.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/sampling.cpp b/llama/sampling.cpp index 782e5ae70..89fe9876f 100644 --- a/llama/sampling.cpp +++ b/llama/sampling.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/sampling.h b/llama/sampling.h index c44d2dd7f..6fd4dc959 100644 --- a/llama/sampling.h +++ b/llama/sampling.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/stb_image.h b/llama/stb_image.h index ba378885c..b007891ff 100644 --- a/llama/stb_image.h +++ b/llama/stb_image.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/sync_llama.sh b/llama/sync_llama.sh index 5e3c5d278..5c11491ce 100755 --- a/llama/sync_llama.sh +++ b/llama/sync_llama.sh @@ -28,7 +28,7 @@ cp $src_dir/ggml.c $dst_dir/ggml.c cp $src_dir/ggml.h $dst_dir/ggml.h cp $src_dir/ggml-quants.c $dst_dir/ggml-quants.c cp $src_dir/ggml-quants.h $dst_dir/ggml-quants.h -cp $src_dir/ggml-metal.metal $dst_dir/ggml-metal.in.metal +cp $src_dir/ggml-metal.metal $dst_dir/ggml-metal.metal cp $src_dir/ggml-metal.h $dst_dir/ggml-metal.h cp $src_dir/ggml-metal.m $dst_dir/ggml-metal-darwin_arm64.m cp $src_dir/ggml-impl.h $dst_dir/ggml-impl.h diff --git a/llama/unicode-data.cpp b/llama/unicode-data.cpp index 3988a5b6f..102c362df 100644 --- a/llama/unicode-data.cpp +++ b/llama/unicode-data.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/unicode-data.h b/llama/unicode-data.h index 9382594a0..a123af3a0 100644 --- a/llama/unicode-data.h +++ b/llama/unicode-data.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/unicode.cpp b/llama/unicode.cpp index 2655c07b5..72453d00c 100644 --- a/llama/unicode.cpp +++ b/llama/unicode.cpp @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License * diff --git a/llama/unicode.h b/llama/unicode.h index f937ce35d..8cb52e944 100644 --- a/llama/unicode.h +++ b/llama/unicode.h @@ -1,5 +1,5 @@ /** - * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe + * llama.cpp - git ee459f40f65810a810151b24eba5b8bd174ceffe - do not edit this file * * MIT License *