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

Peft update #557

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Peft update #557

wants to merge 8 commits into from

Conversation

artek0chumak
Copy link
Collaborator

@artek0chumak artek0chumak commented Feb 27, 2024

Make possible to use up-to-date PEFT library.

TODO:

  • Fix initialization
  • Fix inference without adapters
  • Fix init for quantized modules
  • Fix debug messages while server initialization

Copy link
Collaborator

@justheuristic justheuristic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

src/petals/utils/peft.py Outdated Show resolved Hide resolved

class LoraLinear8bitLt(AdapterContextMixin, lora.Linear8bitLt):
# TODO: Check if lora.Linear can be mixed with lora.Linear8bitLt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this checked?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I checked that it worked, and the outputs were the same.

artek0chumak and others added 2 commits March 29, 2024 12:23
Co-authored-by: Max Ryabinin <mryabinin0@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants