mc0ps commited on
Commit
0c84dca
1 Parent(s): 55556cf

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-2.0
3
+ tags:
4
+ - mlx
5
+ ---
6
+
7
+ # mlx-community/laserxtral-4bit-mlx
8
+ This model was converted to MLX format from [`cognitivecomputations/laserxtral`]().
9
+ Refer to the [original model card](https://huggingface.co/cognitivecomputations/laserxtral) for more details on the model.
10
+ ## Use with mlx
11
+
12
+ ```bash
13
+ pip install mlx-lm
14
+ ```
15
+
16
+ ```python
17
+ from mlx_lm import load, generate
18
+
19
+ model, tokenizer = load("mlx-community/laserxtral-4bit-mlx")
20
+ response = generate(model, tokenizer, prompt="hello", verbose=True)
21
+ ```
config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 32000,
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": true,
14
+ "rope_theta": 10000.0,
15
+ "attention_dropout": 0.0,
16
+ "num_experts_per_tok": 2,
17
+ "num_local_experts": 4,
18
+ "output_router_logits": false,
19
+ "router_aux_loss_coef": 0.001,
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
+ "is_encoder_decoder": false,
30
+ "is_decoder": false,
31
+ "cross_attention_hidden_size": null,
32
+ "add_cross_attention": false,
33
+ "tie_encoder_decoder": false,
34
+ "max_length": 20,
35
+ "min_length": 0,
36
+ "do_sample": false,
37
+ "early_stopping": false,
38
+ "num_beams": 1,
39
+ "num_beam_groups": 1,
40
+ "diversity_penalty": 0.0,
41
+ "temperature": 1.0,
42
+ "top_k": 50,
43
+ "top_p": 1.0,
44
+ "typical_p": 1.0,
45
+ "repetition_penalty": 1.0,
46
+ "length_penalty": 1.0,
47
+ "no_repeat_ngram_size": 0,
48
+ "encoder_no_repeat_ngram_size": 0,
49
+ "bad_words_ids": null,
50
+ "num_return_sequences": 1,
51
+ "chunk_size_feed_forward": 0,
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": 2,
77
+ "sep_token_id": null,
78
+ "decoder_start_token_id": null,
79
+ "task_specific_params": null,
80
+ "problem_type": null,
81
+ "_name_or_path": "/Volumes/Projects/MLX/cache/models--cognitivecomputations--laserxtral/snapshots/6733b03112c518bf855a874bab548d4c7bf1e6aa",
82
+ "transformers_version": "4.36.2",
83
+ "model_type": "mixtral",
84
+ "quantization": {
85
+ "group_size": 64,
86
+ "bits": 4
87
+ }
88
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<unk>",
4
+ "<s>",
5
+ "</s>"
6
+ ],
7
+ "bos_token": {
8
+ "content": "<s>",
9
+ "lstrip": false,
10
+ "normalized": false,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "eos_token": {
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "pad_token": {
22
+ "content": "<s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "unk_token": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }
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,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "<unk>",
32
+ "<s>",
33
+ "</s>"
34
+ ],
35
+ "bos_token": "<s>",
36
+ "clean_up_tokenization_spaces": false,
37
+ "eos_token": "</s>",
38
+ "legacy": true,
39
+ "max_length": null,
40
+ "model_max_length": 1000000000000000019884624838656,
41
+ "pad_to_multiple_of": null,
42
+ "pad_token": "<s>",
43
+ "pad_token_type_id": 0,
44
+ "padding_side": "left",
45
+ "sp_model_kwargs": {},
46
+ "spaces_between_special_tokens": false,
47
+ "tokenizer_class": "LlamaTokenizer",
48
+ "unk_token": "<unk>",
49
+ "use_default_system_prompt": true
50
+ }
weights.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:411fdf11ab4337d7a87060d7be9e01faadb5dd3d648c6486c49770151cfb2296
3
+ size 10729352982
weights.01.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b60925548e10fe2cffb8dd262d053f0b3f17e59a756b79cdc382b79305d8f325
3
+ size 3046855361