squash! ggml : move rope type enum to ggml.h

This commit removes the enum ggml_rope_type from ggml.h and replaces it
with a define (GGML_ROPE_TYPE_NEOX). This define is used in the code to
check if the mode is set to GPT-NeoX. Also the enum llama_rope_type has
been updated to reflect this change.
This commit is contained in:
Daniel Bevenius 2024-08-11 06:58:14 +02:00
parent 5e14dbf2ea
commit c9206f63be
Failed to extract signature
9 changed files with 11 additions and 15 deletions

View file

@ -97,7 +97,7 @@ extern "C" {
enum llama_rope_type {
LLAMA_ROPE_TYPE_NONE = -1,
LLAMA_ROPE_TYPE_NORM = GGML_ROPE_TYPE_NORM,
LLAMA_ROPE_TYPE_NORM = 0,
LLAMA_ROPE_TYPE_NEOX = GGML_ROPE_TYPE_NEOX,
};