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

This commit removes GGML_ROPE_TYPE_NONE and GGML_ROPE_TYPE_GLM from
ggml.h, and back the llama_rope_type enum.

I've kept the assert for GGML_ROPE_TYPE_GLM as I'm not sure if it is
safe to remove it yet.
This commit is contained in:
Daniel Bevenius 2024-08-10 06:50:54 +02:00
parent 14b549c708
commit 5e14dbf2ea
Failed to extract signature
4 changed files with 18 additions and 13 deletions

View file

@ -439,10 +439,8 @@ extern "C" {
// Rotary Positional Embedding (RoPE) types
enum ggml_rope_type {
GGML_ROPE_TYPE_NONE = -1,
GGML_ROPE_TYPE_NORM = 0,
GGML_ROPE_TYPE_NEOX = 2,
GGML_ROPE_TYPE_GLM = 4,
};
// available tensor operations: