]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : move c parameter comment to ggml_rope_ext (ggml/901)
authorDaniel Bevenius <redacted>
Mon, 29 Jul 2024 13:06:06 +0000 (15:06 +0200)
committerGeorgi Gerganov <redacted>
Mon, 5 Aug 2024 05:50:57 +0000 (08:50 +0300)
This commit moves the comment for the c parameter from ggml_rope to
ggml_rope_ext. The comment is currently incorrect as ggml_rope does not
have a c parameter (freq_factors tensor).

Signed-off-by: Daniel Bevenius <redacted>
ggml/include/ggml.h

index d8d3dceef8cac4fa6106249f1a293e820b03c36d..a9e88e592d51c8b89a6be84855c9de751566ff9f 100644 (file)
@@ -1456,7 +1456,6 @@ extern "C" {
     // if mode & 2 == 1, GPT-NeoX style
     //
     // b is an int32 vector with size a->ne[2], it contains the positions
-    // c is freq factors (e.g. phi3-128k), (optional)
     GGML_API struct ggml_tensor * ggml_rope(
             struct ggml_context * ctx,
             struct ggml_tensor  * a,
@@ -1473,6 +1472,7 @@ extern "C" {
             int                   mode);
 
     // custom RoPE
+    // c is freq factors (e.g. phi3-128k), (optional)
     GGML_API struct ggml_tensor * ggml_rope_ext(
             struct ggml_context * ctx,
             struct ggml_tensor  * a,