Update README.md
Browse files
README.md
CHANGED
@@ -41,7 +41,7 @@ tags:
|
|
41 |
- llama
|
42 |
- llama2
|
43 |
---
|
44 |
-
# CausalLM 14B
|
45 |
- Model creator: [CausalLM](https://huggingface.co/CausalLM)
|
46 |
- Original model: [CausalLM 14B](https://huggingface.co/CausalLM/14B)
|
47 |
|
@@ -56,4 +56,223 @@ I had some issues during quantization process, so I suspect it might have qualit
|
|
56 |
3.5bpw version barely fits my 12GB VRAM but has unusually high perplexity for wikitext dataset.
|
57 |
I couldn't measure perplexity for 4bpw version and to compare it with TheBloke's GPTQ, so I have no idea if my quantization has issues or it supposed to be like this.
|
58 |
|
59 |
-
You could try this exl2 version but I'd recommend to use [TheBloke's GPTQ](https://huggingface.co/TheBloke/CausalLM-14B-GPTQ) version instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
- llama
|
42 |
- llama2
|
43 |
---
|
44 |
+
# CausalLM 14B-EXL2
|
45 |
- Model creator: [CausalLM](https://huggingface.co/CausalLM)
|
46 |
- Original model: [CausalLM 14B](https://huggingface.co/CausalLM/14B)
|
47 |
|
|
|
56 |
3.5bpw version barely fits my 12GB VRAM but has unusually high perplexity for wikitext dataset.
|
57 |
I couldn't measure perplexity for 4bpw version and to compare it with TheBloke's GPTQ, so I have no idea if my quantization has issues or it supposed to be like this.
|
58 |
|
59 |
+
You could try this exl2 version but I'd recommend to use [TheBloke's GPTQ](https://huggingface.co/TheBloke/CausalLM-14B-GPTQ) version instead.
|
60 |
+
|
61 |
+
## How to run
|
62 |
+
|
63 |
+
This quantization method uses GPU and requires Exllamav2 loader which can be found in following applications:
|
64 |
+
|
65 |
+
[Text Generation Webui](https://github.com/oobabooga/text-generation-webui)
|
66 |
+
|
67 |
+
[KoboldAI](https://github.com/henk717/KoboldAI)
|
68 |
+
|
69 |
+
[ExUI](https://github.com/turboderp/exui)
|
70 |
+
|
71 |
+
# Original model card:
|
72 |
+
|
73 |
+
[![CausalLM](https://huggingface.co/JosephusCheung/tmp/resolve/main/14.17b.png)](https://causallm.org/)
|
74 |
+
|
75 |
+
*Image drawn by GPT-4 DALL·E 3* **TL;DR: Perhaps better than all existing models < 70B, in most quantitative evaluations...**
|
76 |
+
|
77 |
+
# CausalLM 14B - Fully Compatible with Meta LLaMA 2
|
78 |
+
Use the transformers library that does not require remote/external code to load the model, AutoModelForCausalLM and AutoTokenizer (or manually specify LlamaForCausalLM to load LM, GPT2Tokenizer to load Tokenizer), and model quantization is fully compatible with GGUF (llama.cpp), GPTQ, and AWQ.
|
79 |
+
|
80 |
+
**News: DPO ver. Rank #1 ~13B - SOTA model of its size on 🤗 Open LLM Leaderboard**
|
81 |
+
|
82 |
+
# Recent Updates: [DPO-α Version](https://huggingface.co/CausalLM/14B-DPO-alpha) outperforms Zephyr-β in MT-Bench
|
83 |
+
|
84 |
+
# Friendly reminder: If your VRAM is insufficient, you should use the 7B model instead of the quantized version.
|
85 |
+
Compared to the quantized versions, the 7B version and the 14B version demonstrate a high level of consistency.
|
86 |
+
|
87 |
+
**llama.cpp GGUF models**
|
88 |
+
GPT2Tokenizer fixed by [Kerfuffle](https://github.com/KerfuffleV2) on [https://github.com/ggerganov/llama.cpp/pull/3743](https://github.com/ggerganov/llama.cpp/pull/3743), new models are now reuploaded.
|
89 |
+
|
90 |
+
Thanks TheBloke for GGUF quants: [https://huggingface.co/TheBloke/CausalLM-14B-GGUF](https://huggingface.co/TheBloke/CausalLM-14B-GGUF)
|
91 |
+
|
92 |
+
**Caution:** Unofficial GPTQ and AWQ models may have issues as they use Wikitext for calibration, while this model has undergone considerable training on a synthesized Wikipedia conversation dataset.
|
93 |
+
|
94 |
+
It is not recommended to use any form of quantization, but rather to use smaller-sized models, as the 7B and 14B versions have high consistency. However, if you do use model quantization, please use GGUF.
|
95 |
+
|
96 |
+
# Read Me:
|
97 |
+
|
98 |
+
Also see [7B Version](https://huggingface.co/CausalLM/7B)
|
99 |
+
|
100 |
+
This model was trained based on the model weights of Qwen (and LLaMA2 was used, yes, for calculating some initial weights), you may also need to comply with the commercial use restrictions of these two models depending on the situation. The training process utilized a model architecture that was identical to LLaMA2, using the same attention calculation method as the original MHA LLaMA2 models, and no additional scaling applied to the Rotary Positional Encoding (RoPE).
|
101 |
+
|
102 |
+
We manually curated a SFT dataset of 1.3B tokens for training, utilizing open source datasets from Hugging Face. For most of these sentences, we performed manual or synthetic rewrites and generated alternate language versions using larger language models. Additionally, we conducted augmented text training using carefully selected entries from Wikipedia, as well as featured entries from Fandom and filtered entries from Moegirlpedia. In order to strike a balance between efficiency and quality, 100% of the data used for training was synthetic data, no direct use of text from the internet or original texts from publicly available datasets was employed for fine-tuning.
|
103 |
+
|
104 |
+
The 7B version of the model is a distilled version of the 14B model, specifically designed for speculative sampling. Therefore, it is important to exercise caution when directly using the model, as it may produce hallucinations or unreliable outputs.
|
105 |
+
|
106 |
+
Please note that the model was trained on unfiltered internet data. Since we do not have the capacity to vet all of it, there may be a substantial amount of objectionable content, pornography, violence, and offensive language present that we are unable to remove. Therefore, you will still need to complete your own checks on the model's safety and filter keywords in the output. Due to computational resource constraints, we are presently unable to implement RLHF for the model's ethics and safety, nor training on SFT samples that refuse to answer certain questions for restrictive fine-tuning.
|
107 |
+
|
108 |
+
Bonus: The model underwent some fine-tuning on the prompt format introduced in LLaVA1.5 that is unrelated to image attention calculation. Therefore, aligning the ViT Projection module with frozen LM under visual instructions would enable rapid implementation of effective multimodal capabilities.
|
109 |
+
|
110 |
+
## PROMPT FORMAT:
|
111 |
+
[chatml](https://github.com/openai/openai-python/blob/main/chatml.md)
|
112 |
+
|
113 |
+
**System Prompt must not be empty!**
|
114 |
+
|
115 |
+
## MMLU:
|
116 |
+
stem ACC: 64.19
|
117 |
+
|
118 |
+
Humanities ACC: 61.40
|
119 |
+
|
120 |
+
other ACC: 71.64
|
121 |
+
|
122 |
+
social ACC: 75.37
|
123 |
+
|
124 |
+
**AVERAGE ACC:67.36** (Outperforms ALL models under 70B, very close to those best 70B fine-tunes)
|
125 |
+
|
126 |
+
|
127 |
+
## CEval (Val):
|
128 |
+
STEM ACC: 66.71
|
129 |
+
|
130 |
+
Social Science ACC: 85.10
|
131 |
+
|
132 |
+
Humanities ACC: 76.68
|
133 |
+
|
134 |
+
Other ACC: 70.23
|
135 |
+
|
136 |
+
Hard ACC:54.71
|
137 |
+
|
138 |
+
**AVERAGE ACC:73.10** (Outperforms Qwen-14B, and GPT-4)
|
139 |
+
|
140 |
+
## GSM8K
|
141 |
+
|
142 |
+
**Zero-shot ACC 0.7012888551933283** (Outperforms MetaMath-13B, Qwen-14B)
|
143 |
+
|
144 |
+
## AlpacaEval Leaderboard
|
145 |
+
| | win_rate | standard_error | n_wins | n_wins_base | n_draws | n_total | mode | avg_length |
|
146 |
+
| ------------ | -------- | -------------- | ------ | ----------- | ------- | ------- | --------- | ---------- |
|
147 |
+
| causallm-14b | **88.26087** | 1.116333 | 705 | 89 | 11 | 805 | community | 1391 |
|
148 |
+
|
149 |
+
Win rate **88.26%** on [AlpacaEval Leaderboard](https://tatsu-lab.github.io/alpaca_eval/) [view raw](https://github.com/tatsu-lab/alpaca_eval/blob/3a47dcd81c56f6a8e6a5711f2754013919fbe90a/results/causallm-14b/model_outputs.json)
|
150 |
+
|
151 |
+
## MT-Behch on DPO Version
|
152 |
+
| Model | MT-Bench |
|
153 |
+
| ------------------------- | ------------ |
|
154 |
+
| GPT-4 | 8.99 |
|
155 |
+
| GPT-3.5-Turbo | 7.94 |
|
156 |
+
| | |
|
157 |
+
| Zephyr-7b-β (Overfitting) | 7.34 |
|
158 |
+
| Zephyr-7b-α | 6.88 |
|
159 |
+
| | |
|
160 |
+
| **[CausalLM/14B-DPO-α](https://huggingface.co/CausalLM/14B-DPO-alpha)** | **7.618868** |
|
161 |
+
| **[CausalLM/7B-DPO-α](https://huggingface.co/CausalLM/7B-DPO-alpha)** | **7.038125** |
|
162 |
+
|
163 |
+
## Other languages
|
164 |
+
We are currently unable to produce accurate benchmark templates for non-QA tasks (languages other than English and Chinese). However, we will be working on other language versions of the QA-Task challenge in the near future.
|
165 |
+
### Japanese Benchmark
|
166 |
+
| Task |Version| Metric |Value | |Stderr|
|
167 |
+
|----------------------|------:|--------|-----:|---|-----:|
|
168 |
+
|jcommonsenseqa-1.1-0.6| 1.1|acc |0.8213|± |0.0115|
|
169 |
+
|
170 |
+
*JCommonsenseQA benchmark result is very, very close to [Japanese Stable LM Gamma 7B (83.47)](https://github.com/Stability-AI/lm-evaluation-harness/tree/jp-stable), current SOTA Japanese LM. However, our model was not trained on a particularly large amount of text in Japanese. This seems to reflect the cross-language transferability of metalinguistics.*
|
171 |
+
|
172 |
+
## 🤗 Open LLM Leaderboard
|
173 |
+
SOTA chat model of its size on 🤗 Open LLM Leaderboard.
|
174 |
+
|
175 |
+
Dec 3, 2023
|
176 |
+
DPO Version Rank **#1** non-base model, of its size on 🤗 Open LLM Leaderboard, outperforms **ALL** ~13B chat models.
|
177 |
+
|
178 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/63468a143ea42ee2cb49ddd1/8nV0yOTteP208bjbCv5MC.png)
|
179 |
+
|
180 |
+
# 因果语言模型 14B - 与 Meta LLaMA 2 完全兼容
|
181 |
+
使用无需远程/外部代码的transformers库加载模型,AutoModelForCausalLM和AutoTokenizer(或者手动指定LlamaForCausalLM加载LM, GPT2Tokenizer加载Tokenizer),并且模型量化与GGUF(llama.cpp)、GPTQ、AWQ完全兼容。
|
182 |
+
|
183 |
+
# 新消息:DPO 版本在~13B排名第1 🤗 Open LLM 排行榜上同尺寸的所有模型中评分最高
|
184 |
+
|
185 |
+
# 最近更新: [DPO-α Version](https://huggingface.co/CausalLM/14B-DPO-alpha) 在 MT-Bench 超过 Zephyr-β
|
186 |
+
|
187 |
+
# 友情提示:如果您的显存不足,您应该使用7B模型而不是量化版本。
|
188 |
+
与量化版本相比,7B 版本和 14B 版本具有高度的一致性。
|
189 |
+
|
190 |
+
**llama.cpp GGUF models**
|
191 |
+
GPT2Tokenizer 支持由 [Kerfuffle](https://github.com/KerfuffleV2) 修复于 [https://github.com/ggerganov/llama.cpp/pull/3743](https://github.com/ggerganov/llama.cpp/pull/3743),新模型稍后上传。
|
192 |
+
|
193 |
+
感谢 TheBloke 制作 GGUF 版本量化模型: [https://huggingface.co/TheBloke/CausalLM-14B-GGUF](https://huggingface.co/TheBloke/CausalLM-14B-GGUF)
|
194 |
+
|
195 |
+
**注意:** 非官方 GPTQ 和 AWQ 模型可能存在问题,因为它们使用 Wikitext 进行校准,而该模型已经在合成的 Wikipedia 对话数据集上经过了大量的训练。
|
196 |
+
|
197 |
+
不建议使用任何形式的量化,而是使用较小尺寸的模型,因为7B和14B版本具有较高的一致性。 但是,如果您确实使用模型量化,请使用 GGUF。
|
198 |
+
|
199 |
+
## 请读我:
|
200 |
+
|
201 |
+
另请参阅[7B版本](https://huggingface.co/CausalLM/7B)
|
202 |
+
|
203 |
+
该模型是基于Qwen的权重(并使用了LLaMA2权重,是的,用于计算一些权重初始化),您根据情况可能还需要遵守这两个模型的商业使用限制。训练过程中使用了与LLaMA2相同的模型结构,使用原始MHA LLaMA2模型的相同注意力计算方法,对旋转位置编码(RoPE)没有进行额外的缩放。
|
204 |
+
|
205 |
+
我们手动筛选了一个包含13亿个标记的SFT数据集进行训练,利用了Hugging Face的开源数据集。对于大多数句子,我们进行了手动或合成改写,并使用更大的语言模型生成了其他语言版本。此外,我们还使用了精心挑选的来自维基百科的条目、来自Fandom的精选条目以及来自萌娘百科的过滤条目进行增强文本训练。为了在效率和质量之间取得平衡,训练所使用的100%数据都是合成数据,没有直接使用来自互联网或公开可用数据集的原始文本进行微调。
|
206 |
+
|
207 |
+
7B版本的模型是14B模型的精简版本,专门设计用于推测抽样。因此,在直接使用模型时,需要谨慎行事,因为它可能会产生幻觉或不可靠的输出。
|
208 |
+
|
209 |
+
请注意,模型是在未经过滤的互联网数据上进行训练的。由于我们无法审核所有数据,可能会出现大量不良内容、色情、暴力和冒犯性语言,我们无法删除这些内容。因此,您仍然需要对模型的安全性进行自己的检查,并对输出中的关键词进行过滤。由于计算资源的限制,我们目前无法为模型的伦理和安全实施RLHF,也无法对拒绝回答某些问题的SFT样本进行训练以进行限制性微调。
|
210 |
+
|
211 |
+
额外奖励:模型在LLaVA1.5中引入的提示格式上进行了一些微调,与图像注意力计算无关。因此,将ViT投影模块与冻结的LM对齐,并根据视觉指令实施快速实现有效的多模态能力。
|
212 |
+
|
213 |
+
## 提示格式:
|
214 |
+
[chatml](https://github.com/openai/openai-python/blob/main/chatml.md)
|
215 |
+
|
216 |
+
**系统提示不能为空!**
|
217 |
+
|
218 |
+
|
219 |
+
## MMLU:
|
220 |
+
STEM准确率:64.19
|
221 |
+
|
222 |
+
人文及艺术学科准确率:61.40
|
223 |
+
|
224 |
+
其他学科准确率:71.64
|
225 |
+
|
226 |
+
社会学科准确率:75.37
|
227 |
+
|
228 |
+
**平均准确率:67.36**(超过所有70B以下的模型,非常接近最佳70B微调模型)
|
229 |
+
|
230 |
+
## CEval(验证集):
|
231 |
+
STEM准确率:66.71
|
232 |
+
|
233 |
+
社会科学准确率:85.10
|
234 |
+
|
235 |
+
人文学科准确率:76.68
|
236 |
+
|
237 |
+
其他学科准确率:70.23
|
238 |
+
|
239 |
+
困难准确率:54.71
|
240 |
+
|
241 |
+
**平均准确率:73.10**(超过Qwen-14B和GPT-4)
|
242 |
+
|
243 |
+
## GSM8K
|
244 |
+
|
245 |
+
**零样本准确率0.7012888551933283**(超过MetaMath-13B和Qwen-14B)
|
246 |
+
|
247 |
+
## AlpacaEval Leaderboard
|
248 |
+
| | win_rate | standard_error | n_wins | n_wins_base | n_draws | n_total | mode | avg_length |
|
249 |
+
| ------------ | -------- | -------------- | ------ | ----------- | ------- | ------- | --------- | ---------- |
|
250 |
+
| causallm-14b | **88.26087** | 1.116333 | 705 | 89 | 11 | 805 | community | 1391 |
|
251 |
+
|
252 |
+
在 [AlpacaEval Leaderboard](https://tatsu-lab.github.io/alpaca_eval/) 胜率 **88.26%** [view raw](https://github.com/tatsu-lab/alpaca_eval/blob/3a47dcd81c56f6a8e6a5711f2754013919fbe90a/results/causallm-14b/model_outputs.json)
|
253 |
+
|
254 |
+
## DPO 版本的 MT-Behch
|
255 |
+
| Model | MT-Bench |
|
256 |
+
| ------------------------- | ------------ |
|
257 |
+
| GPT-4 | 8.99 |
|
258 |
+
| GPT-3.5-Turbo | 7.94 |
|
259 |
+
| | |
|
260 |
+
| Zephyr-7b-β (Overfitting) | 7.34 |
|
261 |
+
| Zephyr-7b-α | 6.88 |
|
262 |
+
| | |
|
263 |
+
| **[CausalLM/14B-DPO-α](https://huggingface.co/CausalLM/14B-DPO-alpha)** | **7.618868** |
|
264 |
+
| **[CausalLM/7B-DPO-α](https://huggingface.co/CausalLM/7B-DPO-alpha)** | **7.038125** |
|
265 |
+
|
266 |
+
## 其他语言
|
267 |
+
我们目前无法为非 QA 任务(英语和中文以外的语言)生成准确的基准模板。 不过,我们将在不久的将来开发其他语言版本的 QA-Task 挑战。
|
268 |
+
### 日文基准
|
269 |
+
| Task |Version| Metric |Value | |Stderr|
|
270 |
+
|----------------------|------:|--------|-----:|---|-----:|
|
271 |
+
|jcommonsenseqa-1.1-0.6| 1.1|acc |0.8213|± |0.0115|
|
272 |
+
|
273 |
+
*JCommonsenseQA 基准测试结果非常非常接近 [Japanese Stable LM Gamma 7B (83.47)](https://github.com/Stability-AI/lm-evaluation-harness/tree/jp-stable),当前 SOTA 日文 LM 。然而,我们的模型并未在日文上进行特别的大量文本训练。这似乎能体现元语言的跨语言迁移能力。*
|
274 |
+
|
275 |
+
## 🤗 Open LLM 排行榜
|
276 |
+
Dec 3, 2023
|
277 |
+
DPO版本在🤗 Open LLM 排行榜上~13B的**所有**聊天模型中**排名第1**
|
278 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/63468a143ea42ee2cb49ddd1/8nV0yOTteP208bjbCv5MC.png)
|