sadkins65 commited on
Commit
82046e5
·
verified ·
1 Parent(s): f6149e6

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/sadkins/.cache/huggingface/hub/models--mistralai--Mixtral-8x7B-Instruct-v0.1/snapshots/67c3bf6b0aa8b6670f892629331d314f9af0b522",
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": null,
12
+ "output_activations": null,
13
+ "targets": [
14
+ "Linear"
15
+ ],
16
+ "weights": {
17
+ "block_structure": null,
18
+ "dynamic": false,
19
+ "group_size": null,
20
+ "num_bits": 4,
21
+ "observer": "minmax",
22
+ "observer_kwargs": {},
23
+ "strategy": "channel",
24
+ "symmetric": true,
25
+ "type": "int"
26
+ }
27
+ }
28
+ },
29
+ "format": "pack-quantized",
30
+ "global_compression_ratio": 2.099764518978514,
31
+ "ignore": [
32
+ "model.layers.0.block_sparse_moe.gate",
33
+ "model.layers.1.block_sparse_moe.gate",
34
+ "model.layers.2.block_sparse_moe.gate",
35
+ "model.layers.3.block_sparse_moe.gate",
36
+ "model.layers.4.block_sparse_moe.gate",
37
+ "model.layers.5.block_sparse_moe.gate",
38
+ "model.layers.6.block_sparse_moe.gate",
39
+ "model.layers.7.block_sparse_moe.gate",
40
+ "model.layers.8.block_sparse_moe.gate",
41
+ "model.layers.9.block_sparse_moe.gate",
42
+ "model.layers.10.block_sparse_moe.gate",
43
+ "model.layers.11.block_sparse_moe.gate",
44
+ "model.layers.12.block_sparse_moe.gate",
45
+ "model.layers.13.block_sparse_moe.gate",
46
+ "model.layers.14.block_sparse_moe.gate",
47
+ "model.layers.15.block_sparse_moe.gate",
48
+ "model.layers.16.block_sparse_moe.gate",
49
+ "model.layers.17.block_sparse_moe.gate",
50
+ "model.layers.18.block_sparse_moe.gate",
51
+ "model.layers.19.block_sparse_moe.gate",
52
+ "model.layers.20.block_sparse_moe.gate",
53
+ "model.layers.21.block_sparse_moe.gate",
54
+ "model.layers.22.block_sparse_moe.gate",
55
+ "model.layers.23.block_sparse_moe.gate",
56
+ "model.layers.24.block_sparse_moe.gate",
57
+ "model.layers.25.block_sparse_moe.gate",
58
+ "model.layers.26.block_sparse_moe.gate",
59
+ "model.layers.27.block_sparse_moe.gate",
60
+ "model.layers.28.block_sparse_moe.gate",
61
+ "model.layers.29.block_sparse_moe.gate",
62
+ "model.layers.30.block_sparse_moe.gate",
63
+ "model.layers.31.block_sparse_moe.gate",
64
+ "lm_head"
65
+ ],
66
+ "kv_cache_scheme": null,
67
+ "quant_method": "compressed-tensors",
68
+ "quantization_status": "frozen",
69
+ "sparsity_config": {
70
+ "format": "dense",
71
+ "global_sparsity": 0.22156919922711465,
72
+ "registry_requires_subclass": false,
73
+ "sparsity_structure": "unstructured"
74
+ }
75
+ },
76
+ "eos_token_id": 2,
77
+ "hidden_act": "silu",
78
+ "hidden_size": 4096,
79
+ "initializer_range": 0.02,
80
+ "intermediate_size": 14336,
81
+ "max_position_embeddings": 32768,
82
+ "model_type": "mixtral",
83
+ "num_attention_heads": 32,
84
+ "num_experts_per_tok": 2,
85
+ "num_hidden_layers": 32,
86
+ "num_key_value_heads": 8,
87
+ "num_local_experts": 8,
88
+ "output_router_logits": false,
89
+ "rms_norm_eps": 1e-05,
90
+ "rope_theta": 1000000.0,
91
+ "router_aux_loss_coef": 0.02,
92
+ "router_jitter_noise": 0.0,
93
+ "sliding_window": null,
94
+ "tie_word_embeddings": false,
95
+ "torch_dtype": "float16",
96
+ "transformers_version": "4.43.4",
97
+ "use_cache": true,
98
+ "vocab_size": 32000
99
+ }
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.43.4"
6
+ }
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abc0e6f9311746c0ff357d85525e0f1461553a0e01eda3b401ce0800c3153e8b
3
+ size 4993307552
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff751a2ce52cc4e0e28366ec8b15cc723ab911413eadddd4f80bf2f179760980
3
+ size 4995621584
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9744c9b7b6c769a65b395b7302b88714a3c04c62fd4510cc94b6aa74ef490c4
3
+ size 4995621888
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f2e600e152f1a9d586b60ef461823a11dc764737e6a87742b63255cafc44cd5
3
+ size 4995621888
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b8ab909aff7f1840efdbf65101b579a0e1d8b881957e8c65119394385ff62d2
3
+ size 3784209544
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
recipe.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ DEFAULT_stage:
2
+ DEFAULT_modifiers:
3
+ GPTQModifier:
4
+ sequential_update: true
5
+ targets: Linear
6
+ ignore: [lm_head, 're:.*block_sparse_moe\.gate']
7
+ scheme: W4A16
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_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
+ }