aboutsummaryrefslogtreecommitdiff
path: root/ggml.h
diff options
context:
space:
mode:
authorStephan Walter <stephan@walter.name>2023-04-11 15:03:51 +0000
committerGitHub <noreply@github.com>2023-04-11 15:03:51 +0000
commit3e6e70d8e8917b5bd14c7c9f9b89a585f1ff0b31 (patch)
tree35dc380c6585d36941e155b9aae949e757af2b02 /ggml.h
parent2663d2c6784ad7b77998c6874df25648d597f74b (diff)
Add enum llama_ftype, sync ggml_type to model files (#709)
Diffstat (limited to 'ggml.h')
-rw-r--r--ggml.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ggml.h b/ggml.h
index a5245a8..7d8b7a1 100644
--- a/ggml.h
+++ b/ggml.h
@@ -198,13 +198,14 @@ struct ggml_object;
struct ggml_context;
enum ggml_type {
- GGML_TYPE_Q4_0,
- GGML_TYPE_Q4_1,
+ // explicitly numbered values are used in llama.cpp files
+ GGML_TYPE_F32 = 0,
+ GGML_TYPE_F16 = 1,
+ GGML_TYPE_Q4_0 = 2,
+ GGML_TYPE_Q4_1 = 3,
GGML_TYPE_I8,
GGML_TYPE_I16,
GGML_TYPE_I32,
- GGML_TYPE_F16,
- GGML_TYPE_F32,
GGML_TYPE_COUNT,
};