alexmarques
commited on
Commit
•
7c6242b
1
Parent(s):
3d9c478
Upload folder using huggingface_hub
Browse files- added_tokens.json +5 -0
- config.json +74 -0
- generation_config.json +14 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- recipe.yaml +11 -0
- results_2024-07-11T03-36-57.827775.json +0 -0
- special_tokens_map.json +20 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- vocab.json +0 -0
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|im_end|>": 151645,
|
4 |
+
"<|im_start|>": 151644
|
5 |
+
}
|
config.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/nm/drive0/alexandre/cache/hub/models--Qwen--Qwen2-0.5B-Instruct/snapshots/c291d6fce4804a1d39305f388dd32897d1f7acc4",
|
3 |
+
"architectures": [
|
4 |
+
"Qwen2ForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151643,
|
8 |
+
"compression_config": {
|
9 |
+
"config_groups": {
|
10 |
+
"group_0": {
|
11 |
+
"input_activations": {
|
12 |
+
"block_structure": null,
|
13 |
+
"dynamic": true,
|
14 |
+
"group_size": null,
|
15 |
+
"num_bits": 8,
|
16 |
+
"observer": "memoryless",
|
17 |
+
"observer_kwargs": {},
|
18 |
+
"strategy": "token",
|
19 |
+
"symmetric": true,
|
20 |
+
"type": "int"
|
21 |
+
},
|
22 |
+
"output_activations": null,
|
23 |
+
"targets": [
|
24 |
+
"Linear"
|
25 |
+
],
|
26 |
+
"weights": {
|
27 |
+
"block_structure": null,
|
28 |
+
"dynamic": false,
|
29 |
+
"group_size": null,
|
30 |
+
"num_bits": 8,
|
31 |
+
"observer": "minmax",
|
32 |
+
"observer_kwargs": {},
|
33 |
+
"strategy": "channel",
|
34 |
+
"symmetric": true,
|
35 |
+
"type": "int"
|
36 |
+
}
|
37 |
+
}
|
38 |
+
},
|
39 |
+
"format": "int-quantized",
|
40 |
+
"global_compression_ratio": 1.2392250398786397,
|
41 |
+
"ignore": [
|
42 |
+
"lm_head"
|
43 |
+
],
|
44 |
+
"kv_cache_scheme": null,
|
45 |
+
"quant_method": "compressed-tensors",
|
46 |
+
"quantization_status": "frozen",
|
47 |
+
"sparsity_config": {
|
48 |
+
"format": "dense",
|
49 |
+
"global_sparsity": 1.0414135120688999,
|
50 |
+
"registry_requires_subclass": false,
|
51 |
+
"sparsity_structure": "unstructured"
|
52 |
+
}
|
53 |
+
},
|
54 |
+
"eos_token_id": 151645,
|
55 |
+
"hidden_act": "silu",
|
56 |
+
"hidden_size": 896,
|
57 |
+
"initializer_range": 0.02,
|
58 |
+
"intermediate_size": 4864,
|
59 |
+
"max_position_embeddings": 32768,
|
60 |
+
"max_window_layers": 24,
|
61 |
+
"model_type": "qwen2",
|
62 |
+
"num_attention_heads": 14,
|
63 |
+
"num_hidden_layers": 24,
|
64 |
+
"num_key_value_heads": 2,
|
65 |
+
"rms_norm_eps": 1e-06,
|
66 |
+
"rope_theta": 1000000.0,
|
67 |
+
"sliding_window": 32768,
|
68 |
+
"tie_word_embeddings": true,
|
69 |
+
"torch_dtype": "bfloat16",
|
70 |
+
"transformers_version": "4.42.3",
|
71 |
+
"use_cache": true,
|
72 |
+
"use_sliding_window": false,
|
73 |
+
"vocab_size": 151936
|
74 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"pad_token_id": 151643,
|
9 |
+
"repetition_penalty": 1.1,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
+
"transformers_version": "4.42.3"
|
14 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f53fa895a269879ddb2d2c9621336b7fe453c692803d2c91f52112970dd7a52f
|
3 |
+
size 903168128
|
recipe.yaml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
quant_stage:
|
2 |
+
quant_modifiers:
|
3 |
+
GPTQModifier:
|
4 |
+
sequential_update: false
|
5 |
+
dampening_frac: 0.01
|
6 |
+
ignore: [lm_head]
|
7 |
+
config_groups:
|
8 |
+
group_0:
|
9 |
+
targets: [Linear]
|
10 |
+
weights: {num_bits: 8, type: int, symmetric: true, strategy: channel}
|
11 |
+
input_activations: {num_bits: 8, type: int, symmetric: true, dynamic: true, strategy: token}
|
results_2024-07-11T03-36-57.827775.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"eos_token": {
|
7 |
+
"content": "<|im_end|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"pad_token": {
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
}
|
20 |
+
}
|
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_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"additional_special_tokens": [
|
30 |
+
"<|im_start|>",
|
31 |
+
"<|im_end|>"
|
32 |
+
],
|
33 |
+
"bos_token": null,
|
34 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
35 |
+
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "<|im_end|>",
|
37 |
+
"errors": "replace",
|
38 |
+
"model_max_length": 32768,
|
39 |
+
"pad_token": "<|endoftext|>",
|
40 |
+
"split_special_tokens": false,
|
41 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
42 |
+
"unk_token": null
|
43 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|