引言
笔者今天在电脑上安装下LLaMA-Factory做下本地的模型调优。
从github上拉取代码git clone https://github.com/hiyouga/LLaMA-Factory.git.
pycharm建立工程,按照官网指导如下:
LLaMA-Factory 安装
在安装 LLaMA-Factory 之前,请确保您安装了下列依赖:
运行以下指令以安装 LLaMA-Factory 及其依赖:
git clone --depth 1 https://github.com/hiyouga/LLaMA-Factory.git cd
LLaMA-Factory pip install -e “.[torch,metrics]”
如果出现环境冲突,请尝试使用
pip install --no-deps -e . 解决
一、碰到问题
在pycharm的终端平台上,输入 pip install -e “.[torch,metrics]”

详细报错如下:
Windows PowerShell
版权所有(C) Microsoft Corporation。保留所有权利。
安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows
PS E:\study\ai\tuning\LLaMA-Factory> pip install -e ".[torch,metrics]"
Obtaining file:///E:/study/ai/tuning/LLaMA-Factory
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Collecting transformers!=4.46.*,!=4.47.*,!=4.48.0,!=4.52.0,<=4.52.4,>=4.45.0 (from llamafactory==0.9.3.dev0)
Using cached transformers-4.52.4-py3-none-any.whl.metadata (38 kB)
Collecting datasets<=3.6.0,>=2.16.0 (from llamafactory==0.9.3.dev0)
Using cached datasets-3.6.0-py3-none-any.whl.metadata (19 kB)
Collecting accelerate<=1.7.0,>=0.34.0 (from llamafactory==0.9.3.dev

最低0.47元/天 解锁文章
1074

被折叠的 条评论
为什么被折叠?



