llama-cookbook icon indicating copy to clipboard operation
llama-cookbook copied to clipboard

Update peft_finetuning.ipynb

Open ghLcd9dG opened this issue 1 year ago • 0 comments

What does this PR do?

This PR solve an old quesiton.

prepare_model_for_int8_training has been deprecated for quite some time, with PEFT v0.10.0, it has been removed. Please use prepare_model_for_kbit_training instead. @BenjaminBossan

Detail can be seen here. https://github.com/huggingface/peft/issues/1583

Fixes # (issue)

Feature/Issue validation/testing

Please describe the tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced. Please also list any relevant details for your test configuration.

  • [ ] Test A Logs for Test A

  • [ ] Test B Logs for Test B

Before submitting

  • [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • [x] Did you read the contributor guideline, Pull Request section?
  • [x] Was this discussed/approved via a Github issue? Please add a link to it if that's the case.
  • [ ] Did you make sure to update the documentation with your changes?
  • [ ] Did you write any new necessary tests?

Thanks for contributing 🎉!

ghLcd9dG avatar Apr 24 '24 08:04 ghLcd9dG