diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-04-20 23:32:59 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-04-20 23:32:59 +0300 |
commit | 12b5900dbc9743dee3ce83513cf5c3a44523a1b6 (patch) | |
tree | ae9f5b7ed722ea0c52bd434eb56373011c59d402 /ggml.h | |
parent | 9ff334f3c9b960a44c5e149b08c748a2914fb882 (diff) |
ggml : sync ggml (add GPT-NeoX RoPE implementation)
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |