LLama Factory 安装部署
·
1.安装部署
1.1 创建虚拟环境
root@autodl-container-35c04cbe2d-0e8e1e68:~/autodl-tmp/llm# conda info --envs
root@autodl-container-35c04cbe2d-0e8e1e68: conda create -n LLamaFactory python==3.10 -y
1.2 进入虚拟环境
root@autodl-container-0d514e837b-16a5fb03:~# source activate LLamaFactory
1.2.1 如果需要量化操作优先安装(非必选)
(LLamaFactory) root@autodl-container-0d514e837b-16a5fb03:~# pip install auto_gptq
1.3 安装 LLamaFactory
1.3.1 下载文件
(LLamaFactory) root@autodl-container-0d514e837b-16a5fb03:~# git clone https://github.com/hiyouga/LLaMA-Factory.git
1.3.2 进入目录
(LLamaFactory) root@autodl-container-0d514e837b-16a5fb03:~/LLaMA-Factory# pip install -e .
1.3.4 启动web-ui
(LLamaFactory) root@autodl-container-0d514e837b-16a5fb03:~/LLaMA-Factory# llamafactory-cli webui
2.验证
2.2.1 启动出现如下内容

2.2.2 浏览器验证

更多推荐


所有评论(0)