Upload folder using huggingface_hub
Browse files- config.json +227 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
config.json
ADDED
@@ -0,0 +1,227 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/dsikka/.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 |
+
"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": "pack-quantized",
|
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": "compressed",
|
52 |
+
"sparsity_config": {
|
53 |
+
"format": "dense",
|
54 |
+
"global_sparsity": 0.14297135853065746,
|
55 |
+
"ignore": [
|
56 |
+
"model.layers.0.self_attn.o_proj",
|
57 |
+
"model.layers.0.mlp.gate_proj",
|
58 |
+
"model.layers.0.mlp.up_proj",
|
59 |
+
"model.layers.0.mlp.down_proj",
|
60 |
+
"model.layers.1.self_attn.v_proj",
|
61 |
+
"model.layers.1.self_attn.o_proj",
|
62 |
+
"model.layers.1.mlp.gate_proj",
|
63 |
+
"model.layers.1.mlp.up_proj",
|
64 |
+
"model.layers.1.mlp.down_proj",
|
65 |
+
"model.layers.2.self_attn.q_proj",
|
66 |
+
"model.layers.2.self_attn.k_proj",
|
67 |
+
"model.layers.2.self_attn.v_proj",
|
68 |
+
"model.layers.2.self_attn.o_proj",
|
69 |
+
"model.layers.2.mlp.gate_proj",
|
70 |
+
"model.layers.2.mlp.up_proj",
|
71 |
+
"model.layers.2.mlp.down_proj",
|
72 |
+
"model.layers.3.self_attn.q_proj",
|
73 |
+
"model.layers.3.self_attn.k_proj",
|
74 |
+
"model.layers.3.self_attn.v_proj",
|
75 |
+
"model.layers.3.self_attn.o_proj",
|
76 |
+
"model.layers.3.mlp.gate_proj",
|
77 |
+
"model.layers.3.mlp.up_proj",
|
78 |
+
"model.layers.3.mlp.down_proj",
|
79 |
+
"model.layers.4.self_attn.q_proj",
|
80 |
+
"model.layers.4.self_attn.k_proj",
|
81 |
+
"model.layers.4.self_attn.v_proj",
|
82 |
+
"model.layers.4.self_attn.o_proj",
|
83 |
+
"model.layers.4.mlp.gate_proj",
|
84 |
+
"model.layers.4.mlp.up_proj",
|
85 |
+
"model.layers.4.mlp.down_proj",
|
86 |
+
"model.layers.5.self_attn.q_proj",
|
87 |
+
"model.layers.5.self_attn.k_proj",
|
88 |
+
"model.layers.5.self_attn.v_proj",
|
89 |
+
"model.layers.5.self_attn.o_proj",
|
90 |
+
"model.layers.5.mlp.gate_proj",
|
91 |
+
"model.layers.5.mlp.up_proj",
|
92 |
+
"model.layers.5.mlp.down_proj",
|
93 |
+
"model.layers.6.self_attn.q_proj",
|
94 |
+
"model.layers.6.self_attn.k_proj",
|
95 |
+
"model.layers.6.self_attn.v_proj",
|
96 |
+
"model.layers.6.self_attn.o_proj",
|
97 |
+
"model.layers.6.mlp.gate_proj",
|
98 |
+
"model.layers.6.mlp.up_proj",
|
99 |
+
"model.layers.6.mlp.down_proj",
|
100 |
+
"model.layers.7.self_attn.q_proj",
|
101 |
+
"model.layers.7.self_attn.k_proj",
|
102 |
+
"model.layers.7.self_attn.v_proj",
|
103 |
+
"model.layers.7.self_attn.o_proj",
|
104 |
+
"model.layers.7.mlp.gate_proj",
|
105 |
+
"model.layers.7.mlp.up_proj",
|
106 |
+
"model.layers.7.mlp.down_proj",
|
107 |
+
"model.layers.8.self_attn.q_proj",
|
108 |
+
"model.layers.8.self_attn.k_proj",
|
109 |
+
"model.layers.8.self_attn.v_proj",
|
110 |
+
"model.layers.8.self_attn.o_proj",
|
111 |
+
"model.layers.8.mlp.gate_proj",
|
112 |
+
"model.layers.8.mlp.up_proj",
|
113 |
+
"model.layers.8.mlp.down_proj",
|
114 |
+
"model.layers.9.self_attn.q_proj",
|
115 |
+
"model.layers.9.self_attn.k_proj",
|
116 |
+
"model.layers.9.self_attn.v_proj",
|
117 |
+
"model.layers.9.self_attn.o_proj",
|
118 |
+
"model.layers.9.mlp.gate_proj",
|
119 |
+
"model.layers.9.mlp.up_proj",
|
120 |
+
"model.layers.9.mlp.down_proj",
|
121 |
+
"model.layers.10.self_attn.q_proj",
|
122 |
+
"model.layers.10.self_attn.k_proj",
|
123 |
+
"model.layers.10.self_attn.v_proj",
|
124 |
+
"model.layers.10.self_attn.o_proj",
|
125 |
+
"model.layers.10.mlp.gate_proj",
|
126 |
+
"model.layers.10.mlp.up_proj",
|
127 |
+
"model.layers.10.mlp.down_proj",
|
128 |
+
"model.layers.11.self_attn.q_proj",
|
129 |
+
"model.layers.11.self_attn.k_proj",
|
130 |
+
"model.layers.11.self_attn.v_proj",
|
131 |
+
"model.layers.11.self_attn.o_proj",
|
132 |
+
"model.layers.11.mlp.gate_proj",
|
133 |
+
"model.layers.11.mlp.up_proj",
|
134 |
+
"model.layers.11.mlp.down_proj",
|
135 |
+
"model.layers.12.self_attn.q_proj",
|
136 |
+
"model.layers.12.self_attn.k_proj",
|
137 |
+
"model.layers.12.self_attn.v_proj",
|
138 |
+
"model.layers.12.self_attn.o_proj",
|
139 |
+
"model.layers.12.mlp.gate_proj",
|
140 |
+
"model.layers.12.mlp.up_proj",
|
141 |
+
"model.layers.12.mlp.down_proj",
|
142 |
+
"model.layers.13.self_attn.q_proj",
|
143 |
+
"model.layers.13.self_attn.k_proj",
|
144 |
+
"model.layers.13.self_attn.v_proj",
|
145 |
+
"model.layers.13.self_attn.o_proj",
|
146 |
+
"model.layers.13.mlp.gate_proj",
|
147 |
+
"model.layers.13.mlp.up_proj",
|
148 |
+
"model.layers.13.mlp.down_proj",
|
149 |
+
"model.layers.14.self_attn.q_proj",
|
150 |
+
"model.layers.14.self_attn.k_proj",
|
151 |
+
"model.layers.14.self_attn.v_proj",
|
152 |
+
"model.layers.14.self_attn.o_proj",
|
153 |
+
"model.layers.14.mlp.gate_proj",
|
154 |
+
"model.layers.14.mlp.up_proj",
|
155 |
+
"model.layers.14.mlp.down_proj",
|
156 |
+
"model.layers.15.self_attn.q_proj",
|
157 |
+
"model.layers.15.self_attn.k_proj",
|
158 |
+
"model.layers.15.self_attn.v_proj",
|
159 |
+
"model.layers.15.self_attn.o_proj",
|
160 |
+
"model.layers.15.mlp.gate_proj",
|
161 |
+
"model.layers.15.mlp.up_proj",
|
162 |
+
"model.layers.15.mlp.down_proj",
|
163 |
+
"model.layers.16.self_attn.q_proj",
|
164 |
+
"model.layers.16.self_attn.k_proj",
|
165 |
+
"model.layers.16.self_attn.v_proj",
|
166 |
+
"model.layers.16.self_attn.o_proj",
|
167 |
+
"model.layers.16.mlp.gate_proj",
|
168 |
+
"model.layers.16.mlp.up_proj",
|
169 |
+
"model.layers.16.mlp.down_proj",
|
170 |
+
"model.layers.17.self_attn.q_proj",
|
171 |
+
"model.layers.17.self_attn.k_proj",
|
172 |
+
"model.layers.17.self_attn.v_proj",
|
173 |
+
"model.layers.17.self_attn.o_proj",
|
174 |
+
"model.layers.17.mlp.gate_proj",
|
175 |
+
"model.layers.17.mlp.up_proj",
|
176 |
+
"model.layers.17.mlp.down_proj",
|
177 |
+
"model.layers.18.self_attn.q_proj",
|
178 |
+
"model.layers.18.self_attn.k_proj",
|
179 |
+
"model.layers.18.self_attn.v_proj",
|
180 |
+
"model.layers.18.self_attn.o_proj",
|
181 |
+
"model.layers.18.mlp.gate_proj",
|
182 |
+
"model.layers.18.mlp.up_proj",
|
183 |
+
"model.layers.18.mlp.down_proj",
|
184 |
+
"model.layers.19.self_attn.q_proj",
|
185 |
+
"model.layers.19.self_attn.k_proj",
|
186 |
+
"model.layers.19.self_attn.v_proj",
|
187 |
+
"model.layers.19.self_attn.o_proj",
|
188 |
+
"model.layers.19.mlp.gate_proj",
|
189 |
+
"model.layers.19.mlp.up_proj",
|
190 |
+
"model.layers.19.mlp.down_proj",
|
191 |
+
"model.layers.20.self_attn.q_proj",
|
192 |
+
"model.layers.20.self_attn.k_proj",
|
193 |
+
"model.layers.20.self_attn.v_proj",
|
194 |
+
"model.layers.20.self_attn.o_proj",
|
195 |
+
"model.layers.20.mlp.gate_proj",
|
196 |
+
"model.layers.20.mlp.up_proj",
|
197 |
+
"model.layers.20.mlp.down_proj",
|
198 |
+
"model.layers.21.self_attn.q_proj",
|
199 |
+
"model.layers.21.self_attn.k_proj",
|
200 |
+
"model.layers.21.self_attn.v_proj",
|
201 |
+
"model.layers.21.self_attn.o_proj",
|
202 |
+
"model.layers.21.mlp.gate_proj",
|
203 |
+
"model.layers.21.mlp.up_proj",
|
204 |
+
"model.layers.21.mlp.down_proj",
|
205 |
+
"lm_head"
|
206 |
+
],
|
207 |
+
"registry_requires_subclass": false,
|
208 |
+
"sparsity_structure": "unstructured",
|
209 |
+
"targets": [
|
210 |
+
"model.layers.0.self_attn.q_proj",
|
211 |
+
"model.layers.0.self_attn.k_proj",
|
212 |
+
"model.layers.0.self_attn.v_proj",
|
213 |
+
"model.layers.1.self_attn.q_proj",
|
214 |
+
"model.layers.1.self_attn.k_proj"
|
215 |
+
]
|
216 |
+
},
|
217 |
+
"version": "0.6.0.20240926"
|
218 |
+
},
|
219 |
+
"rms_norm_eps": 1e-05,
|
220 |
+
"rope_scaling": null,
|
221 |
+
"rope_theta": 10000.0,
|
222 |
+
"tie_word_embeddings": false,
|
223 |
+
"torch_dtype": "bfloat16",
|
224 |
+
"transformers_version": "4.45.0",
|
225 |
+
"use_cache": true,
|
226 |
+
"vocab_size": 32000
|
227 |
+
}
|
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:c8301a70b7c73d40f4b82dd3455b60ebf6234ef2770c6cee2fa661a7e8dc9293
|
3 |
+
size 761968800
|
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 |
+
}
|