保证已经安装Anoconda和Pycharm
首先将Firefly项目代码库clone到本地:
git clone https://github.com/yangjianxin1/Firefly.git
进入项目目录,安装相应的python包:
cd ./Firefly
pip install -r requirements.txt
完成基本配置后,
大模型下载:Qwen2-0.5B-Instruct
直接进入以下网址下载:
https://modelscope.cn/models/qwen/Qwen2-0.5B-Instruct/files
下载后,移送文件至Firefly项目以下 位置:
然后,修改chat.py文件中 model_name_or_path:
最后,即可运行成功: