mzbac commited on
Commit
aa63bd4
1 Parent(s): d51ff35

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # Yi-34B-Chat-hf-4bit-mlx
35
+ This model was converted to MLX format from [`01-ai/Yi-34B-Chat`]().
36
+ Refer to the [original model card](https://huggingface.co/01-ai/Yi-34B-Chat) for more details on the model.
37
+ ## Use with mlx
38
+ ```bash
39
+ pip install mlx
40
+ git clone https://github.com/ml-explore/mlx-examples.git
41
+ cd mlx-examples/llms/hf_llm
42
+ python generate.py --model mlx-community/Yi-34B-Chat-hf-4bit-mlx --prompt "My name is"
43
+ ```
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 64001,
3
+ "<|startoftext|>": 64000
4
+ }
config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 64000,
3
+ "max_position_embeddings": 4096,
4
+ "hidden_size": 7168,
5
+ "intermediate_size": 20480,
6
+ "num_hidden_layers": 60,
7
+ "num_attention_heads": 56,
8
+ "num_key_value_heads": 8,
9
+ "hidden_act": "silu",
10
+ "initializer_range": 0.02,
11
+ "rms_norm_eps": 1e-05,
12
+ "pretraining_tp": 1,
13
+ "use_cache": true,
14
+ "rope_theta": 5000000.0,
15
+ "rope_scaling": null,
16
+ "attention_bias": false,
17
+ "attention_dropout": 0.0,
18
+ "return_dict": true,
19
+ "output_hidden_states": false,
20
+ "output_attentions": false,
21
+ "torchscript": false,
22
+ "torch_dtype": "bfloat16",
23
+ "use_bfloat16": false,
24
+ "tf_legacy_loss": false,
25
+ "pruned_heads": {},
26
+ "tie_word_embeddings": false,
27
+ "is_encoder_decoder": false,
28
+ "is_decoder": false,
29
+ "cross_attention_hidden_size": null,
30
+ "add_cross_attention": false,
31
+ "tie_encoder_decoder": false,
32
+ "max_length": 20,
33
+ "min_length": 0,
34
+ "do_sample": false,
35
+ "early_stopping": false,
36
+ "num_beams": 1,
37
+ "num_beam_groups": 1,
38
+ "diversity_penalty": 0.0,
39
+ "temperature": 1.0,
40
+ "top_k": 50,
41
+ "top_p": 1.0,
42
+ "typical_p": 1.0,
43
+ "repetition_penalty": 1.0,
44
+ "length_penalty": 1.0,
45
+ "no_repeat_ngram_size": 0,
46
+ "encoder_no_repeat_ngram_size": 0,
47
+ "bad_words_ids": null,
48
+ "num_return_sequences": 1,
49
+ "chunk_size_feed_forward": 0,
50
+ "output_scores": false,
51
+ "return_dict_in_generate": false,
52
+ "forced_bos_token_id": null,
53
+ "forced_eos_token_id": null,
54
+ "remove_invalid_values": false,
55
+ "exponential_decay_length_penalty": null,
56
+ "suppress_tokens": null,
57
+ "begin_suppress_tokens": null,
58
+ "architectures": [
59
+ "LlamaForCausalLM"
60
+ ],
61
+ "finetuning_task": null,
62
+ "id2label": {
63
+ "0": "LABEL_0",
64
+ "1": "LABEL_1"
65
+ },
66
+ "label2id": {
67
+ "LABEL_0": 0,
68
+ "LABEL_1": 1
69
+ },
70
+ "tokenizer_class": null,
71
+ "prefix": null,
72
+ "bos_token_id": 1,
73
+ "pad_token_id": null,
74
+ "eos_token_id": 2,
75
+ "sep_token_id": null,
76
+ "decoder_start_token_id": null,
77
+ "task_specific_params": null,
78
+ "problem_type": null,
79
+ "_name_or_path": "01-ai/Yi-34B-Chat",
80
+ "transformers_version": "4.36.2",
81
+ "model_type": "llama",
82
+ "quantization": {
83
+ "group_size": 64,
84
+ "bits": 4
85
+ }
86
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|im_sep|>"
6
+ ],
7
+ "bos_token": {
8
+ "content": "<|startoftext|>",
9
+ "lstrip": false,
10
+ "normalized": true,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "eos_token": {
15
+ "content": "<|endoftext|>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "pad_token": {
22
+ "content": "<unk>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "unk_token": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
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:386c49cf943d71aa110361135338c50e38beeff0a66593480421f37b319e1a39
3
+ size 1033105
tokenizer_config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
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
+ "6": {
30
+ "content": "<|im_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "7": {
38
+ "content": "<|im_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "8": {
46
+ "content": "<|im_sep|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "64000": {
54
+ "content": "<|startoftext|>",
55
+ "lstrip": false,
56
+ "normalized": true,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "64001": {
62
+ "content": "<|endoftext|>",
63
+ "lstrip": false,
64
+ "normalized": true,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ }
69
+ },
70
+ "additional_special_tokens": [
71
+ "<|im_start|>",
72
+ "<|im_end|>",
73
+ "<|im_sep|>"
74
+ ],
75
+ "bos_token": "<|startoftext|>",
76
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
77
+ "clean_up_tokenization_spaces": false,
78
+ "eos_token": "<|endoftext|>",
79
+ "legacy": true,
80
+ "model_max_length": 4096,
81
+ "pad_token": "<unk>",
82
+ "padding_side": "right",
83
+ "sp_model_kwargs": {},
84
+ "spaces_between_special_tokens": false,
85
+ "tokenizer_class": "LlamaTokenizer",
86
+ "unk_token": "<unk>",
87
+ "use_default_system_prompt": true
88
+ }
weights.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c07005594a5e8f6437f1020aab6534e94c7ee46010c7bbb671d334b522c8bb1d
3
+ size 16046814847
weights.01.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db9ec509048e573567445082b3dbb36d7873f1981259210b3811bb80342d2874
3
+ size 3957813108