Upload folder using huggingface_hub
Browse files- config.json +112 -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
- special_tokens_map.json +23 -0
- tokenizer.model +3 -0
- tokenizer_config.json +44 -0
config.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/model/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 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 4096,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 14336,
|
| 13 |
+
"max_position_embeddings": 32768,
|
| 14 |
+
"model_type": "mixtral",
|
| 15 |
+
"num_attention_heads": 32,
|
| 16 |
+
"num_experts_per_tok": 2,
|
| 17 |
+
"num_hidden_layers": 32,
|
| 18 |
+
"num_key_value_heads": 8,
|
| 19 |
+
"num_local_experts": 8,
|
| 20 |
+
"output_router_logits": false,
|
| 21 |
+
"quantization_config": {
|
| 22 |
+
"activation_scheme": "static",
|
| 23 |
+
"export": {
|
| 24 |
+
"kv_cache_group": [
|
| 25 |
+
"*k_proj",
|
| 26 |
+
"*v_proj"
|
| 27 |
+
],
|
| 28 |
+
"pack_method": "reorder",
|
| 29 |
+
"weight_format": "real_quantized",
|
| 30 |
+
"weight_merge_groups": null
|
| 31 |
+
},
|
| 32 |
+
"ignored_layers": [
|
| 33 |
+
"model.layers.0.self_attn.o_proj",
|
| 34 |
+
"model.layers.0.block_sparse_moe.gate",
|
| 35 |
+
"model.layers.1.self_attn.o_proj",
|
| 36 |
+
"model.layers.1.block_sparse_moe.gate",
|
| 37 |
+
"model.layers.2.self_attn.o_proj",
|
| 38 |
+
"model.layers.2.block_sparse_moe.gate",
|
| 39 |
+
"model.layers.3.self_attn.o_proj",
|
| 40 |
+
"model.layers.3.block_sparse_moe.gate",
|
| 41 |
+
"model.layers.4.self_attn.o_proj",
|
| 42 |
+
"model.layers.4.block_sparse_moe.gate",
|
| 43 |
+
"model.layers.5.self_attn.o_proj",
|
| 44 |
+
"model.layers.5.block_sparse_moe.gate",
|
| 45 |
+
"model.layers.6.self_attn.o_proj",
|
| 46 |
+
"model.layers.6.block_sparse_moe.gate",
|
| 47 |
+
"model.layers.7.self_attn.o_proj",
|
| 48 |
+
"model.layers.7.block_sparse_moe.gate",
|
| 49 |
+
"model.layers.8.self_attn.o_proj",
|
| 50 |
+
"model.layers.8.block_sparse_moe.gate",
|
| 51 |
+
"model.layers.9.self_attn.o_proj",
|
| 52 |
+
"model.layers.9.block_sparse_moe.gate",
|
| 53 |
+
"model.layers.10.self_attn.o_proj",
|
| 54 |
+
"model.layers.10.block_sparse_moe.gate",
|
| 55 |
+
"model.layers.11.self_attn.o_proj",
|
| 56 |
+
"model.layers.11.block_sparse_moe.gate",
|
| 57 |
+
"model.layers.12.self_attn.o_proj",
|
| 58 |
+
"model.layers.12.block_sparse_moe.gate",
|
| 59 |
+
"model.layers.13.self_attn.o_proj",
|
| 60 |
+
"model.layers.13.block_sparse_moe.gate",
|
| 61 |
+
"model.layers.14.self_attn.o_proj",
|
| 62 |
+
"model.layers.14.block_sparse_moe.gate",
|
| 63 |
+
"model.layers.15.self_attn.o_proj",
|
| 64 |
+
"model.layers.15.block_sparse_moe.gate",
|
| 65 |
+
"model.layers.16.self_attn.o_proj",
|
| 66 |
+
"model.layers.16.block_sparse_moe.gate",
|
| 67 |
+
"model.layers.17.self_attn.o_proj",
|
| 68 |
+
"model.layers.17.block_sparse_moe.gate",
|
| 69 |
+
"model.layers.18.self_attn.o_proj",
|
| 70 |
+
"model.layers.18.block_sparse_moe.gate",
|
| 71 |
+
"model.layers.19.self_attn.o_proj",
|
| 72 |
+
"model.layers.19.block_sparse_moe.gate",
|
| 73 |
+
"model.layers.20.self_attn.o_proj",
|
| 74 |
+
"model.layers.20.block_sparse_moe.gate",
|
| 75 |
+
"model.layers.21.self_attn.o_proj",
|
| 76 |
+
"model.layers.21.block_sparse_moe.gate",
|
| 77 |
+
"model.layers.22.self_attn.o_proj",
|
| 78 |
+
"model.layers.22.block_sparse_moe.gate",
|
| 79 |
+
"model.layers.23.self_attn.o_proj",
|
| 80 |
+
"model.layers.23.block_sparse_moe.gate",
|
| 81 |
+
"model.layers.24.self_attn.o_proj",
|
| 82 |
+
"model.layers.24.block_sparse_moe.gate",
|
| 83 |
+
"model.layers.25.self_attn.o_proj",
|
| 84 |
+
"model.layers.25.block_sparse_moe.gate",
|
| 85 |
+
"model.layers.26.self_attn.o_proj",
|
| 86 |
+
"model.layers.26.block_sparse_moe.gate",
|
| 87 |
+
"model.layers.27.self_attn.o_proj",
|
| 88 |
+
"model.layers.27.block_sparse_moe.gate",
|
| 89 |
+
"model.layers.28.self_attn.o_proj",
|
| 90 |
+
"model.layers.28.block_sparse_moe.gate",
|
| 91 |
+
"model.layers.29.self_attn.o_proj",
|
| 92 |
+
"model.layers.29.block_sparse_moe.gate",
|
| 93 |
+
"model.layers.30.self_attn.o_proj",
|
| 94 |
+
"model.layers.30.block_sparse_moe.gate",
|
| 95 |
+
"model.layers.31.self_attn.o_proj",
|
| 96 |
+
"model.layers.31.block_sparse_moe.gate",
|
| 97 |
+
"lm_head"
|
| 98 |
+
],
|
| 99 |
+
"kv_cache_scheme": "static",
|
| 100 |
+
"quant_method": "fp8"
|
| 101 |
+
},
|
| 102 |
+
"rms_norm_eps": 1e-05,
|
| 103 |
+
"rope_theta": 1000000.0,
|
| 104 |
+
"router_aux_loss_coef": 0.02,
|
| 105 |
+
"router_jitter_noise": 0.0,
|
| 106 |
+
"sliding_window": null,
|
| 107 |
+
"tie_word_embeddings": false,
|
| 108 |
+
"torch_dtype": "float16",
|
| 109 |
+
"transformers_version": "4.46.3",
|
| 110 |
+
"use_cache": true,
|
| 111 |
+
"vocab_size": 32000
|
| 112 |
+
}
|
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.46.3"
|
| 6 |
+
}
|
model-00001-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bcb950c9534c37a1a23de2cbc4cee35a1d8190f2e85aa2102b8e33242afef858
|
| 3 |
+
size 4960111600
|
model-00002-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d681596f0d5034a261fa558709e8901cc5a5898c5aa9417a8307a47d7c0242d6
|
| 3 |
+
size 4991502916
|
model-00003-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f00b5e2ce10654caf281d8ff1e641b53dd3cc7917bf6f4d8b578d8c6d50bc986
|
| 3 |
+
size 4991519940
|
model-00004-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2292011a9f7aae4705836f87599d765b4b34cf44330ab4ce2ee007a07683f2b9
|
| 3 |
+
size 4991569892
|
model-00005-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9056294f3a654d736cb87a7f6e96e2637d2081891855a83be34c8a69d36a9a7c
|
| 3 |
+
size 4991503324
|
model-00006-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df81de3e2a20de00ac63c9e12707b4e2caf099a3325b582e3a350056d73ba1ae
|
| 3 |
+
size 4991586796
|
model-00007-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e325f381fc0a185a3506e34dd066bab362ecfddaa3626e80c5ec37283f8404d3
|
| 3 |
+
size 4991503204
|
model-00008-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef36f466071df886a0cac5ea8f338c4699de89cd6d9ff608576bb5a5b1b5d383
|
| 3 |
+
size 4991520228
|
model-00009-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8bf4c7d74cf9125239b7b32587e4b2fefb7a99e3bd71728cae5c4e80a551f84
|
| 3 |
+
size 4991569892
|
model-00010-of-00010.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35ef3bf088cb3893f98692dbc3504ae848ba3591274d124b3314d6936b718f7c
|
| 3 |
+
size 2611077968
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
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.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": null,
|
| 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 |
+
}
|