mwitiderrick commited on
Commit
7bcf2bb
1 Parent(s): 1f82687

Create recipe.yaml

Browse files
Files changed (1) hide show
  1. recipe.yaml +38 -0
recipe.yaml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ test_stage:
2
+ obcq_modifiers:
3
+ SmoothQuantModifier:
4
+ smoothing_strength: 0.8
5
+ mappings: [
6
+ [["re:.*q_proj", "re:.*k_proj", "re:.*v_proj"], "re:.*input_layernorm"],
7
+ [["re:.*gate_proj", "re:.*up_proj"], "re:.*post_attention_layernorm"]
8
+ ]
9
+ QuantizationModifier:
10
+ ignore:
11
+ # These operations don't make sense to quantize
12
+ - LlamaRotaryEmbedding
13
+ - LlamaRMSNorm
14
+ - SiLUActivation
15
+ # Skip quantizing the BMMs
16
+ - QuantizableMatMul
17
+ # Skip quantizing the layers with the most sensitive activations
18
+ - model.layers.5.mlp.down_proj
19
+ - model.layers.24.mlp.down_proj
20
+ - model.layers.23.mlp.down_proj
21
+ - model.layers.25.mlp.down_proj
22
+ - model.layers.2.mlp.down_proj
23
+ - model.layers.8.mlp.down_proj
24
+ post_oneshot_calibration: true
25
+ scheme_overrides:
26
+ Embedding:
27
+ input_activations: null
28
+ weights:
29
+ num_bits: 8
30
+ symmetric: false
31
+ SparseGPTModifier:
32
+ sparsity: 0.5
33
+ block_size: 128
34
+ sequential_update: true
35
+ quantize: true
36
+ percdamp: 0.01
37
+ mask_structure: "0:0"
38
+ targets: ["re:model.layers.\\d*$"]