]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : add GGML_QNT_VERSION to track quantization format changes
authorGeorgi Gerganov <redacted>
Sun, 14 May 2023 07:20:19 +0000 (10:20 +0300)
committerGeorgi Gerganov <redacted>
Sun, 14 May 2023 07:20:19 +0000 (10:20 +0300)
https://github.com/ggerganov/ggml/issues/150#issuecomment-1546625668

ggml.h

diff --git a/ggml.h b/ggml.h
index 967ef72d034dd45b223f5c3641fb888efe42c091..3b045ad4f1106c528ff71aa2a421d68b52bd5adc 100644 (file)
--- a/ggml.h
+++ b/ggml.h
 #define GGML_FILE_MAGIC   0x67676d6c // "ggml"
 #define GGML_FILE_VERSION 1
 
+#define GGML_QNT_VERSION        1    // bump this on quantization format changes
+#define GGML_QNT_VERSION_FACTOR 1000 // do not change this
+
 #define GGML_MAX_DIMS          4
 #define GGML_MAX_NODES         4096
 #define GGML_MAX_PARAMS        256