MLX
English
mistral
mc0ps commited on
Commit
48b199e
1 Parent(s): b6b489f

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - mlx
7
+ datasets:
8
+ - ehartford/dolphin
9
+ - jondurbin/airoboros-2.2.1
10
+ - ehartford/dolphin-coder
11
+ - teknium/openhermes
12
+ - ise-uiuc/Magicoder-OSS-Instruct-75K
13
+ - ise-uiuc/Magicoder-Evol-Instruct-110K
14
+ - LDJnr/Capybara
15
+ ---
16
+
17
+ # mlx-community/dolphin-2.6-mistral-7b-dpo-laser-4bit-mlx
18
+ This model was converted to MLX format from [`cognitivecomputations/dolphin-2.6-mistral-7b-dpo-laser`]().
19
+ Refer to the [original model card](https://huggingface.co/cognitivecomputations/dolphin-2.6-mistral-7b-dpo-laser) for more details on the model.
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("mlx-community/dolphin-2.6-mistral-7b-dpo-laser-4bit-mlx")
30
+ response = generate(model, tokenizer, prompt="hello", verbose=True)
31
+ ```
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<|im_start|>": 32000
3
+ }
config.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 32001,
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": 10000.0,
15
+ "attention_dropout": 0.0,
16
+ "return_dict": true,
17
+ "output_hidden_states": false,
18
+ "output_attentions": false,
19
+ "torchscript": false,
20
+ "torch_dtype": "bfloat16",
21
+ "use_bfloat16": false,
22
+ "tf_legacy_loss": false,
23
+ "pruned_heads": {},
24
+ "tie_word_embeddings": false,
25
+ "is_encoder_decoder": false,
26
+ "is_decoder": false,
27
+ "cross_attention_hidden_size": null,
28
+ "add_cross_attention": false,
29
+ "tie_encoder_decoder": false,
30
+ "max_length": 20,
31
+ "min_length": 0,
32
+ "do_sample": false,
33
+ "early_stopping": false,
34
+ "num_beams": 1,
35
+ "num_beam_groups": 1,
36
+ "diversity_penalty": 0.0,
37
+ "temperature": 1.0,
38
+ "top_k": 50,
39
+ "top_p": 1.0,
40
+ "typical_p": 1.0,
41
+ "repetition_penalty": 1.0,
42
+ "length_penalty": 1.0,
43
+ "no_repeat_ngram_size": 0,
44
+ "encoder_no_repeat_ngram_size": 0,
45
+ "bad_words_ids": null,
46
+ "num_return_sequences": 1,
47
+ "chunk_size_feed_forward": 0,
48
+ "output_scores": false,
49
+ "return_dict_in_generate": false,
50
+ "forced_bos_token_id": null,
51
+ "forced_eos_token_id": null,
52
+ "remove_invalid_values": false,
53
+ "exponential_decay_length_penalty": null,
54
+ "suppress_tokens": null,
55
+ "begin_suppress_tokens": null,
56
+ "architectures": [
57
+ "MistralForCausalLM"
58
+ ],
59
+ "finetuning_task": null,
60
+ "id2label": {
61
+ "0": "LABEL_0",
62
+ "1": "LABEL_1"
63
+ },
64
+ "label2id": {
65
+ "LABEL_0": 0,
66
+ "LABEL_1": 1
67
+ },
68
+ "tokenizer_class": null,
69
+ "prefix": null,
70
+ "bos_token_id": 1,
71
+ "pad_token_id": null,
72
+ "eos_token_id": 2,
73
+ "sep_token_id": null,
74
+ "decoder_start_token_id": null,
75
+ "task_specific_params": null,
76
+ "problem_type": null,
77
+ "_name_or_path": "/Users/def_init_/.cache/huggingface/hub/models--cognitivecomputations--dolphin-2.6-mistral-7b-dpo-laser/snapshots/daf2c1ba48811c67ce64a6d91e708bfd7920e0e9",
78
+ "transformers_version": "4.36.2",
79
+ "model_type": "mistral",
80
+ "quantization": {
81
+ "group_size": 64,
82
+ "bits": 4
83
+ }
84
+ }
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": "<|im_end|>",
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
The diff for this file is too large to render. See raw diff
 
weights.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:919a708971c7050a4139f50da8ce581a2ec3d696fe76b7b1066c85da76187f60
3
+ size 4450789335