nm-autobot commited on
Commit
f620d23
·
verified ·
1 Parent(s): 5085747

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. config.json +25 -6
  2. generation_config.json +1 -1
  3. model.safetensors +1 -1
  4. recipe.yaml +52 -8
config.json CHANGED
@@ -20,13 +20,18 @@
20
  "group_0": {
21
  "format": "nvfp4-pack-quantized",
22
  "input_activations": {
 
 
23
  "dynamic": "local",
24
  "group_size": 16,
25
  "num_bits": 4,
26
  "observer": "minmax",
 
 
27
  "strategy": "tensor_group",
28
  "symmetric": true,
29
- "type": "float"
 
30
  },
31
  "output_activations": null,
32
  "targets": [
@@ -34,38 +39,53 @@
34
  "re:.*\\.(gate|up)_proj$"
35
  ],
36
  "weights": {
 
 
37
  "dynamic": false,
38
  "group_size": 16,
39
  "num_bits": 4,
40
  "observer": "memoryless_minmax",
 
41
  "scale_dtype": "torch.float8_e4m3fn",
42
  "strategy": "tensor_group",
43
  "symmetric": true,
44
- "type": "float"
 
45
  }
46
  },
47
  "group_1": {
48
  "format": "float-quantized",
49
  "input_activations": {
 
 
50
  "dynamic": true,
51
  "group_size": null,
52
  "num_bits": 8,
 
 
 
53
  "strategy": "token",
54
  "symmetric": true,
55
- "type": "float"
 
56
  },
57
  "output_activations": null,
58
  "targets": [
59
  "re:.*\\.down_proj$"
60
  ],
61
  "weights": {
 
 
62
  "dynamic": false,
63
  "group_size": null,
64
  "num_bits": 8,
65
  "observer": "memoryless_minmax",
 
 
66
  "strategy": "channel",
67
  "symmetric": true,
68
- "type": "float"
 
69
  }
70
  }
71
  },
@@ -75,12 +95,11 @@
75
  "lm_head"
76
  ],
77
  "kv_cache_scheme": null,
78
- "moe_sparsity_config": null,
79
  "quant_method": "compressed-tensors",
80
  "quantization_status": "compressed",
81
  "sparsity_config": {},
82
  "transform_config": {},
83
- "version": "0.19.1.dev41+g0ccb6a99"
84
  },
85
  "rms_norm_eps": 1e-05,
86
  "rope_scaling": null,
 
20
  "group_0": {
21
  "format": "nvfp4-pack-quantized",
22
  "input_activations": {
23
+ "actorder": null,
24
+ "block_structure": null,
25
  "dynamic": "local",
26
  "group_size": 16,
27
  "num_bits": 4,
28
  "observer": "minmax",
29
+ "observer_kwargs": {},
30
+ "scale_dtype": null,
31
  "strategy": "tensor_group",
32
  "symmetric": true,
33
+ "type": "float",
34
+ "zp_dtype": null
35
  },
36
  "output_activations": null,
37
  "targets": [
 
39
  "re:.*\\.(gate|up)_proj$"
40
  ],
41
  "weights": {
42
+ "actorder": null,
43
+ "block_structure": null,
44
  "dynamic": false,
45
  "group_size": 16,
46
  "num_bits": 4,
47
  "observer": "memoryless_minmax",
48
+ "observer_kwargs": {},
49
  "scale_dtype": "torch.float8_e4m3fn",
50
  "strategy": "tensor_group",
51
  "symmetric": true,
52
+ "type": "float",
53
+ "zp_dtype": null
54
  }
55
  },
56
  "group_1": {
57
  "format": "float-quantized",
58
  "input_activations": {
59
+ "actorder": null,
60
+ "block_structure": null,
61
  "dynamic": true,
62
  "group_size": null,
63
  "num_bits": 8,
64
+ "observer": null,
65
+ "observer_kwargs": {},
66
+ "scale_dtype": null,
67
  "strategy": "token",
68
  "symmetric": true,
69
+ "type": "float",
70
+ "zp_dtype": null
71
  },
72
  "output_activations": null,
73
  "targets": [
74
  "re:.*\\.down_proj$"
75
  ],
76
  "weights": {
77
+ "actorder": null,
78
+ "block_structure": null,
79
  "dynamic": false,
80
  "group_size": null,
81
  "num_bits": 8,
82
  "observer": "memoryless_minmax",
83
+ "observer_kwargs": {},
84
+ "scale_dtype": null,
85
  "strategy": "channel",
86
  "symmetric": true,
87
+ "type": "float",
88
+ "zp_dtype": null
89
  }
90
  }
91
  },
 
95
  "lm_head"
96
  ],
97
  "kv_cache_scheme": null,
 
98
  "quant_method": "compressed-tensors",
99
  "quantization_status": "compressed",
100
  "sparsity_config": {},
101
  "transform_config": {},
102
+ "version": "0.19.0"
103
  },
104
  "rms_norm_eps": 1e-05,
105
  "rope_scaling": null,
generation_config.json CHANGED
@@ -3,5 +3,5 @@
3
  "eos_token_id": 2,
4
  "max_length": 2048,
5
  "pad_token_id": 0,
6
- "transformers_version": "5.20.2"
7
  }
 
3
  "eos_token_id": 2,
4
  "max_length": 2048,
5
  "pad_token_id": 0,
6
+ "transformers_version": "5.17.0"
7
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e9a76baf2aafc0fc49e0c4f87f17974dd10974af4fd26a05dbb29c782845d168
3
  size 918504936
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:866c2782e60b8f2cf7732eef2f1346cc6e00bac5e2af8275016367c38188e108
3
  size 918504936
recipe.yaml CHANGED
@@ -4,18 +4,62 @@ quant_stage:
4
  config_groups:
5
  group_0:
6
  targets: ['re:.*\.down_proj$']
7
- weights: {num_bits: 8, type: float, symmetric: true, group_size: null, strategy: channel,
8
- dynamic: false, observer: memoryless_minmax}
9
- input_activations: {num_bits: 8, type: float, symmetric: true, group_size: null,
10
- strategy: token, dynamic: true}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  output_activations: null
12
  format: null
13
  group_1:
14
  targets: ['re:.*self_attn\.(k|o|q|v)_proj$', 're:.*\.(gate|up)_proj$']
15
- weights: {num_bits: 4, type: float, symmetric: true, group_size: 16, strategy: tensor_group,
16
- dynamic: false, scale_dtype: torch.float8_e4m3fn, observer: memoryless_minmax}
17
- input_activations: {num_bits: 4, type: float, symmetric: true, group_size: 16, strategy: tensor_group,
18
- dynamic: local, observer: minmax}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  output_activations: null
20
  format: null
21
  targets: [Linear]
 
4
  config_groups:
5
  group_0:
6
  targets: ['re:.*\.down_proj$']
7
+ weights:
8
+ num_bits: 8
9
+ type: float
10
+ symmetric: true
11
+ group_size: null
12
+ strategy: channel
13
+ block_structure: null
14
+ dynamic: false
15
+ actorder: null
16
+ scale_dtype: null
17
+ zp_dtype: null
18
+ observer: memoryless_minmax
19
+ observer_kwargs: {}
20
+ input_activations:
21
+ num_bits: 8
22
+ type: float
23
+ symmetric: true
24
+ group_size: null
25
+ strategy: token
26
+ block_structure: null
27
+ dynamic: true
28
+ actorder: null
29
+ scale_dtype: null
30
+ zp_dtype: null
31
+ observer: null
32
+ observer_kwargs: {}
33
  output_activations: null
34
  format: null
35
  group_1:
36
  targets: ['re:.*self_attn\.(k|o|q|v)_proj$', 're:.*\.(gate|up)_proj$']
37
+ weights:
38
+ num_bits: 4
39
+ type: float
40
+ symmetric: true
41
+ group_size: 16
42
+ strategy: tensor_group
43
+ block_structure: null
44
+ dynamic: false
45
+ actorder: null
46
+ scale_dtype: torch.float8_e4m3fn
47
+ zp_dtype: null
48
+ observer: memoryless_minmax
49
+ observer_kwargs: {}
50
+ input_activations:
51
+ num_bits: 4
52
+ type: float
53
+ symmetric: true
54
+ group_size: 16
55
+ strategy: tensor_group
56
+ block_structure: null
57
+ dynamic: local
58
+ actorder: null
59
+ scale_dtype: null
60
+ zp_dtype: null
61
+ observer: minmax
62
+ observer_kwargs: {}
63
  output_activations: null
64
  format: null
65
  targets: [Linear]