Files
ModelHub XC 9260fe0325 初始化项目,由ModelHub XC社区提供模型
Model: baicai003/llama-3-8b-Instruct-chinese_v2
Source: Original Platform
2026-07-28 22:56:17 +08:00

2.2 KiB
Raw Permalink Blame History

frameworks, license, tasks
frameworks license tasks
Pytorch
Apache License 2.0
chatbot

模型介绍

首个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

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