ggml : restore ggml_rope_xpos_inplace (ggml/0)

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-05-26 18:35:23 +03:00
parent 0e8d8bfd6c
commit 72de268bec
No known key found for this signature in database
GPG key ID: BF970631944C16B7
2 changed files with 18 additions and 0 deletions

10
ggml.c
View file

@ -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(