horheynm commited on
Commit
39a0059
1 Parent(s): 323b3b1

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/gohashi/.cache/huggingface/hub/models--TinyLlama--TinyLlama-1.1B-Chat-v1.0/snapshots/fe8a4ea1ffedaf415f4da2f062534de366a451e6",
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
+ "format": "dense",
25
+ "global_compression_ratio": 1.0,
26
+ "ignore": [
27
+ "model.layers.0.self_attn.q_proj",
28
+ "model.layers.0.self_attn.k_proj",
29
+ "model.layers.0.self_attn.v_proj",
30
+ "model.layers.0.self_attn.o_proj",
31
+ "model.layers.0.mlp.gate_proj",
32
+ "model.layers.0.mlp.up_proj",
33
+ "model.layers.0.mlp.down_proj",
34
+ "model.layers.1.self_attn.q_proj",
35
+ "model.layers.1.self_attn.k_proj",
36
+ "model.layers.1.self_attn.v_proj",
37
+ "model.layers.1.self_attn.o_proj",
38
+ "model.layers.1.mlp.gate_proj",
39
+ "model.layers.1.mlp.up_proj",
40
+ "model.layers.1.mlp.down_proj",
41
+ "model.layers.2.self_attn.q_proj",
42
+ "model.layers.2.self_attn.k_proj",
43
+ "model.layers.2.self_attn.v_proj",
44
+ "model.layers.2.self_attn.o_proj",
45
+ "model.layers.2.mlp.gate_proj",
46
+ "model.layers.2.mlp.up_proj",
47
+ "model.layers.2.mlp.down_proj",
48
+ "model.layers.3.self_attn.q_proj",
49
+ "model.layers.3.self_attn.k_proj",
50
+ "model.layers.3.self_attn.v_proj",
51
+ "model.layers.3.self_attn.o_proj",
52
+ "model.layers.3.mlp.gate_proj",
53
+ "model.layers.3.mlp.up_proj",
54
+ "model.layers.3.mlp.down_proj",
55
+ "model.layers.4.self_attn.q_proj",
56
+ "model.layers.4.self_attn.k_proj",
57
+ "model.layers.4.self_attn.v_proj",
58
+ "model.layers.4.self_attn.o_proj",
59
+ "model.layers.4.mlp.gate_proj",
60
+ "model.layers.4.mlp.up_proj",
61
+ "model.layers.4.mlp.down_proj",
62
+ "model.layers.5.self_attn.q_proj",
63
+ "model.layers.5.self_attn.k_proj",
64
+ "model.layers.5.self_attn.v_proj",
65
+ "model.layers.5.self_attn.o_proj",
66
+ "model.layers.5.mlp.gate_proj",
67
+ "model.layers.5.mlp.up_proj",
68
+ "model.layers.5.mlp.down_proj",
69
+ "model.layers.6.self_attn.q_proj",
70
+ "model.layers.6.self_attn.k_proj",
71
+ "model.layers.6.self_attn.v_proj",
72
+ "model.layers.6.self_attn.o_proj",
73
+ "model.layers.6.mlp.gate_proj",
74
+ "model.layers.6.mlp.up_proj",
75
+ "model.layers.6.mlp.down_proj",
76
+ "model.layers.7.self_attn.q_proj",
77
+ "model.layers.7.self_attn.k_proj",
78
+ "model.layers.7.self_attn.v_proj",
79
+ "model.layers.7.self_attn.o_proj",
80
+ "model.layers.7.mlp.gate_proj",
81
+ "model.layers.7.mlp.up_proj",
82
+ "model.layers.7.mlp.down_proj",
83
+ "model.layers.8.self_attn.q_proj",
84
+ "model.layers.8.self_attn.k_proj",
85
+ "model.layers.8.self_attn.v_proj",
86
+ "model.layers.8.self_attn.o_proj",
87
+ "model.layers.8.mlp.gate_proj",
88
+ "model.layers.8.mlp.up_proj",
89
+ "model.layers.8.mlp.down_proj",
90
+ "model.layers.9.self_attn.q_proj",
91
+ "model.layers.9.self_attn.k_proj",
92
+ "model.layers.9.self_attn.v_proj",
93
+ "model.layers.9.self_attn.o_proj",
94
+ "model.layers.9.mlp.gate_proj",
95
+ "model.layers.9.mlp.up_proj",
96
+ "model.layers.9.mlp.down_proj",
97
+ "model.layers.10.self_attn.q_proj",
98
+ "model.layers.10.self_attn.k_proj",
99
+ "model.layers.10.self_attn.v_proj",
100
+ "model.layers.10.self_attn.o_proj",
101
+ "model.layers.10.mlp.gate_proj",
102
+ "model.layers.10.mlp.up_proj",
103
+ "model.layers.10.mlp.down_proj",
104
+ "model.layers.11.self_attn.q_proj",
105
+ "model.layers.11.self_attn.k_proj",
106
+ "model.layers.11.self_attn.v_proj",
107
+ "model.layers.11.self_attn.o_proj",
108
+ "model.layers.11.mlp.gate_proj",
109
+ "model.layers.11.mlp.up_proj",
110
+ "model.layers.11.mlp.down_proj",
111
+ "model.layers.12.self_attn.q_proj",
112
+ "model.layers.12.self_attn.k_proj",
113
+ "model.layers.12.self_attn.v_proj",
114
+ "model.layers.12.self_attn.o_proj",
115
+ "model.layers.12.mlp.gate_proj",
116
+ "model.layers.12.mlp.up_proj",
117
+ "model.layers.12.mlp.down_proj",
118
+ "model.layers.13.self_attn.q_proj",
119
+ "model.layers.13.self_attn.k_proj",
120
+ "model.layers.13.self_attn.v_proj",
121
+ "model.layers.13.self_attn.o_proj",
122
+ "model.layers.13.mlp.gate_proj",
123
+ "model.layers.13.mlp.up_proj",
124
+ "model.layers.13.mlp.down_proj",
125
+ "model.layers.14.self_attn.q_proj",
126
+ "model.layers.14.self_attn.k_proj",
127
+ "model.layers.14.self_attn.v_proj",
128
+ "model.layers.14.self_attn.o_proj",
129
+ "model.layers.14.mlp.gate_proj",
130
+ "model.layers.14.mlp.up_proj",
131
+ "model.layers.14.mlp.down_proj",
132
+ "model.layers.15.self_attn.q_proj",
133
+ "model.layers.15.self_attn.k_proj",
134
+ "model.layers.15.self_attn.v_proj",
135
+ "model.layers.15.self_attn.o_proj",
136
+ "model.layers.15.mlp.gate_proj",
137
+ "model.layers.15.mlp.up_proj",
138
+ "model.layers.15.mlp.down_proj",
139
+ "model.layers.16.self_attn.q_proj",
140
+ "model.layers.16.self_attn.k_proj",
141
+ "model.layers.16.self_attn.v_proj",
142
+ "model.layers.16.self_attn.o_proj",
143
+ "model.layers.16.mlp.gate_proj",
144
+ "model.layers.16.mlp.up_proj",
145
+ "model.layers.16.mlp.down_proj",
146
+ "model.layers.17.self_attn.q_proj",
147
+ "model.layers.17.self_attn.k_proj",
148
+ "model.layers.17.self_attn.v_proj",
149
+ "model.layers.17.self_attn.o_proj",
150
+ "model.layers.17.mlp.gate_proj",
151
+ "model.layers.17.mlp.up_proj",
152
+ "model.layers.17.mlp.down_proj",
153
+ "model.layers.18.self_attn.q_proj",
154
+ "model.layers.18.self_attn.k_proj",
155
+ "model.layers.18.self_attn.v_proj",
156
+ "model.layers.18.self_attn.o_proj",
157
+ "model.layers.18.mlp.gate_proj",
158
+ "model.layers.18.mlp.up_proj",
159
+ "model.layers.18.mlp.down_proj",
160
+ "model.layers.19.self_attn.q_proj",
161
+ "model.layers.19.self_attn.k_proj",
162
+ "model.layers.19.self_attn.v_proj",
163
+ "model.layers.19.self_attn.o_proj",
164
+ "model.layers.19.mlp.gate_proj",
165
+ "model.layers.19.mlp.up_proj",
166
+ "model.layers.19.mlp.down_proj",
167
+ "model.layers.20.self_attn.q_proj",
168
+ "model.layers.20.self_attn.k_proj",
169
+ "model.layers.20.self_attn.v_proj",
170
+ "model.layers.20.self_attn.o_proj",
171
+ "model.layers.20.mlp.gate_proj",
172
+ "model.layers.20.mlp.up_proj",
173
+ "model.layers.20.mlp.down_proj",
174
+ "model.layers.21.self_attn.q_proj",
175
+ "model.layers.21.self_attn.k_proj",
176
+ "model.layers.21.self_attn.v_proj",
177
+ "model.layers.21.self_attn.o_proj",
178
+ "model.layers.21.mlp.gate_proj",
179
+ "model.layers.21.mlp.up_proj",
180
+ "model.layers.21.mlp.down_proj",
181
+ "lm_head"
182
+ ],
183
+ "kv_cache_scheme": {
184
+ "actorder": null,
185
+ "block_structure": null,
186
+ "dynamic": false,
187
+ "group_size": null,
188
+ "num_bits": 8,
189
+ "observer": "minmax",
190
+ "observer_kwargs": {},
191
+ "strategy": "tensor",
192
+ "symmetric": true,
193
+ "type": "float"
194
+ },
195
+ "quant_method": "compressed-tensors",
196
+ "quantization_status": "frozen",
197
+ "version": "0.6.0.20240930"
198
+ },
199
+ "rms_norm_eps": 1e-05,
200
+ "rope_scaling": null,
201
+ "rope_theta": 10000.0,
202
+ "tie_word_embeddings": false,
203
+ "torch_dtype": "bfloat16",
204
+ "transformers_version": "4.45.0",
205
+ "use_cache": true,
206
+ "vocab_size": 32000
207
+ }
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.45.0"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:460731b4c06598d7b872b1691df292f3ddcf697d5e33a18bb30101f5993b39d9
3
+ size 2200124472
recipe.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ quant_stage:
2
+ quant_modifiers:
3
+ QuantizationModifier:
4
+ kv_cache_scheme: {num_bits: 8, type: float, strategy: tensor, dynamic: false, symmetric: true}
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_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "legacy": false,
36
+ "model_max_length": 2048,
37
+ "pad_token": "</s>",
38
+ "padding_side": "right",
39
+ "sp_model_kwargs": {},
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }