Upload folder using huggingface_hub
Browse files- config.json +67 -0
- generation_config.json +6 -0
- model-00001-of-00005.safetensors +3 -0
- model-00002-of-00005.safetensors +3 -0
- model-00003-of-00005.safetensors +3 -0
- model-00004-of-00005.safetensors +3 -0
- model-00005-of-00005.safetensors +3 -0
- model.safetensors.index.json +0 -0
- recipe.yaml +7 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +44 -0
config.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/sadkins/.cache/huggingface/hub/models--mistralai--Mixtral-8x7B-Instruct-v0.1/snapshots/67c3bf6b0aa8b6670f892629331d314f9af0b522",
|
3 |
+
"architectures": [
|
4 |
+
"MixtralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"compression_config": {
|
9 |
+
"config_groups": {
|
10 |
+
"group_0": {
|
11 |
+
"input_activations": null,
|
12 |
+
"output_activations": null,
|
13 |
+
"targets": [
|
14 |
+
"Linear"
|
15 |
+
],
|
16 |
+
"weights": {
|
17 |
+
"block_structure": null,
|
18 |
+
"dynamic": false,
|
19 |
+
"group_size": 128,
|
20 |
+
"num_bits": 4,
|
21 |
+
"observer": "minmax",
|
22 |
+
"observer_kwargs": {},
|
23 |
+
"strategy": "group",
|
24 |
+
"symmetric": true,
|
25 |
+
"type": "int"
|
26 |
+
}
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"format": "pack-quantized",
|
30 |
+
"global_compression_ratio": 2.1823781700242217,
|
31 |
+
"ignore": [
|
32 |
+
"lm_head"
|
33 |
+
],
|
34 |
+
"kv_cache_scheme": null,
|
35 |
+
"quant_method": "compressed-tensors",
|
36 |
+
"quantization_status": "frozen",
|
37 |
+
"sparsity_config": {
|
38 |
+
"format": "dense",
|
39 |
+
"global_sparsity": 0.15880852433171147,
|
40 |
+
"registry_requires_subclass": false,
|
41 |
+
"sparsity_structure": "unstructured"
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"eos_token_id": 2,
|
45 |
+
"hidden_act": "silu",
|
46 |
+
"hidden_size": 4096,
|
47 |
+
"initializer_range": 0.02,
|
48 |
+
"intermediate_size": 14336,
|
49 |
+
"max_position_embeddings": 32768,
|
50 |
+
"model_type": "mixtral",
|
51 |
+
"num_attention_heads": 32,
|
52 |
+
"num_experts_per_tok": 2,
|
53 |
+
"num_hidden_layers": 32,
|
54 |
+
"num_key_value_heads": 8,
|
55 |
+
"num_local_experts": 8,
|
56 |
+
"output_router_logits": false,
|
57 |
+
"rms_norm_eps": 1e-05,
|
58 |
+
"rope_theta": 1000000.0,
|
59 |
+
"router_aux_loss_coef": 0.02,
|
60 |
+
"router_jitter_noise": 0.0,
|
61 |
+
"sliding_window": null,
|
62 |
+
"tie_word_embeddings": false,
|
63 |
+
"torch_dtype": "float16",
|
64 |
+
"transformers_version": "4.43.4",
|
65 |
+
"use_cache": true,
|
66 |
+
"vocab_size": 32000
|
67 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.43.4"
|
6 |
+
}
|
model-00001-of-00005.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:203a9eb11275ff428f84f80fde387fd9096b385a789061e46dc842f46033580d
|
3 |
+
size 4985745808
|
model-00002-of-00005.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84c2deb8163905cf3b65d737eab333a3fc97c4b32b587630471b0bb841f7b110
|
3 |
+
size 4974458544
|
model-00003-of-00005.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5ae426b1d41e617d05b489b9c152ee69631d1834bfce678620ad76f5a30caa7
|
3 |
+
size 4996121080
|
model-00004-of-00005.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eda77f6ebce9f9b21a9367dc39f36be7a61e8daa2e9948350e66f3f3651a2062
|
3 |
+
size 4996121080
|
model-00005-of-00005.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48fccb390f8bbab17213c9680cfd1be9c72ad50aba4f44fbd960913b0564bd8a
|
3 |
+
size 4518570688
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
recipe.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
DEFAULT_stage:
|
2 |
+
DEFAULT_modifiers:
|
3 |
+
GPTQModifier:
|
4 |
+
sequential_update: true
|
5 |
+
targets: Linear
|
6 |
+
ignore: [lm_head]
|
7 |
+
scheme: W4A16
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "</s>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
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 |
+
"additional_special_tokens": [],
|
32 |
+
"bos_token": "<s>",
|
33 |
+
"chat_template": "{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif %}\n {%- if message['role'] == 'user' %}\n {%- if loop.first and system_message is defined %}\n {{- ' [INST] ' + system_message + '\\n\\n' + message['content'] + ' [/INST]' }}\n {%- else %}\n {{- ' [INST] ' + message['content'] + ' [/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {{- ' ' + message['content'] + eos_token}}\n {%- else %}\n {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}\n {%- endif %}\n{%- endfor %}\n",
|
34 |
+
"clean_up_tokenization_spaces": false,
|
35 |
+
"eos_token": "</s>",
|
36 |
+
"legacy": false,
|
37 |
+
"model_max_length": 1000000000000000019884624838656,
|
38 |
+
"pad_token": "</s>",
|
39 |
+
"sp_model_kwargs": {},
|
40 |
+
"spaces_between_special_tokens": false,
|
41 |
+
"tokenizer_class": "LlamaTokenizer",
|
42 |
+
"unk_token": "<unk>",
|
43 |
+
"use_default_system_prompt": false
|
44 |
+
}
|