summaryrefslogtreecommitdiff
path: root/ggml.h
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-04-20 23:32:59 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-04-20 23:32:59 +0300
commit12b5900dbc9743dee3ce83513cf5c3a44523a1b6 (patch)
treeae9f5b7ed722ea0c52bd434eb56373011c59d402 /ggml.h
parent9ff334f3c9b960a44c5e149b08c748a2914fb882 (diff)
ggml : sync ggml (add GPT-NeoX RoPE implementation)
Diffstat (limited to 'ggml.h')
-rw-r--r--ggml.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ggml.h b/ggml.h
index a8a7b6b4..460d4ffe 100644
--- a/ggml.h
+++ b/ggml.h
@@ -630,7 +630,8 @@ struct ggml_tensor * ggml_soft_max(
// rotary position embedding
// in-place, returns view(a)
-// if mode == 1, skip n_past elements
+// if mode & 1 == 1, skip n_past elements
+// if mode & 2 == 1, GPT-NeoX style
// TODO: avoid creating a new tensor every time
struct ggml_tensor * ggml_rope(
struct ggml_context * ctx,