Skip to content

finetune_lora upgrades #2086

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

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

Conversation

ysjprojects
Copy link
Collaborator

@ysjprojects ysjprojects commented Jul 3, 2025

Integrated some improvements to finetune_lora based on @lantiga's reference implementation.

Most of the optimizations are there, but I did not include the model registry feature because litgpt does not currently support litmodels and adding litmodels support is a PR in itself IMO.

Still WIP as I need to run some experiments (and potentially having to modify some test cases)

@ysjprojects
Copy link
Collaborator Author

UPDATE: tested it in a 4xA100 environment, works well for multi-gpu setup

@ysjprojects ysjprojects changed the title (WIP) finetune_lora upgrades finetune_lora upgrades Jul 8, 2025
Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

LGTM, just confused about the legacy staff

@ysjprojects
Copy link
Collaborator Author

ysjprojects commented Jul 8, 2025

LGTM, just confused about the legacy staff

Essentially it's the exact lora implementation before this PR.

The changes are quite breaking so my rationale is it may be apt to still give users the option to run the previous version of lora.py, hence the name legacy

Copy link
Contributor

@KaelanDt KaelanDt left a comment

Choose a reason for hiding this comment

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

Looks great! I think we should add some tests to new functions though, left some comments

@ysjprojects ysjprojects enabled auto-merge (squash) July 10, 2025 06:36
@ysjprojects ysjprojects requested a review from KaelanDt July 10, 2025 06:37
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