qwp4w3hyb commited on
Commit
31f6a88
1 Parent(s): 7be51cf

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,23 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ imat-bf16-gmerged.dat filter=lfs diff=lfs merge=lfs -text
37
+ yi-1.5-9b-chat-bf16.gguf filter=lfs diff=lfs merge=lfs -text
38
+ yi-1.5-9b-chat-imat-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
39
+ yi-1.5-9b-chat-imat-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ yi-1.5-9b-chat-imat-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
41
+ yi-1.5-9b-chat-imat-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ yi-1.5-9b-chat-imat-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ yi-1.5-9b-chat-imat-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
44
+ yi-1.5-9b-chat-imat-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
45
+ yi-1.5-9b-chat-imat-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ yi-1.5-9b-chat-imat-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
47
+ yi-1.5-9b-chat-imat-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
48
+ yi-1.5-9b-chat-imat-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
49
+ yi-1.5-9b-chat-imat-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
50
+ yi-1.5-9b-chat-imat-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ yi-1.5-9b-chat-imat-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ yi-1.5-9b-chat-imat-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ yi-1.5-9b-chat-imat-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ yi-1.5-9b-chat-imat-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
55
+ yi-1.5-9b-chat-imat-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: text-generation
4
+ base_model: 01-ai/Yi-1.5-9B-Chat
5
+ tags:
6
+ - yi
7
+ - 01-ai
8
+ - instruct
9
+ - finetune
10
+ - chatml
11
+ - gguf
12
+ - imatrix
13
+ - importance matrix
14
+ model-index:
15
+ - name: 01-ai/Yi-1.5-9B-Chat-iMat-GGUF
16
+ results: []
17
+ ---
18
+
19
+ # Quant Infos
20
+
21
+ - quants done with an importance matrix for improved quantization loss
22
+ - gguf & imatrix generated from bf16 for "optimal" accuracy loss (some say this is snake oil, but it can't hurt)
23
+ - Wide coverage of different gguf quant types from Q\_8\_0 down to IQ1\_S
24
+ - Quantized with [llama.cpp](https://github.com/ggerganov/llama.cpp) commit [dc685be46622a8fabfd57cfa804237c8f15679b8](https://github.com/ggerganov/llama.cpp/commit/dc685be46622a8fabfd57cfa804237c8f15679b8) (master as of 2024-05-12)
25
+ - Imatrix generated with [this](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384) multi-purpose dataset.
26
+ ```
27
+ ./imatrix -c 512 -m $model_name-f16.gguf -f $llama_cpp_path/groups_merged.txt -o $out_path/imat-f16-gmerged.dat
28
+ ```
29
+
30
+ # Original Model Card:
31
+
32
+ <div align="center">
33
+
34
+ <picture>
35
+ <img src="https://raw.githubusercontent.com/01-ai/Yi/main/assets/img/Yi_logo_icon_light.svg" width="150px">
36
+ </picture>
37
+
38
+ </div>
39
+
40
+ <p align="center">
41
+ <a href="https://github.com/01-ai">🐙 GitHub</a> •
42
+ <a href="https://discord.gg/hYUwWddeAu">👾 Discord</a> •
43
+ <a href="https://twitter.com/01ai_yi">🐤 Twitter</a> •
44
+ <a href="https://github.com/01-ai/Yi-1.5/issues/2">💬 WeChat</a>
45
+ <br/>
46
+ <a href="https://arxiv.org/abs/2403.04652">📝 Paper</a> •
47
+ <a href="https://github.com/01-ai/Yi/tree/main?tab=readme-ov-file#faq">🙌 FAQ</a> •
48
+ <a href="https://github.com/01-ai/Yi/tree/main?tab=readme-ov-file#learning-hub">📗 Learning Hub</a>
49
+ </p>
50
+
51
+ # Intro
52
+
53
+ Yi-1.5 is an upgraded version of Yi. It is continuously pre-trained on Yi with a high-quality corpus of 500B tokens and fine-tuned on 3M diverse fine-tuning samples.
54
+
55
+ Compared with Yi, Yi-1.5 delivers stronger performance in coding, math, reasoning, and instruction-following capability, while still maintaining excellent capabilities in language understanding, commonsense reasoning, and reading comprehension.
56
+
57
+ <div align="center">
58
+
59
+ Model | Context Length | Pre-trained Tokens
60
+ | :------------: | :------------: | :------------: |
61
+ | Yi-1.5 | 4K | 3.6T
62
+
63
+ </div>
64
+
65
+ # Models
66
+
67
+ - Chat models
68
+
69
+ <div align="center">
70
+
71
+ | Name | Download |
72
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
73
+ | Yi-1.5-34B-Chat | • [🤗 Hugging Face](https://huggingface.co/collections/01-ai/yi-15-2024-05-663f3ecab5f815a3eaca7ca8) • [🤖 ModelScope](https://www.modelscope.cn/organization/01ai) |
74
+ | Yi-1.5-9B-Chat | • [🤗 Hugging Face](https://huggingface.co/collections/01-ai/yi-15-2024-05-663f3ecab5f815a3eaca7ca8) • [🤖 ModelScope](https://www.modelscope.cn/organization/01ai) |
75
+ | Yi-1.5-6B-Chat | • [🤗 Hugging Face](https://huggingface.co/collections/01-ai/yi-15-2024-05-663f3ecab5f815a3eaca7ca8) • [🤖 ModelScope](https://www.modelscope.cn/organization/01ai) |
76
+
77
+ </div>
78
+
79
+ - Base models
80
+
81
+ <div align="center">
82
+
83
+ | Name | Download |
84
+ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
85
+ | Yi-1.5-34B | • [🤗 Hugging Face](https://huggingface.co/collections/01-ai/yi-15-2024-05-663f3ecab5f815a3eaca7ca8) • [🤖 ModelScope](https://www.modelscope.cn/organization/01ai) |
86
+ | Yi-1.5-9B | • [🤗 Hugging Face](https://huggingface.co/collections/01-ai/yi-15-2024-05-663f3ecab5f815a3eaca7ca8) • [🤖 ModelScope](https://www.modelscope.cn/organization/01ai) |
87
+ | Yi-1.5-6B | • [🤗 Hugging Face](https://huggingface.co/collections/01-ai/yi-15-2024-05-663f3ecab5f815a3eaca7ca8) • [🤖 ModelScope](https://www.modelscope.cn/organization/01ai) |
88
+
89
+ </div>
90
+
91
+ # Benchmarks
92
+
93
+ - Chat models
94
+
95
+ Yi-1.5-34B-Chat is on par with or excels beyond larger models in most benchmarks.
96
+
97
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/656d9adce8bf55919aca7c3f/KcsJ9Oc1VnEmfCDEJc5cd.png)
98
+
99
+ Yi-1.5-9B-Chat is the top performer among similarly sized open-source models.
100
+
101
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/656d9adce8bf55919aca7c3f/xf6pLg5jqRCwjlh6m3t6_.png)
102
+
103
+ - Base models
104
+
105
+ Yi-1.5-34B is on par with or excels beyond larger models in some benchmarks.
106
+
107
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/656d9adce8bf55919aca7c3f/BwU7QM-03dZvZzwdIE1xY.png)
108
+
109
+ Yi-1.5-9B is the top performer among similarly sized open-source models.
110
+
111
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/656d9adce8bf55919aca7c3f/y-EYSYPT-3aWLJ0x8R94F.png)
112
+
113
+ # Quick Start
114
+
115
+ For getting up and running with Yi-1.5 models quickly, see [README](https://github.com/01-ai/Yi-1.5).
116
+
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 11008,
13
+ "max_position_embeddings": 4096,
14
+ "model_type": "llama",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 48,
17
+ "num_key_value_heads": 4,
18
+ "pad_token_id": 0,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 5000000.0,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.40.0",
26
+ "use_cache": false,
27
+ "vocab_size": 64000
28
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.40.0"
7
+ }
imat-bf16-gmerged.dat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01d42f1d802b1c4273653ea9f568093c649b0d772c58ac25ddc92fa6b7ac1aa6
3
+ size 6843305
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
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": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<|startoftext|>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "<|endoftext|>",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "7": {
31
+ "content": "<|im_end|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ }
38
+ },
39
+ "bos_token": "<|startoftext|>",
40
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ system_message }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\\n' + content + '<|im_end|>\\n<|im_start|>assistant\\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\\n' }}{% endif %}{% endfor %}",
41
+ "clean_up_tokenization_spaces": false,
42
+ "eos_token": "<|im_end|>",
43
+ "legacy": true,
44
+ "model_max_length": 4096,
45
+ "pad_token": "<unk>",
46
+ "padding_side": "right",
47
+ "sp_model_kwargs": {},
48
+ "spaces_between_special_tokens": false,
49
+ "split_special_tokens": false,
50
+ "tokenizer_class": "LlamaTokenizer",
51
+ "unk_token": "<unk>",
52
+ "use_default_system_prompt": false
53
+ }
yi-1.5-9b-chat-bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e52b0478e2c130787a83f115c5f87837924be91ccb5ea383977b4d9cc9fdb01f
3
+ size 17661112576
yi-1.5-9b-chat-imat-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29249d91a2b62565e59adb36f1119b92cfdc8ba82fd42f968b177b69a7428b08
3
+ size 2014573088
yi-1.5-9b-chat-imat-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3366619f7f2b3889772bc32c17e64a567a8efc1525606cc6e1275615dc50130
3
+ size 3098112544
yi-1.5-9b-chat-imat-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a858702b2b3a38d64bb3f94121cd9cf415a6a3775a7b94c43a194deab3b10c6
3
+ size 2875355680
yi-1.5-9b-chat-imat-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2b8f1c48084e66b3439b48be855c1bb1318820e3a96b43d5728673d7bf83ecb
3
+ size 2708009504
yi-1.5-9b-chat-imat-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b7c8e730d27a18a733d3f21a9bea79c0df7ceca9a9cfb9ccc7b460a697af191
3
+ size 2460086816
yi-1.5-9b-chat-imat-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:618cf53c956809a288c687b350ce704ca31a86f6bb9f636fd22e5cbe192b4bc2
3
+ size 4055462432
yi-1.5-9b-chat-imat-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd104b004844eddf532c1f1cf0c8735773f92dcb96c82321a347f668fab19316
3
+ size 3912577568
yi-1.5-9b-chat-imat-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f419f27d87e5ac07e0c3d0b1b1f628d60f63b5fb6e3489b17a199c3eec1aa7d0
3
+ size 3717935648
yi-1.5-9b-chat-imat-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb0b612fa215f5dee01a2833e733582b5a26cef5ed90cb0699689ce095962694
3
+ size 3474321952
yi-1.5-9b-chat-imat-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1af5b4f21cf8341c7c086a768816e82d3bd67dd1e2717bebfd4b973b1b20d785
3
+ size 5049578016
yi-1.5-9b-chat-imat-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c3966a4d7cee778aaf6f7308ced4512f6af922fcb3b5720e0f7bea5ac12e1b7
3
+ size 4785009184
yi-1.5-9b-chat-imat-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2756c1cf961624a0dbc9b1716feb0d4cdfcde60f55d14e298f1fc16aaa5711ac
3
+ size 5053903392
yi-1.5-9b-chat-imat-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b7cc5223ae5a9b0b3ee0d6dd8e9caf2d4daf507eaa50cff4f692ea869bbcf6a
3
+ size 5328957984
yi-1.5-9b-chat-imat-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52b0395ab19b78ceae958ae7f9c6fff3087780cc4ef942f31c3937fb02cc0f80
3
+ size 5071860256
yi-1.5-9b-chat-imat-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7684de17efcb3d502f1a6bffbf76f6bbb46ea6a2cf074c85863f999e43d037dd
3
+ size 6258258464
yi-1.5-9b-chat-imat-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c943666efb6a4485af01101d59ef90228e3ecb51e00d62ce572298dbc2ba1007
3
+ size 6107853344
yi-1.5-9b-chat-imat-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e3b7c25b1589e47439ec5a3eed5760b473c0c9b997f620f8673d8b00d0ec1fe
3
+ size 7245640224
yi-1.5-9b-chat-imat-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b2cb4a5c53d51c95dde5fdbd15939f56537f61b8e8a283a1cde6a76539af1d7
3
+ size 9383916064