summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-05-14 10:20:19 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-05-14 10:20:19 +0300
commit601a033475645370483973817d987928ea95f36c (patch)
treeec34ef14f630b5e626157881fcce5c96e32db29f
parent08737ef720f0510c7ec2aa84d7f70c691073c35d (diff)
ggml : add GGML_QNT_VERSION to track quantization format changes
https://github.com/ggerganov/ggml/issues/150#issuecomment-1546625668
-rw-r--r--ggml.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ggml.h b/ggml.h
index 967ef72d..3b045ad4 100644
--- a/ggml.h
+++ b/ggml.h
@@ -190,6 +190,9 @@
#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