You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D:\AnaConda\envs\chatLei-weitiao-test\python.exe D:/project/LAW-GPT-main/src/demo.py
Traceback (most recent call last):
File "D:\project\LAW-GPT-main\src\demo.py", line 14, in
from peft import (
ImportError: cannot import name 'get_peft_model' from 'peft' (unknown location)
运行环境是windows,用的anaconda
D:\AnaConda\envs\chatLei-weitiao-test\python.exe D:/project/LAW-GPT-main/src/demo.py
Traceback (most recent call last):
File "D:\project\LAW-GPT-main\src\demo.py", line 14, in
from peft import (
ImportError: cannot import name 'get_peft_model' from 'peft' (unknown location)
Process finished with exit code 1
提示没找到peft的四个模块,
get_peft_model,
LoraConfig,
TaskType,
BottleneckConfig,
我也按照提示做了
#其中peft需要本地安装
cd peft
pip install -e .
也执行成功了。我搜索整个确实也没找到四个模块
The text was updated successfully, but these errors were encountered: