bash: llamafactory-cli: command not found #3568
解决方法:
cd 你路径下的\LLaMA-Factory
# 重新安装依赖
pip install -e .[metrics]
复制代码
2. Cannot open data\dataset_info.json due to [Errno 2] No such file or directory: ‘data\dataset_info.json’. Cannot open data\dataset_info.json due to [Errno 2] No such file or directory: ‘data\dataset_info.json’. #2116
解决方法:
# 需要在LLaMA-Factory这个目录下运行webui
cd 你路径下的\LLaMA-Factory
python src/webui.py
复制代码
3. 微调合并之后,加载模型报错AttributeError: can't set attribute
作者这里用的chatglm2和chatglm3。解决方法:
把原chatglm的模型文件中除了 bin 和 pytorch_model.bin.index.json 以外的文件全部复制到导出模型文件的目录中,并且覆盖