diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2023-07-21 14:51:34 +0300 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-07-21 14:51:34 +0300 |
commit | 513f8619535a64fa9ace808cdcbcf66211535f5c (patch) | |
tree | 2735871213e737a2183f85265add5c4120e190dc /ggml.h | |
parent | 3973b25a64a37a47eac156a3fd28f83c16f14bf2 (diff) |
ggml : fix rope args order + assert (#2054)
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1128,9 +1128,9 @@ extern "C" { int n_past, int n_dims, int mode, + int n_ctx, float freq_base, - float freq_scale, - int n_ctx); + float freq_scale); // rotary position embedding backward, i.e compute dx from dy // a - dy @@ -1139,7 +1139,8 @@ extern "C" { struct ggml_tensor * a, int n_past, int n_dims, - int mode); + int mode, + int n_ctx); // alibi position embedding // in-place, returns view(a) |