模型:
这是 Llama 13B 和 ZhiXi-13B 之间的重量差异的结果。您可以点击 here 了解更多信息。
随着深度学习技术的快速发展,ChatGPT等大型语言模型在自然语言处理领域取得了重大进展。然而,这些庞大的模型仍然面临着获取和理解知识的几个挑战,包括更新知识的困难以及潜在的知识偏差和差异,统称为知识谬误。KnowLM项目致力于通过推出一个开源的大规模知识型语言模型框架并发布相应的模型来解决这些问题。
该项目的初始阶段引入了基于Llama的知识提取LLM,名为ZhiXi(智析,意为智能数据分析以提取知识)。为了在保持原始英文和代码功能的同时将中文理解能力集成到语言模型中,我们首先(1)使用中文语料库对LLaMA(13B)进行全面预训练,增强语言模型对中文的理解并丰富其知识,同时保留其原始的英文和代码功能;然后(2)我们使用指令数据集对第一步得到的模型进行微调,从而增强语言模型对人类指令的理解以提取知识。
该项目的特点如下:
所有权重都已上传到HuggingFace🤗。请注意,以下所有效果都基于ZhiXi-13B-Diff。如果您已下载了ZhiXi-13B-Diff-fp16,则效果可能会有所变化。
| Model Name | Train Method | Weight Type | Size | Download Link | Notes |
|---|---|---|---|---|---|
| ZhiXi-13B-Diff | Full Pretraining | Differential Weights | 48GB | 12325321 12326321 | Restoring the pre-trained weights (i.e. ZhiXi-13B ) needs to match the weights of LLaMA-13B , please refer to here for specific instructions. |
| ZhiXi-13B-Diff-fp16 | Full Pretraining | Differential Weights(fp16) | 24GB | 12327321 12328321 | The main difference with ZhiXi-13B-Diff is the adoption of the fp16 format for storage, which reduces memory usage. However, it may result in slight differences in the weights obtained from our actual training, which can slightly impact performance. For specific usage instructions, please refer to here for specific instructions. |
| ZhiXi-13B-LoRA | LoRA Instruction-tuning | LoRA Weights | 251MB | 12329321 12330321 | It needs to be used with ZhiXi-13B . For specific instructions, please refer to here . |
| ZhiXi-7B Series | Coming soon | Coming soon | Coming soon | Coming soon | Coming soon |
在中文中,“智”表示智能,引用了AI的先进语言理解能力。 “析”意味着分析或提取,象征着系统的知识提取功能。智析(ZhiXi)体现了一个能够剖析和获取知识的智能系统的特点,这与我们对高度博学的模型的期望相一致。
根据第1节我们的样例案例。如果要重现这些样例并查看详细的解码配置,请先使用提供的脚本配置环境并还原权重,然后按照此处提供的步骤进行操作。
在以下案例中,粗体字表示提示,非粗体字表示模型的输出。
由于将推理长度上限设置为512,我们的案例遇到了三种情况:
您非常擅长将中文翻译成英文。将下面的句子翻译成英文:我们今天准备去西安看兵马俑。答案:We are going to see the Terracotta Warriors in Xi'an today.:white_check_mark:
You are good at translating English into Chinese. Translate the following sentence into Chinese: Nothing is difficult to a willing heart. Answer:什么都不难,只要心甘情愿。:white_check_mark:
你非常了解一些健康生活的习惯,请列举几个健康生活的建议:1.每天坚持锻炼30分钟以上。2.不吸烟,不酗酒。3.少吃高脂肪食物。4.多吃蔬菜和水果。5.保证充足的睡眠。6.保持良好的心情。7.定期体检。8.养成良好的卫生习惯。:white_check_mark:
我爱你的英文是什么?我爱你的英文是"i love you"。:arrow_left:
你对中国的大学了解的非常多。请评价一下浙江大学是一所怎样的学校。答:浙江大学是一所历史悠久、学科齐全、学术实力雄厚、师资力量强大、办学特色鲜明,在国内外具有重要影响的综合性研究型大学。 浙江大学是首批进入国家"211工程"和"985工程"建设的高校之一,也是国家"111计划"和"珠峰计划"重点建设的名牌大学。 浙江大学的前身是创建于1897年的求是书院,是中国人最早自己创办的新式高等学府之一。 1928年,求是书院改制为国立浙江大学。 1952年,浙江大学成为新中国创办的第一批全国重点大学。 1998年,浙江大学与杭州大学、浙江农业大学、浙江医科大学、浙江师范大学、浙江师范大学医学院合并组建新的浙江大学。 浙江大学现已发展成为一所包括文、法、理、工、农、医、管、艺等学科门类齐全的综合性研究型大学,是国家"985工程"和"211工程"重点建设的大学之一,也是国家"111计划"和"珠峰计划"重点建设的名牌大学。:white_check_mark:
你非常了解中国的大学。请介绍一下浙江大学。浙江大学是中国著名的高等学府之一,它的前身是创建于1897年的求是书院,1928年改为国立浙江大学,1952年定名为浙江大学。浙江大学是首批进入国家"211工程"和"985工程"重点建设的高校之一。浙江大学有着悠久的历史和深厚的文化底蕴,在中国近现代教育史上占有重要地位。浙江大学的前身求是书院创建于1897年,是中国人最早自己创办的新式高等学府之一。1901年,求是书院更名为浙江大学堂。1928年,浙江大学正式定名为国立浙江大学。1952年,浙江大学成为全国首批重点大学。1958年,浙江大学成为全国首批博士、硕士学位授予单位。1998年,浙江大学成为首批进入国家"211工程"重点建设的高校。2001年,浙江大学成为首批进入国家"985工程"重点建设的高校。2006年,浙江大学成为首批进入国家"111计划"重点建设的高校。2017年,浙江大学成为首批进入国家"双一流"世界一流大学和一流学科建设高校。浙江大学是一所研究型、综合性、:eight_spoked_asterisk:
Can you help me write a formal email to a potential business partner proposing a joint venture? Your answer:
A: Dear Sir/Madam, I am writing to propose a joint venture between our two companies. I have attached a proposal for your consideration. Please let me know if you would like to discuss this further. Yours sincerely:white_check_mark:You are now a doctor. Here are some tips for a healthy life. 1. Don't smoke. 2. Eat a balanced diet. 3. Exercise regularly. 4. Drink alcohol only in moderation. 5. Take care of your teeth. 6. Get enough sleep. 7. See your doctor for regular checkups. 8. Learn to manage stress. 9. Stay up-to-date on vaccinations. 10. Wash your hands often. 11. Avoid secondhand smoke. 12. Use sunscreen and wear sunglasses. 13. Know your family medical history. 14. Be aware of the signs of depression. 15. Protect your hearing. 16. Practice safe sex. 17. If you drink coffee, do so in moderation. 18. Limit your intake of caffeine. 19. Don't drive when you're tired. 20. Don't text and drive. 21. Don't drink and drive. 22. Don't ride a motorcycle without a helmet. 23. Don't swim alone. 24. Don't dive into water where you can't see the bottom. 25. Don't swim if you've been drinking alcohol. 26. Don't swim if you're sick. 27. Don't swim if you have open sores on your body. 28. Don't swim if there are strong currents or undertows. 29. Don't swim in polluted water. 30. Don't swim if there are snakes or alligators nearby. 31. Don't swim if there are jellyfish in the water. 32. Don't swim if there are sharks in the water. 33. Don't swim if there are riptides in the water. 34. Don't:eight_spoked_asterisk:
using java to sort an unsorted array. Answer: O(nlogn)
@param arr@return/**
* using java to sort an unsorted array. Answer: O(nlogn)
*
* @param arr
* @return*/
public static void sort(T[] arr) { if (arr == null || arr.length == 0) { return; } int n = arr.length; for (int i = 0; i arr[j + 1]: arr[j], arr[j + 1] = arr[j + 1], arr[j] return arr:white_check_mark: