nm-autobot commited on
Commit
4e00a97
·
verified ·
1 Parent(s): f6bc7f0

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. config.json +9 -30
  2. generation_config.json +1 -1
  3. model.safetensors +1 -1
  4. recipe.yaml +4 -1
config.json CHANGED
@@ -3,22 +3,17 @@
3
  "LlamaForCausalLM"
4
  ],
5
  "attention_bias": false,
6
- "attention_dropout": 0.0,
7
  "bos_token_id": 1,
8
- "dtype": "bfloat16",
9
  "eos_token_id": 2,
10
- "head_dim": 64,
11
  "hidden_act": "silu",
12
  "hidden_size": 2048,
13
  "initializer_range": 0.02,
14
  "intermediate_size": 5632,
15
  "max_position_embeddings": 2048,
16
- "mlp_bias": false,
17
  "model_type": "llama",
18
  "num_attention_heads": 32,
19
  "num_hidden_layers": 22,
20
  "num_key_value_heads": 4,
21
- "pad_token_id": null,
22
  "pretraining_tp": 1,
23
  "quantization_config": {
24
  "config_groups": {
@@ -30,53 +25,37 @@
30
  "re:.*self_attn\\.(k|q|o|v)_proj$"
31
  ],
32
  "weights": {
33
- "actorder": null,
34
- "block_structure": null,
35
  "dynamic": false,
36
  "group_size": 128,
37
  "num_bits": 4,
38
  "observer": "memoryless_minmax",
39
- "observer_kwargs": {},
40
- "scale_dtype": null,
41
  "strategy": "group",
42
  "symmetric": true,
43
- "type": "int",
44
- "zp_dtype": null
45
  }
46
  },
47
  "group_1": {
48
  "format": "int-quantized",
49
  "input_activations": {
50
- "actorder": null,
51
- "block_structure": null,
52
  "dynamic": true,
53
  "group_size": null,
54
  "num_bits": 8,
55
- "observer": null,
56
- "observer_kwargs": {},
57
- "scale_dtype": null,
58
  "strategy": "token",
59
  "symmetric": true,
60
- "type": "int",
61
- "zp_dtype": null
62
  },
63
  "output_activations": null,
64
  "targets": [
65
  "re:.*mlp\\.(down|gate|up)_proj$"
66
  ],
67
  "weights": {
68
- "actorder": null,
69
- "block_structure": null,
70
  "dynamic": false,
71
  "group_size": null,
72
  "num_bits": 8,
73
  "observer": "memoryless_minmax",
74
- "observer_kwargs": {},
75
- "scale_dtype": null,
76
  "strategy": "channel",
77
  "symmetric": true,
78
- "type": "int",
79
- "zp_dtype": null
80
  }
81
  }
82
  },
@@ -86,19 +65,19 @@
86
  "lm_head"
87
  ],
88
  "kv_cache_scheme": null,
 
89
  "quant_method": "compressed-tensors",
90
  "quantization_status": "compressed",
91
  "sparsity_config": {},
92
  "transform_config": {},
93
- "version": "0.17.2.dev0"
94
  },
95
  "rms_norm_eps": 1e-05,
96
- "rope_parameters": {
97
- "rope_theta": 10000.0,
98
- "rope_type": "default"
99
- },
100
  "tie_word_embeddings": false,
101
- "transformers_version": "5.10.1",
 
102
  "use_cache": true,
103
  "vocab_size": 32000
104
  }
 
3
  "LlamaForCausalLM"
4
  ],
5
  "attention_bias": false,
 
6
  "bos_token_id": 1,
 
7
  "eos_token_id": 2,
 
8
  "hidden_act": "silu",
9
  "hidden_size": 2048,
10
  "initializer_range": 0.02,
11
  "intermediate_size": 5632,
12
  "max_position_embeddings": 2048,
 
13
  "model_type": "llama",
14
  "num_attention_heads": 32,
15
  "num_hidden_layers": 22,
16
  "num_key_value_heads": 4,
 
17
  "pretraining_tp": 1,
18
  "quantization_config": {
19
  "config_groups": {
 
25
  "re:.*self_attn\\.(k|q|o|v)_proj$"
26
  ],
27
  "weights": {
 
 
28
  "dynamic": false,
29
  "group_size": 128,
30
  "num_bits": 4,
31
  "observer": "memoryless_minmax",
 
 
32
  "strategy": "group",
33
  "symmetric": true,
34
+ "type": "int"
 
35
  }
36
  },
37
  "group_1": {
38
  "format": "int-quantized",
39
  "input_activations": {
 
 
40
  "dynamic": true,
41
  "group_size": null,
42
  "num_bits": 8,
 
 
 
43
  "strategy": "token",
44
  "symmetric": true,
45
+ "type": "int"
 
46
  },
47
  "output_activations": null,
48
  "targets": [
49
  "re:.*mlp\\.(down|gate|up)_proj$"
50
  ],
51
  "weights": {
 
 
52
  "dynamic": false,
53
  "group_size": null,
54
  "num_bits": 8,
55
  "observer": "memoryless_minmax",
 
 
56
  "strategy": "channel",
57
  "symmetric": true,
58
+ "type": "int"
 
59
  }
60
  }
61
  },
 
65
  "lm_head"
66
  ],
67
  "kv_cache_scheme": null,
68
+ "moe_sparsity_config": null,
69
  "quant_method": "compressed-tensors",
70
  "quantization_status": "compressed",
71
  "sparsity_config": {},
72
  "transform_config": {},
73
+ "version": "0.20.0"
74
  },
75
  "rms_norm_eps": 1e-05,
76
+ "rope_scaling": null,
77
+ "rope_theta": 10000.0,
 
 
78
  "tie_word_embeddings": false,
79
+ "torch_dtype": "bfloat16",
80
+ "transformers_version": "4.35.0",
81
  "use_cache": true,
82
  "vocab_size": 32000
83
  }
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.10.1"
7
  }
 
3
  "eos_token_id": 2,
4
  "max_length": 2048,
5
  "pad_token_id": 0,
6
+ "transformers_version": "5.21.0"
7
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:87434fe357dde7cfb5b43077d25b85ccd492bdd6388c7d8958e1e48de38564b0
3
  size 1131284624
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b201ca0c98be2f789f5ac0bbd6bfb7df634b4bd8b038e3f6f1051f86fae6876
3
  size 1131284624
recipe.yaml CHANGED
@@ -1,6 +1,7 @@
1
  quant_stage:
2
  quant_modifiers:
3
  AWQModifier:
 
4
  mappings:
5
  - smooth_layer: re:.*input_layernorm$
6
  balance_layers: ['re:.*q_proj$', 're:.*k_proj$', 're:.*v_proj$']
@@ -12,11 +13,13 @@ quant_stage:
12
  ignore: [lm_head]
13
  scheme: W4A16
14
  bypass_divisibility_checks: false
 
15
  GPTQModifier:
16
  targets: ['re:.*mlp\.(down|gate|up)_proj$']
17
  ignore: [lm_head]
18
  scheme: W8A8
19
  bypass_divisibility_checks: false
 
20
  block_size: 128
21
  dampening_frac: 0.001
22
- offload_hessians: false
 
1
  quant_stage:
2
  quant_modifiers:
3
  AWQModifier:
4
+ requires_calibration_data: true
5
  mappings:
6
  - smooth_layer: re:.*input_layernorm$
7
  balance_layers: ['re:.*q_proj$', 're:.*k_proj$', 're:.*v_proj$']
 
13
  ignore: [lm_head]
14
  scheme: W4A16
15
  bypass_divisibility_checks: false
16
+ requires_calibration_data: false
17
  GPTQModifier:
18
  targets: ['re:.*mlp\.(down|gate|up)_proj$']
19
  ignore: [lm_head]
20
  scheme: W8A8
21
  bypass_divisibility_checks: false
22
+ requires_calibration_data: true
23
  block_size: 128
24
  dampening_frac: 0.001
25
+ batched_quantization: auto