llama3 instruct 中文版_v2

我要开发同款
匿名用户2024年07月31日
41阅读
所属分类ai、llama、Pytorch
开源地址https://modelscope.cn/models/baicai003/llama-3-8b-Instruct-chinese_v2
授权协议Apache License 2.0

作品详情

模型介绍

首个llama3 中文版系列模型,v1版本 2024-04-19 下午1点
该版本是instruct 中文版 (本系列第3个模型),支持system prompt自定义,基于英文原版instruct增量170k优质中文对话数据进行sft得到
Github:https://github.com/CrazyBoyM/llama3-Chinese-chat

模型推理

首先拉取本模型和Github仓库代码

git clone https://github.com/CrazyBoyM/llama3-Chinese-chat --depth 1
git lfs clone https://www.modelscope.cn/baicai003/llama-3-8b-Instruct-chinese_v2.git

接着

pip install -U streamlit

通过以上命令安装streamlit,然后通过下面命令启动网页以便访问,'/path/to/model'需要改成你的权重下载路径。
V1版本:

cd llama3-Chinese-chat
streamlit run deploy/web_streamlit_for_v1.py /path/to/model --theme.base="dark"

Instruct版本 (支持自定义system prompt)

cd llama3-Chinese-chat
streamlit run deploy/web_streamlit_for_instruct.py /path/to/model --theme.base="dark"

模型下载

SDK下载

#安装ModelScope
pip install modelscope
#SDK模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('baicai003/llama-3-8b-Instruct-chinese_v2')

Git下载

#Git模型下载
git clone https://www.modelscope.cn/baicai003/llama-3-8b-Instruct-chinese_v2.git

如果您是本模型的贡献者,我们邀请您根据模型贡献文档,及时完善模型卡片内容。

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论