voxmenthe commited on
Commit
994a3fc
1 Parent(s): 958ebab

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tags:
4
+ - mlx
5
+ license_name: yi-license
6
+ license_link: LICENSE
7
+ widget:
8
+ - example_title: Yi-34B-Chat
9
+ text: hi
10
+ output:
11
+ text: ' Hello! How can I assist you today?'
12
+ - example_title: Yi-34B
13
+ text: There's a place where time stands still. A place of breath taking wonder,
14
+ but also
15
+ output:
16
+ text: ' an eerie sense that something is just not right…
17
+
18
+ Between the two worlds lies The Forgotten Kingdom - home to creatures long since
19
+ thought extinct and ancient magic so strong it defies belief! Only here can
20
+ you find what has been lost for centuries: An Elixir Of Life which will restore
21
+ youth and vitality if only those who seek its power are brave enough to face
22
+ up against all manner of dangers lurking in this mysterious land! But beware;
23
+ some say there may even exist powerful entities beyond our comprehension whose
24
+ intentions towards humanity remain unclear at best ---- they might want nothing
25
+ more than destruction itself rather then anything else from their quest after
26
+ immortality (and maybe someone should tell them about modern medicine)? In any
27
+ event though – one thing remains true regardless : whether or not success comes
28
+ easy depends entirely upon how much effort we put into conquering whatever challenges
29
+ lie ahead along with having faith deep down inside ourselves too ;) So let’s
30
+ get started now shall We?'
31
+ pipeline_tag: text-generation
32
+ ---
33
+
34
+ # voxmenthe/Yi-34B-200K-4bit-mlx
35
+ This model was converted to MLX format from [`01-ai/Yi-34B-200K`]() using mlx-lm version **0.5.0**.
36
+ Refer to the [original model card](https://huggingface.co/01-ai/Yi-34B-200K) for more details on the model.
37
+ ## Use with mlx
38
+
39
+ ```bash
40
+ pip install mlx-lm
41
+ ```
42
+
43
+ ```python
44
+ from mlx_lm import load, generate
45
+
46
+ model, tokenizer = load("voxmenthe/Yi-34B-200K-4bit-mlx")
47
+ response = generate(model, tokenizer, prompt="hello", verbose=True)
48
+ ```
config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bad_words_ids": null,
9
+ "begin_suppress_tokens": null,
10
+ "bos_token_id": 1,
11
+ "chunk_size_feed_forward": 0,
12
+ "cross_attention_hidden_size": null,
13
+ "decoder_start_token_id": null,
14
+ "diversity_penalty": 0.0,
15
+ "do_sample": false,
16
+ "early_stopping": false,
17
+ "encoder_no_repeat_ngram_size": 0,
18
+ "eos_token_id": 2,
19
+ "exponential_decay_length_penalty": null,
20
+ "finetuning_task": null,
21
+ "forced_bos_token_id": null,
22
+ "forced_eos_token_id": null,
23
+ "hidden_act": "silu",
24
+ "hidden_size": 7168,
25
+ "id2label": {
26
+ "0": "LABEL_0",
27
+ "1": "LABEL_1"
28
+ },
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 20480,
31
+ "is_decoder": false,
32
+ "is_encoder_decoder": false,
33
+ "label2id": {
34
+ "LABEL_0": 0,
35
+ "LABEL_1": 1
36
+ },
37
+ "length_penalty": 1.0,
38
+ "max_length": 20,
39
+ "max_position_embeddings": 200000,
40
+ "min_length": 0,
41
+ "model_type": "llama",
42
+ "no_repeat_ngram_size": 0,
43
+ "num_attention_heads": 56,
44
+ "num_beam_groups": 1,
45
+ "num_beams": 1,
46
+ "num_hidden_layers": 60,
47
+ "num_key_value_heads": 8,
48
+ "num_return_sequences": 1,
49
+ "output_attentions": false,
50
+ "output_hidden_states": false,
51
+ "output_scores": false,
52
+ "pad_token_id": 0,
53
+ "prefix": null,
54
+ "pretraining_tp": 1,
55
+ "problem_type": null,
56
+ "pruned_heads": {},
57
+ "quantization": {
58
+ "group_size": 64,
59
+ "bits": 4
60
+ },
61
+ "remove_invalid_values": false,
62
+ "repetition_penalty": 1.0,
63
+ "return_dict": true,
64
+ "return_dict_in_generate": false,
65
+ "rms_norm_eps": 1e-05,
66
+ "rope_scaling": null,
67
+ "rope_theta": 10000000.0,
68
+ "sep_token_id": null,
69
+ "suppress_tokens": null,
70
+ "task_specific_params": null,
71
+ "temperature": 1.0,
72
+ "tf_legacy_loss": false,
73
+ "tie_encoder_decoder": false,
74
+ "tie_word_embeddings": false,
75
+ "tokenizer_class": null,
76
+ "top_k": 50,
77
+ "top_p": 1.0,
78
+ "torch_dtype": "bfloat16",
79
+ "torchscript": false,
80
+ "transformers_version": "4.39.2",
81
+ "typical_p": 1.0,
82
+ "use_bfloat16": false,
83
+ "use_cache": true,
84
+ "vocab_size": 64000
85
+ }
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:790621e2629bb1e60e601bc292c8096ca544e2b8348c69bd600b937ddd91fa7c
3
+ size 5348111210
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f585494e593ea881cf8518245b94042ade4613ba3023190863e2cf91196f0297
3
+ size 5363802145
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdc54b72e3175f5b4f40b899584b58baaa80f11ae25acb476df35eabb7e6bf2e
3
+ size 5334900451
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2939cb2c4148d0fecf82ec17ef1743a3131b0d0ab10d77fba2b644caebfd513
3
+ size 3957813074
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": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<unk>",
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:386c49cf943d71aa110361135338c50e38beeff0a66593480421f37b319e1a39
3
+ size 1033105
tokenizer_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
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": "<|startoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<|endoftext|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<|startoftext|>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "<|endoftext|>",
33
+ "legacy": true,
34
+ "model_max_length": 200000,
35
+ "pad_token": "<unk>",
36
+ "sp_model_kwargs": {},
37
+ "tokenizer_class": "LlamaTokenizer",
38
+ "unk_token": "<unk>",
39
+ "use_default_system_prompt": false
40
+ }