diff options
author | Stephan Walter <stephan@walter.name> | 2023-04-11 15:03:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 15:03:51 +0000 |
commit | 3e6e70d8e8917b5bd14c7c9f9b89a585f1ff0b31 (patch) | |
tree | 35dc380c6585d36941e155b9aae949e757af2b02 /ggml.h | |
parent | 2663d2c6784ad7b77998c6874df25648d597f74b (diff) |
Add enum llama_ftype, sync ggml_type to model files (#709)
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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, }; |