horheynm commited on
Commit
305abb9
1 Parent(s): d02b78f

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
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
+ "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "config_groups": {
24
+ "group_0": {
25
+ "input_activations": null,
26
+ "output_activations": null,
27
+ "targets": [
28
+ "Linear"
29
+ ],
30
+ "weights": {
31
+ "actorder": null,
32
+ "block_structure": null,
33
+ "dynamic": false,
34
+ "group_size": 128,
35
+ "num_bits": 4,
36
+ "observer": "minmax",
37
+ "observer_kwargs": {},
38
+ "strategy": "group",
39
+ "symmetric": true,
40
+ "type": "int"
41
+ }
42
+ }
43
+ },
44
+ "format": "dense",
45
+ "global_compression_ratio": 1.883165566487463,
46
+ "ignore": [
47
+ "lm_head"
48
+ ],
49
+ "kv_cache_scheme": null,
50
+ "quant_method": "compressed-tensors",
51
+ "quantization_status": "frozen",
52
+ "sparsity_config": {
53
+ "format": "dense",
54
+ "global_sparsity": 0.1436103149318787,
55
+ "ignore": [
56
+ "model.layers.0.self_attn.q_proj",
57
+ "model.layers.0.self_attn.v_proj",
58
+ "model.layers.0.self_attn.o_proj",
59
+ "model.layers.0.mlp.gate_proj",
60
+ "model.layers.0.mlp.up_proj",
61
+ "model.layers.0.mlp.down_proj",
62
+ "model.layers.1.self_attn.q_proj",
63
+ "model.layers.1.self_attn.k_proj",
64
+ "model.layers.1.self_attn.v_proj",
65
+ "model.layers.1.self_attn.o_proj",
66
+ "model.layers.1.mlp.gate_proj",
67
+ "model.layers.1.mlp.up_proj",
68
+ "model.layers.1.mlp.down_proj",
69
+ "model.layers.2.self_attn.q_proj",
70
+ "model.layers.2.self_attn.k_proj",
71
+ "model.layers.2.self_attn.v_proj",
72
+ "model.layers.2.self_attn.o_proj",
73
+ "model.layers.2.mlp.gate_proj",
74
+ "model.layers.2.mlp.up_proj",
75
+ "model.layers.2.mlp.down_proj",
76
+ "model.layers.3.self_attn.q_proj",
77
+ "model.layers.3.self_attn.k_proj",
78
+ "model.layers.3.self_attn.v_proj",
79
+ "model.layers.3.self_attn.o_proj",
80
+ "model.layers.3.mlp.gate_proj",
81
+ "model.layers.3.mlp.up_proj",
82
+ "model.layers.3.mlp.down_proj",
83
+ "model.layers.4.self_attn.q_proj",
84
+ "model.layers.4.self_attn.k_proj",
85
+ "model.layers.4.self_attn.v_proj",
86
+ "model.layers.4.self_attn.o_proj",
87
+ "model.layers.4.mlp.gate_proj",
88
+ "model.layers.4.mlp.up_proj",
89
+ "model.layers.4.mlp.down_proj",
90
+ "model.layers.5.self_attn.q_proj",
91
+ "model.layers.5.self_attn.k_proj",
92
+ "model.layers.5.self_attn.v_proj",
93
+ "model.layers.5.self_attn.o_proj",
94
+ "model.layers.5.mlp.gate_proj",
95
+ "model.layers.5.mlp.up_proj",
96
+ "model.layers.5.mlp.down_proj",
97
+ "model.layers.6.self_attn.q_proj",
98
+ "model.layers.6.self_attn.k_proj",
99
+ "model.layers.6.self_attn.v_proj",
100
+ "model.layers.6.self_attn.o_proj",
101
+ "model.layers.6.mlp.gate_proj",
102
+ "model.layers.6.mlp.up_proj",
103
+ "model.layers.6.mlp.down_proj",
104
+ "model.layers.7.self_attn.q_proj",
105
+ "model.layers.7.self_attn.k_proj",
106
+ "model.layers.7.self_attn.v_proj",
107
+ "model.layers.7.self_attn.o_proj",
108
+ "model.layers.7.mlp.gate_proj",
109
+ "model.layers.7.mlp.up_proj",
110
+ "model.layers.7.mlp.down_proj",
111
+ "model.layers.8.self_attn.q_proj",
112
+ "model.layers.8.self_attn.k_proj",
113
+ "model.layers.8.self_attn.v_proj",
114
+ "model.layers.8.self_attn.o_proj",
115
+ "model.layers.8.mlp.gate_proj",
116
+ "model.layers.8.mlp.up_proj",
117
+ "model.layers.8.mlp.down_proj",
118
+ "model.layers.9.self_attn.q_proj",
119
+ "model.layers.9.self_attn.k_proj",
120
+ "model.layers.9.self_attn.v_proj",
121
+ "model.layers.9.self_attn.o_proj",
122
+ "model.layers.9.mlp.gate_proj",
123
+ "model.layers.9.mlp.up_proj",
124
+ "model.layers.9.mlp.down_proj",
125
+ "model.layers.10.self_attn.q_proj",
126
+ "model.layers.10.self_attn.k_proj",
127
+ "model.layers.10.self_attn.v_proj",
128
+ "model.layers.10.self_attn.o_proj",
129
+ "model.layers.10.mlp.gate_proj",
130
+ "model.layers.10.mlp.up_proj",
131
+ "model.layers.10.mlp.down_proj",
132
+ "model.layers.11.self_attn.q_proj",
133
+ "model.layers.11.self_attn.k_proj",
134
+ "model.layers.11.self_attn.v_proj",
135
+ "model.layers.11.self_attn.o_proj",
136
+ "model.layers.11.mlp.gate_proj",
137
+ "model.layers.11.mlp.up_proj",
138
+ "model.layers.11.mlp.down_proj",
139
+ "model.layers.12.self_attn.q_proj",
140
+ "model.layers.12.self_attn.k_proj",
141
+ "model.layers.12.self_attn.v_proj",
142
+ "model.layers.12.self_attn.o_proj",
143
+ "model.layers.12.mlp.gate_proj",
144
+ "model.layers.12.mlp.up_proj",
145
+ "model.layers.12.mlp.down_proj",
146
+ "model.layers.13.self_attn.q_proj",
147
+ "model.layers.13.self_attn.k_proj",
148
+ "model.layers.13.self_attn.v_proj",
149
+ "model.layers.13.self_attn.o_proj",
150
+ "model.layers.13.mlp.gate_proj",
151
+ "model.layers.13.mlp.up_proj",
152
+ "model.layers.13.mlp.down_proj",
153
+ "model.layers.14.self_attn.q_proj",
154
+ "model.layers.14.self_attn.k_proj",
155
+ "model.layers.14.self_attn.v_proj",
156
+ "model.layers.14.self_attn.o_proj",
157
+ "model.layers.14.mlp.gate_proj",
158
+ "model.layers.14.mlp.up_proj",
159
+ "model.layers.14.mlp.down_proj",
160
+ "model.layers.15.self_attn.q_proj",
161
+ "model.layers.15.self_attn.k_proj",
162
+ "model.layers.15.self_attn.v_proj",
163
+ "model.layers.15.self_attn.o_proj",
164
+ "model.layers.15.mlp.gate_proj",
165
+ "model.layers.15.mlp.up_proj",
166
+ "model.layers.15.mlp.down_proj",
167
+ "model.layers.16.self_attn.q_proj",
168
+ "model.layers.16.self_attn.k_proj",
169
+ "model.layers.16.self_attn.v_proj",
170
+ "model.layers.16.self_attn.o_proj",
171
+ "model.layers.16.mlp.gate_proj",
172
+ "model.layers.16.mlp.up_proj",
173
+ "model.layers.16.mlp.down_proj",
174
+ "model.layers.17.self_attn.q_proj",
175
+ "model.layers.17.self_attn.k_proj",
176
+ "model.layers.17.self_attn.v_proj",
177
+ "model.layers.17.self_attn.o_proj",
178
+ "model.layers.17.mlp.gate_proj",
179
+ "model.layers.17.mlp.up_proj",
180
+ "model.layers.17.mlp.down_proj",
181
+ "model.layers.18.self_attn.q_proj",
182
+ "model.layers.18.self_attn.k_proj",
183
+ "model.layers.18.self_attn.v_proj",
184
+ "model.layers.18.self_attn.o_proj",
185
+ "model.layers.18.mlp.gate_proj",
186
+ "model.layers.18.mlp.up_proj",
187
+ "model.layers.18.mlp.down_proj",
188
+ "model.layers.19.self_attn.q_proj",
189
+ "model.layers.19.self_attn.k_proj",
190
+ "model.layers.19.self_attn.v_proj",
191
+ "model.layers.19.self_attn.o_proj",
192
+ "model.layers.19.mlp.gate_proj",
193
+ "model.layers.19.mlp.up_proj",
194
+ "model.layers.19.mlp.down_proj",
195
+ "model.layers.20.self_attn.q_proj",
196
+ "model.layers.20.self_attn.k_proj",
197
+ "model.layers.20.self_attn.v_proj",
198
+ "model.layers.20.self_attn.o_proj",
199
+ "model.layers.20.mlp.gate_proj",
200
+ "model.layers.20.mlp.up_proj",
201
+ "model.layers.20.mlp.down_proj",
202
+ "model.layers.21.self_attn.q_proj",
203
+ "model.layers.21.self_attn.k_proj",
204
+ "model.layers.21.self_attn.v_proj",
205
+ "model.layers.21.self_attn.o_proj",
206
+ "model.layers.21.mlp.gate_proj",
207
+ "model.layers.21.mlp.up_proj",
208
+ "model.layers.21.mlp.down_proj",
209
+ "lm_head"
210
+ ],
211
+ "registry_requires_subclass": false,
212
+ "sparsity_structure": "unstructured",
213
+ "targets": [
214
+ "model.layers.0.self_attn.k_proj"
215
+ ]
216
+ }
217
+ },
218
+ "rms_norm_eps": 1e-05,
219
+ "rope_scaling": null,
220
+ "rope_theta": 10000.0,
221
+ "tie_word_embeddings": false,
222
+ "torch_dtype": "bfloat16",
223
+ "transformers_version": "4.48.0.dev0",
224
+ "use_cache": true,
225
+ "vocab_size": 32000
226
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "eos_token_id": 2,
4
+ "max_length": 2048,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.48.0.dev0"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aec20b089f9ed2fc6a1ccd697b76e18a6bf425254a4a589c447c851f1350084b
3
+ size 2222865296
recipe.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ DEFAULT_stage:
2
+ DEFAULT_modifiers:
3
+ GPTQModifier:
4
+ targets: Linear
5
+ ignore: [lm_head]
6
+ scheme: W4A16
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 2048,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "tokenizer_class": "LlamaTokenizer",
42
+ "unk_token": "<unk>",
43
+ "use_default_system_prompt": false
44
+ }