RelaxingSnorlax
commited on
Commit
•
76c5c15
1
Parent(s):
c8b11ff
Upload folder using huggingface_hub
Browse files- config.json +84 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- recipe.yaml +14 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +47 -0
config.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nm-testing/TinyLlama-1.1B-Chat-v1.0-gsm8k-pruned.2of4-Uncompressed",
|
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": {
|
26 |
+
"actorder": null,
|
27 |
+
"block_structure": null,
|
28 |
+
"dynamic": true,
|
29 |
+
"group_size": null,
|
30 |
+
"num_bits": 8,
|
31 |
+
"observer": null,
|
32 |
+
"observer_kwargs": {},
|
33 |
+
"strategy": "token",
|
34 |
+
"symmetric": true,
|
35 |
+
"type": "int"
|
36 |
+
},
|
37 |
+
"output_activations": null,
|
38 |
+
"targets": [
|
39 |
+
"Linear"
|
40 |
+
],
|
41 |
+
"weights": {
|
42 |
+
"actorder": null,
|
43 |
+
"block_structure": null,
|
44 |
+
"dynamic": false,
|
45 |
+
"group_size": null,
|
46 |
+
"num_bits": 8,
|
47 |
+
"observer": "minmax",
|
48 |
+
"observer_kwargs": {},
|
49 |
+
"strategy": "channel",
|
50 |
+
"symmetric": true,
|
51 |
+
"type": "int"
|
52 |
+
}
|
53 |
+
}
|
54 |
+
},
|
55 |
+
"format": "int-quantized",
|
56 |
+
"global_compression_ratio": 1.4555025329431568,
|
57 |
+
"ignore": [
|
58 |
+
"lm_head"
|
59 |
+
],
|
60 |
+
"kv_cache_scheme": null,
|
61 |
+
"quant_method": "compressed-tensors",
|
62 |
+
"quantization_status": "compressed",
|
63 |
+
"sparsity_config": {
|
64 |
+
"format": "sparse-24-bitmask",
|
65 |
+
"global_sparsity": 0.4404252508753196,
|
66 |
+
"ignore": [
|
67 |
+
"lm_head"
|
68 |
+
],
|
69 |
+
"registry_requires_subclass": false,
|
70 |
+
"sparsity_structure": "2:4",
|
71 |
+
"targets": [
|
72 |
+
"Linear"
|
73 |
+
]
|
74 |
+
}
|
75 |
+
},
|
76 |
+
"rms_norm_eps": 1e-05,
|
77 |
+
"rope_scaling": null,
|
78 |
+
"rope_theta": 10000.0,
|
79 |
+
"tie_word_embeddings": false,
|
80 |
+
"torch_dtype": "bfloat16",
|
81 |
+
"transformers_version": "4.46.3",
|
82 |
+
"use_cache": true,
|
83 |
+
"vocab_size": 32000
|
84 |
+
}
|
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.46.3"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13c3fec177bd8d0b69bd5b7da34dfb7dfd76eda84fa90c14e70605a2a4ad220d
|
3 |
+
size 868744872
|
recipe.yaml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
quant_stage:
|
2 |
+
quant_modifiers:
|
3 |
+
QuantizationModifier:
|
4 |
+
ignore: [lm_head]
|
5 |
+
config_groups:
|
6 |
+
group_0:
|
7 |
+
weights: {num_bits: 8, type: int, strategy: channel, dynamic: false, symmetric: true}
|
8 |
+
input_activations: {num_bits: 8, type: int, strategy: token, dynamic: true, symmetric: true}
|
9 |
+
targets: [Linear]
|
10 |
+
pruning_modifiers:
|
11 |
+
ConstantPruningModifier:
|
12 |
+
targets: ['re:.*q_proj.weight', 're:.*k_proj.weight', 're:.*v_proj.weight', 're:.*o_proj.weight',
|
13 |
+
're:.*gate_proj.weight', 're:.*up_proj.weight', 're:.*down_proj.weight']
|
14 |
+
start: 0
|
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,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"max_length": 384,
|
37 |
+
"model_max_length": 2048,
|
38 |
+
"pad_token": "</s>",
|
39 |
+
"padding_side": "right",
|
40 |
+
"sp_model_kwargs": {},
|
41 |
+
"stride": 0,
|
42 |
+
"tokenizer_class": "LlamaTokenizer",
|
43 |
+
"truncation_side": "right",
|
44 |
+
"truncation_strategy": "longest_first",
|
45 |
+
"unk_token": "<unk>",
|
46 |
+
"use_default_system_prompt": false
|
47 |
+
}
|