comaniac commited on
Commit
53b4f6e
1 Parent(s): 19d1f32

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Mixtral-8x7B-Instruct-v0.1-FP8-v1
2
+
3
+ * Weights and activations are per-tensor quantized to float8_e4m3.
4
+ * Quantization with AutoFP8.
5
+ * Calibration dataset: Ultrachat-200k
6
+ * Samples: 4096
7
+ * Sequence length: 8192
8
+
9
+ ## Evaluation
10
+
11
+ TBA
config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "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
+ "ignored_layers": [
24
+ "model.layers.25.block_sparse_moe.gate",
25
+ "model.layers.2.block_sparse_moe.gate",
26
+ "model.layers.4.block_sparse_moe.gate",
27
+ "model.layers.26.block_sparse_moe.gate",
28
+ "model.layers.27.block_sparse_moe.gate",
29
+ "model.layers.20.block_sparse_moe.gate",
30
+ "model.layers.1.block_sparse_moe.gate",
31
+ "model.layers.30.block_sparse_moe.gate",
32
+ "model.layers.0.block_sparse_moe.gate",
33
+ "model.layers.5.block_sparse_moe.gate",
34
+ "model.layers.31.block_sparse_moe.gate",
35
+ "model.layers.12.block_sparse_moe.gate",
36
+ "model.layers.10.block_sparse_moe.gate",
37
+ "model.layers.19.block_sparse_moe.gate",
38
+ "model.layers.13.block_sparse_moe.gate",
39
+ "model.layers.24.block_sparse_moe.gate",
40
+ "model.layers.28.block_sparse_moe.gate",
41
+ "lm_head",
42
+ "model.layers.6.block_sparse_moe.gate",
43
+ "model.layers.15.block_sparse_moe.gate",
44
+ "model.layers.16.block_sparse_moe.gate",
45
+ "model.layers.17.block_sparse_moe.gate",
46
+ "model.layers.23.block_sparse_moe.gate",
47
+ "model.layers.7.block_sparse_moe.gate",
48
+ "model.layers.11.block_sparse_moe.gate",
49
+ "model.layers.22.block_sparse_moe.gate",
50
+ "model.layers.18.block_sparse_moe.gate",
51
+ "model.layers.29.block_sparse_moe.gate",
52
+ "model.layers.9.block_sparse_moe.gate",
53
+ "model.layers.21.block_sparse_moe.gate",
54
+ "model.layers.3.block_sparse_moe.gate",
55
+ "model.layers.8.block_sparse_moe.gate",
56
+ "model.layers.14.block_sparse_moe.gate"
57
+ ],
58
+ "quant_method": "fp8"
59
+ },
60
+ "rms_norm_eps": 1e-05,
61
+ "rope_theta": 1000000.0,
62
+ "router_aux_loss_coef": 0.02,
63
+ "router_jitter_noise": 0.0,
64
+ "sliding_window": null,
65
+ "tie_word_embeddings": false,
66
+ "torch_dtype": "bfloat16",
67
+ "transformers_version": "4.40.2",
68
+ "use_cache": true,
69
+ "vocab_size": 32000
70
+ }
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.40.2"
6
+ }
model-00001-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:212ad34d793d2085e294b3393779389256049339c13ddddd37da133089d5fd91
3
+ size 4951721656
model-00002-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:566a1e38dcd44e1aa5f4be968c23c0e710dd510cee58671a5397817cd4445cd9
3
+ size 4999891208
model-00003-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca950705c99be774b72d30064922fda14449034b2337ec4db2ffc46c94722547
3
+ size 4983197192
model-00004-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b94b11287bc1213889d3a5003f4d74774ad7f6207bbdbe6924015409048a3d77
3
+ size 4999891496
model-00005-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:063c13d36917eacef8647824f561e6586649d9124ba379b893a70991034ab416
3
+ size 4999908096
model-00006-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d824cf6a402c113085628c7b48ebeb15d8f704d05aa6eb4e80bf33f94e198f31
3
+ size 4983180880
model-00007-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39242f6ab907535c5085c947e42c3a098a6ec6d5fee1e0b94f1950964fb9fe95
3
+ size 4999891496
model-00008-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d163c3994a85f160eb81b8a3fccdbe8eac8adf4ea1285306413651fd78a9e00
3
+ size 4983197472
model-00009-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47912e99ecd9790ffd972cbb677ba7f12e43f4d1bcad69f5e7b08344dd2361af
3
+ size 4999891496
model-00010-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7980fd3ebb09ba40fe1df4bdacb843f6954795af7bd644330734ac149b0d03f
3
+ size 2065814256
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.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,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": null,
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }