Upload folder using huggingface_hub
Browse files- config.json +105 -0
- generation_config.json +6 -0
- model-00001-of-00010.safetensors +3 -0
- model-00002-of-00010.safetensors +3 -0
- model-00003-of-00010.safetensors +3 -0
- model-00004-of-00010.safetensors +3 -0
- model-00005-of-00010.safetensors +3 -0
- model-00006-of-00010.safetensors +3 -0
- model-00007-of-00010.safetensors +3 -0
- model-00008-of-00010.safetensors +3 -0
- model-00009-of-00010.safetensors +3 -0
- model-00010-of-00010.safetensors +3 -0
- model.safetensors.index.json +0 -0
- recipe.yaml +6 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +44 -0
config.json
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/mgoin/.cache/huggingface/hub/models--mistralai--Mixtral-8x7B-Instruct-v0.1/snapshots/41bd4c9e7e4fb318ca40e721131d4933966c2cc1",
|
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": {
|
12 |
+
"actorder": null,
|
13 |
+
"block_structure": null,
|
14 |
+
"dynamic": false,
|
15 |
+
"group_size": null,
|
16 |
+
"num_bits": 8,
|
17 |
+
"observer": "minmax",
|
18 |
+
"observer_kwargs": {},
|
19 |
+
"strategy": "tensor",
|
20 |
+
"symmetric": true,
|
21 |
+
"type": "float"
|
22 |
+
},
|
23 |
+
"output_activations": null,
|
24 |
+
"targets": [
|
25 |
+
"Linear"
|
26 |
+
],
|
27 |
+
"weights": {
|
28 |
+
"actorder": null,
|
29 |
+
"block_structure": null,
|
30 |
+
"dynamic": false,
|
31 |
+
"group_size": null,
|
32 |
+
"num_bits": 8,
|
33 |
+
"observer": "minmax",
|
34 |
+
"observer_kwargs": {},
|
35 |
+
"strategy": "tensor",
|
36 |
+
"symmetric": true,
|
37 |
+
"type": "float"
|
38 |
+
}
|
39 |
+
}
|
40 |
+
},
|
41 |
+
"format": "float-quantized",
|
42 |
+
"global_compression_ratio": 1.5365269302917774,
|
43 |
+
"ignore": [
|
44 |
+
"model.layers.0.block_sparse_moe.gate",
|
45 |
+
"model.layers.1.block_sparse_moe.gate",
|
46 |
+
"model.layers.2.block_sparse_moe.gate",
|
47 |
+
"model.layers.3.block_sparse_moe.gate",
|
48 |
+
"model.layers.4.block_sparse_moe.gate",
|
49 |
+
"model.layers.5.block_sparse_moe.gate",
|
50 |
+
"model.layers.6.block_sparse_moe.gate",
|
51 |
+
"model.layers.7.block_sparse_moe.gate",
|
52 |
+
"model.layers.8.block_sparse_moe.gate",
|
53 |
+
"model.layers.9.block_sparse_moe.gate",
|
54 |
+
"model.layers.10.block_sparse_moe.gate",
|
55 |
+
"model.layers.11.block_sparse_moe.gate",
|
56 |
+
"model.layers.12.block_sparse_moe.gate",
|
57 |
+
"model.layers.13.block_sparse_moe.gate",
|
58 |
+
"model.layers.14.block_sparse_moe.gate",
|
59 |
+
"model.layers.15.block_sparse_moe.gate",
|
60 |
+
"model.layers.16.block_sparse_moe.gate",
|
61 |
+
"model.layers.17.block_sparse_moe.gate",
|
62 |
+
"model.layers.18.block_sparse_moe.gate",
|
63 |
+
"model.layers.19.block_sparse_moe.gate",
|
64 |
+
"model.layers.20.block_sparse_moe.gate",
|
65 |
+
"model.layers.21.block_sparse_moe.gate",
|
66 |
+
"model.layers.22.block_sparse_moe.gate",
|
67 |
+
"model.layers.23.block_sparse_moe.gate",
|
68 |
+
"model.layers.24.block_sparse_moe.gate",
|
69 |
+
"model.layers.25.block_sparse_moe.gate",
|
70 |
+
"model.layers.26.block_sparse_moe.gate",
|
71 |
+
"model.layers.27.block_sparse_moe.gate",
|
72 |
+
"model.layers.28.block_sparse_moe.gate",
|
73 |
+
"model.layers.29.block_sparse_moe.gate",
|
74 |
+
"model.layers.30.block_sparse_moe.gate",
|
75 |
+
"model.layers.31.block_sparse_moe.gate",
|
76 |
+
"lm_head"
|
77 |
+
],
|
78 |
+
"kv_cache_scheme": null,
|
79 |
+
"quant_method": "compressed-tensors",
|
80 |
+
"quantization_status": "compressed"
|
81 |
+
},
|
82 |
+
"eos_token_id": 2,
|
83 |
+
"hidden_act": "silu",
|
84 |
+
"hidden_size": 4096,
|
85 |
+
"initializer_range": 0.02,
|
86 |
+
"intermediate_size": 14336,
|
87 |
+
"max_position_embeddings": 32768,
|
88 |
+
"model_type": "mixtral",
|
89 |
+
"num_attention_heads": 32,
|
90 |
+
"num_experts_per_tok": 2,
|
91 |
+
"num_hidden_layers": 32,
|
92 |
+
"num_key_value_heads": 8,
|
93 |
+
"num_local_experts": 8,
|
94 |
+
"output_router_logits": false,
|
95 |
+
"rms_norm_eps": 1e-05,
|
96 |
+
"rope_theta": 1000000.0,
|
97 |
+
"router_aux_loss_coef": 0.02,
|
98 |
+
"router_jitter_noise": 0.0,
|
99 |
+
"sliding_window": null,
|
100 |
+
"tie_word_embeddings": false,
|
101 |
+
"torch_dtype": "bfloat16",
|
102 |
+
"transformers_version": "4.45.0.dev0",
|
103 |
+
"use_cache": true,
|
104 |
+
"vocab_size": 32000
|
105 |
+
}
|
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.45.0.dev0"
|
6 |
+
}
|
model-00001-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fd4da6302e2b93a8bf632a085dc2530ffcd6c5998e905726041bd6baa85b93a1
|
3 |
+
size 4951723964
|
model-00002-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1db248913e4c1b9cd22e5764143eb5acb6170fd13640591b3bcf54fca01fcec7
|
3 |
+
size 4999891908
|
model-00003-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66e13f26d008eb50936f509a5fb549fc4d6f9a61211125faff623f8faa782c69
|
3 |
+
size 4983198264
|
model-00004-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03c76189b05b0eb2afe13cdc84fe07af6e3447b9de44ad5bc29ae0bb060a4360
|
3 |
+
size 4999892156
|
model-00005-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb613c2b58afae947bb49df18989d43613012bb2ef73e519e3f5857bcf24ac08
|
3 |
+
size 4999908932
|
model-00006-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a190a73093e91d2b6d0a1c8806da3353ae644b5e155c0e9ea6902356f98fb370
|
3 |
+
size 4983181632
|
model-00007-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0edb4d24f4fd63b631107787c8a3563773c0ed9fd593fcf34f1e13184564e35f
|
3 |
+
size 4999892284
|
model-00008-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f3c0b7dfc9892b99cda593f4c78778a07271289ade5c39b83eba2cd76441330
|
3 |
+
size 4983198472
|
model-00009-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0d631ed91138e7828da6d57d7afc50a749dbde7f8885346d125d369d38c3b52
|
3 |
+
size 4999892236
|
model-00010-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16182f0064616de08c976c9f7f4fda06f82ea062f76e7ff0a4e5d2c37c0bd0fc
|
3 |
+
size 2065815152
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
recipe.yaml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
DEFAULT_stage:
|
2 |
+
DEFAULT_modifiers:
|
3 |
+
QuantizationModifier:
|
4 |
+
ignore: [lm_head, 're:.*block_sparse_moe.gate']
|
5 |
+
targets: Linear
|
6 |
+
scheme: FP8
|
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.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
3 |
+
size 493443
|
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 |
+
}
|