skirano commited on
Commit
c10205a
1 Parent(s): e7ab811

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - Mixtral
7
+ - instruct
8
+ - finetune
9
+ - chatml
10
+ - DPO
11
+ - RLHF
12
+ - gpt4
13
+ - synthetic data
14
+ - distillation
15
+ - mlx
16
+ - mlx
17
+ base_model: mistralai/Mixtral-8x7B-v0.1
18
+ model-index:
19
+ - name: Nous-Hermes-2-Mixtral-8x7B-DPO
20
+ results: []
21
+ ---
22
+
23
+ # mlx-community/NousHermes-Mixtral-8x7B-Reddit-mlx
24
+ This model was converted to MLX format from [`mlx-community/Nous-Hermes-2-Mixtral-8x7B-DPO-4bit`]().
25
+ Refer to the [original model card](https://huggingface.co/mlx-community/Nous-Hermes-2-Mixtral-8x7B-DPO-4bit) for more details on the model.
26
+ ## Use with mlx
27
+
28
+ ```bash
29
+ pip install mlx-lm
30
+ ```
31
+
32
+ ```python
33
+ from mlx_lm import load, generate
34
+
35
+ model, tokenizer = load("mlx-community/NousHermes-Mixtral-8x7B-Reddit-mlx")
36
+ response = generate(model, tokenizer, prompt="hello", verbose=True)
37
+ ```
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32000,
3
+ "<|im_start|>": 32001
4
+ }
config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 32002,
3
+ "max_position_embeddings": 32768,
4
+ "hidden_size": 4096,
5
+ "intermediate_size": 14336,
6
+ "num_hidden_layers": 32,
7
+ "num_attention_heads": 32,
8
+ "sliding_window": null,
9
+ "num_key_value_heads": 8,
10
+ "hidden_act": "silu",
11
+ "initializer_range": 0.02,
12
+ "rms_norm_eps": 1e-05,
13
+ "use_cache": false,
14
+ "rope_theta": 1000000.0,
15
+ "attention_dropout": 0.0,
16
+ "num_experts_per_tok": 2,
17
+ "num_local_experts": 8,
18
+ "output_router_logits": false,
19
+ "router_aux_loss_coef": 0.02,
20
+ "return_dict": true,
21
+ "output_hidden_states": false,
22
+ "output_attentions": false,
23
+ "torchscript": false,
24
+ "torch_dtype": "bfloat16",
25
+ "use_bfloat16": false,
26
+ "tf_legacy_loss": false,
27
+ "pruned_heads": {},
28
+ "tie_word_embeddings": false,
29
+ "chunk_size_feed_forward": 0,
30
+ "is_encoder_decoder": false,
31
+ "is_decoder": false,
32
+ "cross_attention_hidden_size": null,
33
+ "add_cross_attention": false,
34
+ "tie_encoder_decoder": false,
35
+ "max_length": 20,
36
+ "min_length": 0,
37
+ "do_sample": false,
38
+ "early_stopping": false,
39
+ "num_beams": 1,
40
+ "num_beam_groups": 1,
41
+ "diversity_penalty": 0.0,
42
+ "temperature": 1.0,
43
+ "top_k": 50,
44
+ "top_p": 1.0,
45
+ "typical_p": 1.0,
46
+ "repetition_penalty": 1.0,
47
+ "length_penalty": 1.0,
48
+ "no_repeat_ngram_size": 0,
49
+ "encoder_no_repeat_ngram_size": 0,
50
+ "bad_words_ids": null,
51
+ "num_return_sequences": 1,
52
+ "output_scores": false,
53
+ "return_dict_in_generate": false,
54
+ "forced_bos_token_id": null,
55
+ "forced_eos_token_id": null,
56
+ "remove_invalid_values": false,
57
+ "exponential_decay_length_penalty": null,
58
+ "suppress_tokens": null,
59
+ "begin_suppress_tokens": null,
60
+ "architectures": [
61
+ "MixtralForCausalLM"
62
+ ],
63
+ "finetuning_task": null,
64
+ "id2label": {
65
+ "0": "LABEL_0",
66
+ "1": "LABEL_1"
67
+ },
68
+ "label2id": {
69
+ "LABEL_0": 0,
70
+ "LABEL_1": 1
71
+ },
72
+ "tokenizer_class": null,
73
+ "prefix": null,
74
+ "bos_token_id": 1,
75
+ "pad_token_id": null,
76
+ "eos_token_id": 32000,
77
+ "sep_token_id": null,
78
+ "decoder_start_token_id": null,
79
+ "task_specific_params": null,
80
+ "problem_type": null,
81
+ "_name_or_path": "/Users/skirano/.cache/huggingface/hub/models--mlx-community--Nous-Hermes-2-Mixtral-8x7B-DPO-4bit/snapshots/f1d96ffbc67703b617093d7616ba3b49ea612b04",
82
+ "transformers_version": "4.37.2",
83
+ "model_type": "mixtral",
84
+ "quantization": {
85
+ "group_size": 64,
86
+ "bits": 4
87
+ }
88
+ }
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21e7cfe239ede3099e59affba7e7598ec4c1bceb4266f6a25b741d0950965d68
3
+ size 5349428687
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66c38f40eb85081e8f0066efe87147df78bec333e55ab6e0f9f3c3f07d2b4a32
3
+ size 5360883248
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54bd4e53dfe297ed3fd59e82c7fcb2d63017ae6c247db712cf5a17e52a896bba
3
+ size 5351529568
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a93e3fff9877d5c9fd13fb9f7c8b07ae1f5dfcdecc7165f583a28a416c66abbc
3
+ size 5360883534
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc432e2b0d1a72fe441d96d8256b72b7fd1d4be92ae81d35c6c2123b7336deb8
3
+ size 5226702496
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,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
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,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "32000": {
30
+ "content": "<|im_end|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<|im_start|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": false
44
+ }
45
+ },
46
+ "additional_special_tokens": [],
47
+ "bos_token": "<s>",
48
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
49
+ "clean_up_tokenization_spaces": false,
50
+ "eos_token": "<|im_end|>",
51
+ "legacy": true,
52
+ "model_max_length": 1000000000000000019884624838656,
53
+ "pad_token": "</s>",
54
+ "sp_model_kwargs": {},
55
+ "spaces_between_special_tokens": false,
56
+ "tokenizer_class": "LlamaTokenizer",
57
+ "trust_remote_code": false,
58
+ "unk_token": "<unk>",
59
+ "use_default_system_prompt": false,
60
+ "use_fast": true
61
+ }