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

LLM: add qlora finetuning example using trl.SFTTrainer #10183

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

plusbang
Copy link
Contributor

@plusbang plusbang commented Feb 20, 2024

Description

Background: https://github.com/analytics-zoo/nano/issues/1047
First add example of providing bigdl-llm compatible PeftModel to trl.SFTTrainer

4. How to test?

  • Unit test
  • Local test

@plusbang plusbang added the llm label Feb 20, 2024
@@ -0,0 +1,55 @@
# Example of QLoRA Finetuning with BigDL-LLM

This simple example demonstrates how to finetune a llama2-7b model use BigDL-LLM 4bit optimizations using [Intel GPUs](../../../README.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

with TRL library on Intel GPU

Copy link
Contributor Author

Choose a reason for hiding this comment

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

with TRL library on Intel GPU

Have updated.

@plusbang plusbang requested a review from jason-dai February 21, 2024 08:25
@jason-dai
Copy link
Contributor

LGTM

Copy link
Contributor

@jason-dai jason-dai left a comment

Choose a reason for hiding this comment

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

LGTM

@plusbang plusbang merged commit 6e12fec into intel:main Feb 21, 2024
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants