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

Upgrade Peft version to 0.10.0 for LLM finetune #10886

Merged
merged 13 commits into from May 7, 2024

Conversation

qiyuangong
Copy link
Contributor

Description

  • Upgrade Peft version to 0.10.0 in HF-Peft example

1. Why the change?

2. User API changes

3. Summary of the change

4. How to test?

  • N/A
  • Unit test
  • Application test
  • Document test
  • ...

5. New dependencies

@qiyuangong qiyuangong marked this pull request as draft April 25, 2024 09:50
@qiyuangong qiyuangong marked this pull request as ready for review April 30, 2024 02:38
@qiyuangong qiyuangong changed the title Upgrade Peft version to 0.10.0 in HF-Peft example Upgrade Peft version to 0.10.0 for LLM finetune Apr 30, 2024
@qiyuangong qiyuangong requested a review from plusbang May 6, 2024 01:26
@qiyuangong
Copy link
Contributor Author

Will upgrade peft version in other examples in other pull request.

@qiyuangong
Copy link
Contributor Author

Revert changes in HF-PEFT finetune.py .

@qiyuangong
Copy link
Contributor Author

#10930

@qiyuangong
Copy link
Contributor Author

Note that this PR will remove support for Peft 0.5.0.


self.fan_in_fan_out = fan_in_fan_out
self._active_adapter = adapter_name
self.update_layer(
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that we don't need to address case of qa_lora=True additionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Peft doesn't add qalora support yet. huggingface/peft#986 We still need to handle qa_lora with our code.

Copy link
Contributor

@plusbang plusbang left a comment

Choose a reason for hiding this comment

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

LGTM

@qiyuangong qiyuangong requested a review from cyita May 7, 2024 07:02
Copy link
Contributor

@cyita cyita left a comment

Choose a reason for hiding this comment

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

LGTM

@qiyuangong qiyuangong merged commit d7ca5d9 into intel-analytics:main May 7, 2024
31 checks passed
@qiyuangong qiyuangong deleted the peft010 branch May 7, 2024 07:09
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