-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Fix pipeline+peft interaction #36480
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
Conversation
c09dc8c to
769cdc3
Compare
|
Ready for core maintainer review! cc @Cyrilvallez @ArthurZucker |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Cyrilvallez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Indeed much better not to silently skip the adapters! 🫠
769cdc3 to
70fb6e2
Compare
70fb6e2 to
fa5696d
Compare
* Fix pipeline-peft interaction * once again you have committed a debug breakpoint * Remove extra testing line * Add a test to check adapter loading * Correct adapter path * make fixup * Remove unnecessary check * Make check a little more stringent
* Fix pipeline-peft interaction * once again you have committed a debug breakpoint * Remove extra testing line * Add a test to check adapter loading * Correct adapter path * make fixup * Remove unnecessary check * Make check a little more stringent
When you pass a PEFT adapter checkpoint to
pipeline(), it actually loads the base model without the adapter. The reason is a bug in thepipeline()code, which has to look up the base model repo to get the config/architecture for the model, but accidentally totally clobbers the adapter path when it does.Fixes #36473