-
Notifications
You must be signed in to change notification settings - Fork 20
/
awq.yaml
55 lines (55 loc) · 975 Bytes
/
awq.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
quant:
calib:
num_samples: 128
seq_length: 512
min_seq_length: 0
max_seq_length: 512
wgts:
dtype: uint4
zero_point: PostScale
group_shapes:
- - 1
- 128
scale_dtypes:
- torch.float16
enable_calib_range: true
calib_range:
objective: ProductsError
strategy: GridSearch
granularity: Group
degree: 2
max_shrink: 0.8
max_expand: 1.0
num_grids: 20
skips:
- qkv_proj
ipts:
static: false
dtype: null
group_shapes:
- - 1
- -1
scale_dtypes:
- torch.float16
opts:
static: false
dtype: null
group_shapes:
- - 1
- -1
scale_dtypes:
- torch.float16
enable_smooth: true
smooth:
enable_proj: true
proj:
objective: OutputsError
strategy: GridSearch
granularity: Layer
spans:
- - AbsMax
- AbsMax
alpha: 0.5
beta: 0
num_grids: 20
enable_attn: false