robertgshaw2 commited on
Commit
310f2a5
·
verified ·
1 Parent(s): d214c8d

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MixtralForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "head_dim": 128,
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
+ "config_groups": {
23
+ "group_0": {
24
+ "input_activations": {
25
+ "actorder": null,
26
+ "block_structure": null,
27
+ "dynamic": true,
28
+ "group_size": null,
29
+ "num_bits": 8,
30
+ "observer": null,
31
+ "observer_kwargs": {},
32
+ "strategy": "token",
33
+ "symmetric": true,
34
+ "type": "float"
35
+ },
36
+ "output_activations": null,
37
+ "targets": [
38
+ "Linear"
39
+ ],
40
+ "weights": {
41
+ "actorder": null,
42
+ "block_structure": null,
43
+ "dynamic": false,
44
+ "group_size": null,
45
+ "num_bits": 8,
46
+ "observer": "minmax",
47
+ "observer_kwargs": {},
48
+ "strategy": "channel",
49
+ "symmetric": true,
50
+ "type": "float"
51
+ }
52
+ }
53
+ },
54
+ "format": "float-quantized",
55
+ "global_compression_ratio": 1.5571329863166834,
56
+ "ignore": [
57
+ "model.layers.0.block_sparse_moe.gate",
58
+ "model.layers.1.block_sparse_moe.gate",
59
+ "model.layers.2.block_sparse_moe.gate",
60
+ "model.layers.3.block_sparse_moe.gate",
61
+ "model.layers.4.block_sparse_moe.gate",
62
+ "model.layers.5.block_sparse_moe.gate",
63
+ "model.layers.6.block_sparse_moe.gate",
64
+ "model.layers.7.block_sparse_moe.gate",
65
+ "model.layers.8.block_sparse_moe.gate",
66
+ "model.layers.9.block_sparse_moe.gate",
67
+ "model.layers.10.block_sparse_moe.gate",
68
+ "model.layers.11.block_sparse_moe.gate",
69
+ "model.layers.12.block_sparse_moe.gate",
70
+ "model.layers.13.block_sparse_moe.gate",
71
+ "model.layers.14.block_sparse_moe.gate",
72
+ "model.layers.15.block_sparse_moe.gate",
73
+ "model.layers.16.block_sparse_moe.gate",
74
+ "model.layers.17.block_sparse_moe.gate",
75
+ "model.layers.18.block_sparse_moe.gate",
76
+ "model.layers.19.block_sparse_moe.gate",
77
+ "model.layers.20.block_sparse_moe.gate",
78
+ "model.layers.21.block_sparse_moe.gate",
79
+ "model.layers.22.block_sparse_moe.gate",
80
+ "model.layers.23.block_sparse_moe.gate",
81
+ "model.layers.24.block_sparse_moe.gate",
82
+ "model.layers.25.block_sparse_moe.gate",
83
+ "model.layers.26.block_sparse_moe.gate",
84
+ "model.layers.27.block_sparse_moe.gate",
85
+ "model.layers.28.block_sparse_moe.gate",
86
+ "model.layers.29.block_sparse_moe.gate",
87
+ "model.layers.30.block_sparse_moe.gate",
88
+ "model.layers.31.block_sparse_moe.gate",
89
+ "lm_head"
90
+ ],
91
+ "kv_cache_scheme": null,
92
+ "quant_method": "compressed-tensors",
93
+ "quantization_status": "compressed"
94
+ },
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.50.1",
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.50.1"
6
+ }
model-00001-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:459e77fd21b0699481404a255c1f0cc35c7641063317a07acff67bda9ea37dd8
3
+ size 4953469880
model-00002-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25bfa7862747755bd378df93a3012c23f70d52e7f80a545ca09dbf2a20cac977
3
+ size 4943020616
model-00003-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fbec67ce4ae5d5c7f5cad47ccd2d69b76e5df2c4fab26bf585175a82341a69a
3
+ size 4985067320
model-00004-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77ea48502215e1de4af2614420f967d2b8c683036056763b835360b7cbdaa75b
3
+ size 4943000328
model-00005-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3b857724d71cd59a7b62801b7892c570141e93edfc6279ae26e1d69ab2d2cf0
3
+ size 4943020808
model-00006-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3635672cb304ea3a911fb6b5a87774d3abdbf58b51499f4535252fd6cd410cb
3
+ size 4985067528
model-00007-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e30f1a6e43607866d4a31da9832ba5fe41ddd357d4fdca93387d06e4fbfada7
3
+ size 4943000328
model-00008-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4748fbe597f028f6323895ad01f77a53d6400b970b3642002f27e61a1f7a6186
3
+ size 4985067528
model-00009-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3439f8cc4b67295f8fd8d152ce634a5e86a685d92464db217f54c737ad715493
3
+ size 4943020816
model-00010-of-00010.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa6f637486bb62909d40b7fab4e7cf04c173692457abb852f49259b8d97d7942
3
+ size 2360191832
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_DYNAMIC
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_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
+ }