Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error , is it a version issue? #2319

Open
4 tasks
zhangyangniubi opened this issue Jan 10, 2025 · 1 comment
Open
4 tasks

Import error , is it a version issue? #2319

zhangyangniubi opened this issue Jan 10, 2025 · 1 comment

Comments

@zhangyangniubi
Copy link

System Info

When I execute the finetune.py file, an error occurs as follows: cannot import name 'prepare_model_for_int8_training'.Is it a version issue? My version is 0.14.0.

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

cannot import name 'prepare_model_for_int8_training' from 'peft' (/path/python3.10/site-packages/peft/init.py)

Expected behavior

Who can help me answer this question,thks

@BenjaminBossan
Copy link
Member

The function has been renamed to prepare_model_for_kbit_training a long time ago, please change the name in the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants