You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Chat-嬛嬛
仓库地址:https://github.com/KMnO4-zx/xlab-huanhuan.git
OPenXLab Chat嬛嬛 https://openxlab.org.cn/apps/detail/BYCJS/Chat_huanhuan
News
1月22日,Chat-嬛嬛应用在 OpenXLab,累计聊天次数已达 3.64k 次,感谢大家的支持~
1月18日,Chat-嬛嬛模型 魔搭 累计下载 3107 次!
介绍
Chat-甄嬛是利用《甄嬛传》剧本中所有关于甄嬛的台词和语句,基于InternLM2进行LoRA微调或全量微调得到的模仿甄嬛语气的聊天语言模型。
Chat-甄嬛,实现以《甄嬛传》为切入点,打造一套基于小说、剧本的个性化 AI 微调大模型完整流程,通过提供任一小说、剧本,指定人物角色,运行本项目完整流程,让每一位用户都基于心仪的小说、剧本打造一个属于自己的、契合角色人设、具备高度智能的个性化 AI。
欢迎大家来给InternLM2,点点star哦~
MdeolScope 模型
Chat-嬛嬛使用的是 InternLM2 的 7B 模型,模型参数量为 7B,模型已上传 ModelScope-Chat嬛嬛 ,可以直接下载推理。
数据集
Chat-嬛嬛 数据集采用《甄嬛传》剧本中所有关于甄嬛的台词和语句,共计 3000 余条,数据集样例:
使用脚本将剧本中关于甄嬛的对话集抽取出来,作为数据集使用。
也可以使用这个仓库的脚本Extract Dialogue,请GPT老师来帮助我们从小说中抽取对话集。
微调
有两种方案,我更倾向于使用 XTuner 训练, XTuner 有各个模型的一键训练脚本,很方便。且对 InternLM2 的支持度最高。
方案一:Transformers
使用 Transformers 的 Trainer 进行微调,具体脚本可参考internlm2-chat-lora,该脚本在
train
文件夹下。脚本内有较为详细的注释。方案二:XTuner
使用 XTuner 进行微调,具体脚本可参考internlm2_chat_7b_qlora_oasst1_e3_copy.py,该脚本在
train
文件夹下。脚本内有较为详细的注释。OpenXLab 部署 Chat-嬛嬛
仅需要 Fork 本仓库,然后在 OpenXLab 上创建一个新的项目,将 Fork 的仓库与新建的项目关联,即可在 OpenXLab 上部署 Chat-嬛嬛。
OPenXLab Chat嬛嬛 https://openxlab.org.cn/apps/detail/BYCJS/Chat_huanhuan
致谢
感谢上海人工智能实验室提供的算力~
感谢小助手对项目的支持~
人员:
Beta Was this translation helpful? Give feedback.
All reactions