nm-autobot commited on
Commit
389a38d
·
verified ·
1 Parent(s): ec8bf43

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. config.json +24 -8
  2. generation_config.json +1 -1
  3. model.safetensors +1 -1
  4. recipe.yaml +27 -7
config.json CHANGED
@@ -3,42 +3,58 @@
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": {
20
  "group_0": {
21
  "format": "int-quantized",
22
  "input_activations": {
 
 
23
  "dynamic": true,
24
  "group_size": null,
25
  "num_bits": 8,
 
 
 
26
  "strategy": "token",
27
  "symmetric": false,
28
- "type": "int"
 
29
  },
30
  "output_activations": null,
31
  "targets": [
32
  "Linear"
33
  ],
34
  "weights": {
 
 
35
  "dynamic": false,
36
  "group_size": null,
37
  "num_bits": 8,
38
  "observer": "memoryless_minmax",
 
 
39
  "strategy": "channel",
40
  "symmetric": true,
41
- "type": "int"
 
42
  }
43
  }
44
  },
@@ -48,19 +64,19 @@
48
  "lm_head"
49
  ],
50
  "kv_cache_scheme": null,
51
- "moe_sparsity_config": null,
52
  "quant_method": "compressed-tensors",
53
  "quantization_status": "compressed",
54
  "sparsity_config": {},
55
  "transform_config": {},
56
- "version": "0.19.1a20261023"
57
  },
58
  "rms_norm_eps": 1e-05,
59
- "rope_scaling": null,
60
- "rope_theta": 10000.0,
 
 
61
  "tie_word_embeddings": false,
62
- "torch_dtype": "bfloat16",
63
- "transformers_version": "4.35.0",
64
  "use_cache": true,
65
  "vocab_size": 32000
66
  }
 
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": {
25
  "group_0": {
26
  "format": "int-quantized",
27
  "input_activations": {
28
+ "actorder": null,
29
+ "block_structure": null,
30
  "dynamic": true,
31
  "group_size": null,
32
  "num_bits": 8,
33
+ "observer": null,
34
+ "observer_kwargs": {},
35
+ "scale_dtype": null,
36
  "strategy": "token",
37
  "symmetric": false,
38
+ "type": "int",
39
+ "zp_dtype": "torch.int8"
40
  },
41
  "output_activations": null,
42
  "targets": [
43
  "Linear"
44
  ],
45
  "weights": {
46
+ "actorder": null,
47
+ "block_structure": null,
48
  "dynamic": false,
49
  "group_size": null,
50
  "num_bits": 8,
51
  "observer": "memoryless_minmax",
52
+ "observer_kwargs": {},
53
+ "scale_dtype": null,
54
  "strategy": "channel",
55
  "symmetric": true,
56
+ "type": "int",
57
+ "zp_dtype": null
58
  }
59
  }
60
  },
 
64
  "lm_head"
65
  ],
66
  "kv_cache_scheme": null,
 
67
  "quant_method": "compressed-tensors",
68
  "quantization_status": "compressed",
69
  "sparsity_config": {},
70
  "transform_config": {},
71
+ "version": "0.17.2.dev0"
72
  },
73
  "rms_norm_eps": 1e-05,
74
+ "rope_parameters": {
75
+ "rope_theta": 10000.0,
76
+ "rope_type": "default"
77
+ },
78
  "tie_word_embeddings": false,
79
+ "transformers_version": "5.10.1",
 
80
  "use_cache": true,
81
  "vocab_size": 32000
82
  }
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.10.1"
7
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:193ce9d374f59734abb2f0ff97e3381045683f614a0ce279440e0de43a493705
3
  size 1232041608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a807c885bc486fa9db40ce815ae38888485bc2411f2d4bf1961d60cc3f776df
3
  size 1232041608
recipe.yaml CHANGED
@@ -1,7 +1,6 @@
1
  quant_stage:
2
  quant_modifiers:
3
  SmoothQuantModifier:
4
- requires_calibration_data: true
5
  smoothing_strength: 0.8
6
  mappings:
7
  - - ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']
@@ -14,16 +13,37 @@ quant_stage:
14
  config_groups:
15
  group_0:
16
  targets: [Linear]
17
- weights: {num_bits: 8, type: int, symmetric: true, group_size: null, strategy: channel,
18
- dynamic: false, observer: memoryless_minmax}
19
- input_activations: {num_bits: 8, type: int, symmetric: false, group_size: null,
20
- strategy: token, dynamic: true}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  output_activations: null
22
  format: null
23
  targets: [Linear]
24
  ignore: [lm_head]
25
  bypass_divisibility_checks: false
26
- requires_calibration_data: true
27
  block_size: 128
28
  dampening_frac: 0.01
29
- batched_quantization: auto
 
1
  quant_stage:
2
  quant_modifiers:
3
  SmoothQuantModifier:
 
4
  smoothing_strength: 0.8
5
  mappings:
6
  - - ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']
 
13
  config_groups:
14
  group_0:
15
  targets: [Linear]
16
+ weights:
17
+ num_bits: 8
18
+ type: int
19
+ symmetric: true
20
+ group_size: null
21
+ strategy: channel
22
+ block_structure: null
23
+ dynamic: false
24
+ actorder: null
25
+ scale_dtype: null
26
+ zp_dtype: null
27
+ observer: memoryless_minmax
28
+ observer_kwargs: {}
29
+ input_activations:
30
+ num_bits: 8
31
+ type: int
32
+ symmetric: false
33
+ group_size: null
34
+ strategy: token
35
+ block_structure: null
36
+ dynamic: true
37
+ actorder: null
38
+ scale_dtype: null
39
+ zp_dtype: torch.int8
40
+ observer: null
41
+ observer_kwargs: {}
42
  output_activations: null
43
  format: null
44
  targets: [Linear]
45
  ignore: [lm_head]
46
  bypass_divisibility_checks: false
 
47
  block_size: 128
48
  dampening_frac: 0.01
49
+ offload_hessians: false