Eldar Kurtic
commited on
Commit
·
bb81080
1
Parent(s):
e9774db
add model
Browse files- .gitattributes +1 -0
- config.json +106 -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 +23 -0
- tokenizer.json +3 -0
- tokenizer.model +3 -0
- tokenizer_config.json +45 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
3 |
+
"architectures": [
|
4 |
+
"MixtralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"head_dim": 128,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 4096,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 14336,
|
14 |
+
"max_position_embeddings": 32768,
|
15 |
+
"model_type": "mixtral",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_experts_per_tok": 2,
|
18 |
+
"num_hidden_layers": 32,
|
19 |
+
"num_key_value_heads": 8,
|
20 |
+
"num_local_experts": 8,
|
21 |
+
"output_router_logits": false,
|
22 |
+
"quantization_config": {
|
23 |
+
"config_groups": {
|
24 |
+
"group_0": {
|
25 |
+
"input_activations": {
|
26 |
+
"actorder": null,
|
27 |
+
"block_structure": null,
|
28 |
+
"dynamic": false,
|
29 |
+
"group_size": null,
|
30 |
+
"num_bits": 8,
|
31 |
+
"observer": "minmax",
|
32 |
+
"observer_kwargs": {},
|
33 |
+
"strategy": "tensor",
|
34 |
+
"symmetric": true,
|
35 |
+
"type": "float"
|
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": "tensor",
|
50 |
+
"symmetric": true,
|
51 |
+
"type": "float"
|
52 |
+
}
|
53 |
+
}
|
54 |
+
},
|
55 |
+
"format": "float-quantized",
|
56 |
+
"global_compression_ratio": 1.557213913701282,
|
57 |
+
"ignore": [
|
58 |
+
"model.layers.0.block_sparse_moe.gate",
|
59 |
+
"model.layers.1.block_sparse_moe.gate",
|
60 |
+
"model.layers.2.block_sparse_moe.gate",
|
61 |
+
"model.layers.3.block_sparse_moe.gate",
|
62 |
+
"model.layers.4.block_sparse_moe.gate",
|
63 |
+
"model.layers.5.block_sparse_moe.gate",
|
64 |
+
"model.layers.6.block_sparse_moe.gate",
|
65 |
+
"model.layers.7.block_sparse_moe.gate",
|
66 |
+
"model.layers.8.block_sparse_moe.gate",
|
67 |
+
"model.layers.9.block_sparse_moe.gate",
|
68 |
+
"model.layers.10.block_sparse_moe.gate",
|
69 |
+
"model.layers.11.block_sparse_moe.gate",
|
70 |
+
"model.layers.12.block_sparse_moe.gate",
|
71 |
+
"model.layers.13.block_sparse_moe.gate",
|
72 |
+
"model.layers.14.block_sparse_moe.gate",
|
73 |
+
"model.layers.15.block_sparse_moe.gate",
|
74 |
+
"model.layers.16.block_sparse_moe.gate",
|
75 |
+
"model.layers.17.block_sparse_moe.gate",
|
76 |
+
"model.layers.18.block_sparse_moe.gate",
|
77 |
+
"model.layers.19.block_sparse_moe.gate",
|
78 |
+
"model.layers.20.block_sparse_moe.gate",
|
79 |
+
"model.layers.21.block_sparse_moe.gate",
|
80 |
+
"model.layers.22.block_sparse_moe.gate",
|
81 |
+
"model.layers.23.block_sparse_moe.gate",
|
82 |
+
"model.layers.24.block_sparse_moe.gate",
|
83 |
+
"model.layers.25.block_sparse_moe.gate",
|
84 |
+
"model.layers.26.block_sparse_moe.gate",
|
85 |
+
"model.layers.27.block_sparse_moe.gate",
|
86 |
+
"model.layers.28.block_sparse_moe.gate",
|
87 |
+
"model.layers.29.block_sparse_moe.gate",
|
88 |
+
"model.layers.30.block_sparse_moe.gate",
|
89 |
+
"model.layers.31.block_sparse_moe.gate",
|
90 |
+
"lm_head"
|
91 |
+
],
|
92 |
+
"kv_cache_scheme": null,
|
93 |
+
"quant_method": "compressed-tensors",
|
94 |
+
"quantization_status": "compressed"
|
95 |
+
},
|
96 |
+
"rms_norm_eps": 1e-05,
|
97 |
+
"rope_theta": 1000000.0,
|
98 |
+
"router_aux_loss_coef": 0.02,
|
99 |
+
"router_jitter_noise": 0.0,
|
100 |
+
"sliding_window": null,
|
101 |
+
"tie_word_embeddings": false,
|
102 |
+
"torch_dtype": "bfloat16",
|
103 |
+
"transformers_version": "4.48.3",
|
104 |
+
"use_cache": true,
|
105 |
+
"vocab_size": 32000
|
106 |
+
}
|
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.48.3"
|
6 |
+
}
|
model-00001-of-00010.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:85ef1af4911fe0a431c6e770f66273795418b9ed6670ffd363974569c08ec8f9
|
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:f31ef2b505179c06a114bb00ef3e343c8d1df93e0353d86fdec19da3e283f61b
|
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:7d8bcf2aa18fc3618c099026402b96da810bbf85dd02089435962bbda8fcda9c
|
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:328229876c7e86d2852ec3d6e9717e18c0d5ff876c2ca0ea6ca2166eb3bb56e9
|
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:80c5c558330e24513d18a311ab49ea0c7e5a81c527853e45180a0c0834aa7153
|
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:92b9597cee89e904b3957717a2bc4199645ccf64f2d5b61d71aeeaf61b3e39d4
|
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:34d14bd053b49e0efee1eb3e0804919d25dc41681b5a5aef1cb3a2f2f5f2c394
|
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:92d6aa3e29d831eb8d9e1fc0a19aecb074b329a2d75d144441675dce631726aa
|
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:41682f27c3a47c60abfc7d8ddd9548aef19d86f1f3e346603e3998a14da3703e
|
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:cbb1e8b4b1b50af852e9793dce909550648d773e7bec81594f60fed59e2bc212
|
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,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:835cf54bb933752267652500a9243a9002107bbb4501b99f8d2f46ccfdad2567
|
3 |
+
size 3505608
|
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,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"extra_special_tokens": {},
|
37 |
+
"legacy": false,
|
38 |
+
"model_max_length": 1000000000000000019884624838656,
|
39 |
+
"pad_token": null,
|
40 |
+
"sp_model_kwargs": {},
|
41 |
+
"spaces_between_special_tokens": false,
|
42 |
+
"tokenizer_class": "LlamaTokenizer",
|
43 |
+
"unk_token": "<unk>",
|
44 |
+
"use_default_system_prompt": false
|
45 |
+
}
|