完全按照官方微调套件及notebook运行,进行推理时出现报错 #900
-
root@autodl-container-cdbf4cb59e-50bc78bb:~/ChatGLM3/finetune_demo# python3 inference_hf.py output/checkpoint-3000/ --prompt "类型#裙版型#显瘦材质#网纱风格#性感裙型#百褶裙下摆#压褶裙长#连衣裙* 裙衣门襟#拉链裙衣门襟#套头裙款式#拼接裙款式#拉链裙款式#木耳边裙款式#抽褶裙款式#不规则" File "/root/ChatGLM3/finetune_demo/inference_hf.py", line 56, in File "/root/ChatGLM3/finetune_demo/inference_hf.py", line 50, in main File "/root/ChatGLM3/finetune_demo/inference_hf.py", line 30, in load_model_and_tokenizer File "/root/miniconda3/envs/tiamo/lib/python3.10/site-packages/peft/auto.py", line 69, in from_pretrained File "/root/miniconda3/envs/tiamo/lib/python3.10/site-packages/peft/config.py", line 137, in from_pretrained TypeError: LoraConfig.init() got an unexpected keyword argument 'use_rslora' |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
一样错误,有无大佬解答一下 |
Beta Was this translation helpful? Give feedback.
-
更新到最新代码,这里重新写了 |
Beta Was this translation helpful? Give feedback.
-
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple, 重新安装下依赖即可解决 |
Beta Was this translation helpful? Give feedback.
更新到最新代码,这里重新写了