Lightning-AI / Lightning-AI/litgpt

LoRA matrices dropout

Open
#1,398 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.7k
Forks
1.5k
Avg merge
15h 37m
Merged PRs (30d)
1

Description

Hi everyone,
[recently has been proposed](https://arxiv.org/abs/2404.09610v1) to apply the dropout directly on the LoRA weight matrices A and B: this favors sparsity which improve generalization and reduce overfitting. The dropout is only applied on input/output dimension to avoid reducing the matrices rank.
If you guys think that this could be helpful I can submit a PR with the feature.

![image](https://github.com/Lightning-AI/litgpt/assets/18405289/51c292e9-e081-4371-97df-7107bd1b587a)

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked paper and locate the existing LoRA implementation in litgpt. Compare the proposed input/output-only dropout with current behavior and clarify the API, defaults, and tests with maintainers. Done requires a settled feature specification or accepted implementation plan; this issue currently does not define an implementation target.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.