Skip to content

Commit 601a033

Browse files
committed
ggml : add GGML_QNT_VERSION to track quantization format changes
ggml-org/ggml#150 (comment)
1 parent 08737ef commit 601a033

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@
190190
#define GGML_FILE_MAGIC 0x67676d6c // "ggml"
191191
#define GGML_FILE_VERSION 1
192192

193+
#define GGML_QNT_VERSION 1 // bump this on quantization format changes
194+
#define GGML_QNT_VERSION_FACTOR 1000 // do not change this
195+
193196
#define GGML_MAX_DIMS 4
194197
#define GGML_MAX_NODES 4096
195198
#define GGML_MAX_PARAMS 256

0 commit comments

Comments
 (0)