LLaMA Factory (1)

LLaMA Factory 使用笔记(一)

安装

需要注意的是 python 版本用 3.11。

安装步骤:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# git clone https://gitee.com/hiyouga/LLaMA-Factory.git

conda create -n finetune python=3.11

conda activate finetune

pip install uv

# cd LLaMA-Factory

uv pip install -e ".[torch,metrics]" -i https://mirrors.aliyun.com/pypi/simple

llamafactory-cli version

python -c "import torch; print('CUDA available:', torch.cuda.is_available())"

llamafactory-cli webui