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

QLoRA subcommand #1119

Closed
wants to merge 90 commits into from
Closed

QLoRA subcommand #1119

wants to merge 90 commits into from

Conversation

carmocca
Copy link
Contributor

qlora = lora with bnb and true precision.

I think bf16-true is fine as a default because bitsandbytes doesnt' support the old cards well (like my laptop)

awaelchli and others added 30 commits February 29, 2024 13:38
Co-authored-by: rasbt <[email protected]>
Co-authored-by: Carlos Mocholí <[email protected]>
Co-authored-by: Sebastian Raschka <[email protected]>
Co-authored-by: awaelchli <[email protected]>
Co-authored-by: awaelchli <[email protected]>
@carmocca carmocca self-assigned this Mar 14, 2024
carmocca and others added 3 commits March 14, 2024 15:32
Comment on lines 117 to 122
"finetune.qlora.lora_query": True,
"finetune.qlora.lora_key": True,
"finetune.qlora.lora_value": True,
"finetune.qlora.lora_projection": True,
"finetune.qlora.lora_mlp": True,
"finetune.qlora.lora_head": True,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is not what we have in the configs, I'd like to first rerun the finetuning and update the configs together here.

@carmocca carmocca changed the base branch from wip to main March 15, 2024 15:05
@carmocca
Copy link
Contributor Author

carmocca commented May 6, 2024

@rasbt Do you know if this subcommand is still necessary? Or should I close this?

@rasbt
Copy link
Collaborator

rasbt commented May 6, 2024

I think that if we go the litgpt finetune REPO_ID route, then subcommands would probably not work. It would then probably have to be litgpt finetune REPO_ID --method qlora. If that's correct, you can close this, but please correct me if I'm wrong.

@carmocca
Copy link
Contributor Author

carmocca commented May 7, 2024

Code is magic and anything is possible, but in general, you are correct.

Note also that to support that kind of notation, a replacement for jsonargparse will be necessary because its argument introspection capabilities are not complex enough to support that notation. I tried in the past unsuccessfully.

@carmocca carmocca closed this May 7, 2024
@carmocca carmocca deleted the carmocca/qlora branch May 7, 2024 13:11
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.

3 participants