1、环境准备

2、 下载LLamaFactory
# 拉取LLamaFactory
git clone --depth 1 https://github.com/hiyouga/LLaMA-Factory.git
# 进入LLamaFactory目录
cd LLaMA-Factory
# 安装依赖
pip install -e ".[torch,metrics]"
#端口映射
export GRADIO_SERVER_PORT=7860 GRADIO_ROOT_PATH=/${JUPYTER_NAME}/proxy/7860/
#启动LLamaFactory
llamafactory-cli webui
3、点击 http://0.0.0.0:7860,打开UI界面
