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