liucongg / ChatGLM-Finetuning

基于ChatGLM-6B、ChatGLM2-6B、ChatGLM3-6B模型,进行下游具体任务微调,涉及Freeze、Lora、P-tuning、全参微调等
2.66k stars 294 forks source link

peft==0.5.0怎么安装 #123

Closed zhl970124 closed 10 months ago

zhl970124 commented 10 months ago

运行代码的训练部分时报错:/xx/anaconda3/envs/llm/lib/python3.10/site-packages/peft/tuners/lora/model.py AttributeError: 'LoraModel' object has no attribute 'backward' 查看 peft版本发现是0.3.0 但是使用pip install peft==0.5.0 报错: 找不到0.5.0版本。请问如何解决这个问题 非常感谢!!

liucongg commented 10 months ago

pip install peft==0.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple