zziang commited on
Commit
f99e8ec
·
verified ·
1 Parent(s): 87b0993

Upload quantize.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. quantize.json +17 -0
quantize.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "flip-int4",
3
+ "bits": 4,
4
+ "block_size": 32,
5
+ "axis": "K",
6
+ "symmetric": true,
7
+ "zero_point": 8,
8
+ "scale_dtype": "float16",
9
+ "nibble_order": "even k in the low nibble, odd k in the high nibble",
10
+ "quantized_modules": "nn.Linear only",
11
+ "kept_fp16": "norms, biases, embeddings, adaLN",
12
+ "tensor_naming": {
13
+ "weight": "<module>.weight dtype U8 shape [n, k/2]",
14
+ "scale": "<module>.weight_scale dtype F16 shape [n, k/32]"
15
+ },
16
+ "dequantize": "(code - 8) * scale, code = low nibble for even k, high nibble for odd k"
17
+ }