summaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index 8bfb9531..5025ec23 100644
--- a/ggml.c
+++ b/ggml.c
@@ -6392,6 +6392,16 @@ struct ggml_tensor * ggml_rope_custom_inplace(
);
}
+struct ggml_tensor * ggml_rope_xpos_inplace(
+ struct ggml_context * ctx,
+ struct ggml_tensor * a,
+ struct ggml_tensor * b,
+ int n_dims,
+ float base,
+ bool down) {
+ return ggml_rope_impl(ctx, a, b, NULL, n_dims, 0, 0, 0, 10000.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f, base, down, true);
+}
+
// ggml_rope_back
struct ggml_tensor * ggml_rope_back(