拉取镜像
bash
git clone --depth 1 https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
创建虚拟环境
bash
conda create -n llamafactory python=3.10
conda activate llamafactory
安装所需依赖
bash
pip install -e ".[torch,vllm,optimum,auto_gptq]"