peft icon indicating copy to clipboard operation
peft copied to clipboard

cannot import name 'get_peft_config' from 'peft' (unknown location)

Open jiyuwangbupt opened this issue 1 year ago • 1 comments

System Info

cannot import name 'get_peft_config' from 'peft' (unknown location)

Who can help?

No response

Information

  • [ ] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder
  • [ ] My own task or dataset (give details below)

Reproduction

from peft import get_peft_config, get_peft_model, PrefixTuningConfig, TaskType, PeftType cannot import name 'get_peft_config' from 'peft' (unknown location)

Expected behavior

from peft import get_peft_config, get_peft_model, PrefixTuningConfig, TaskType, PeftType cannot import name 'get_peft_config' from 'peft' (unknown location)

jiyuwangbupt avatar May 20 '24 11:05 jiyuwangbupt

This probably means that your PEFT installation is broken. Can you import anything else successfully from PEFT?

BenjaminBossan avatar May 21 '24 09:05 BenjaminBossan

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

github-actions[bot] avatar Jun 19 '24 15:06 github-actions[bot]