Skip to content

Fixed rslora scaling in lora_manager - #1669

Closed
TheCodeWrangler wants to merge 2 commits into
NVIDIA:mainfrom
TheCodeWrangler:main
Closed

TheCodeWrangler wants to merge 2 commits into
NVIDIA:mainfrom
TheCodeWrangler:main

Conversation

@TheCodeWrangler

@TheCodeWrangler TheCodeWrangler commented May 24, 2024 •

Copy link
Copy Markdown
Contributor

Addressing issue mentioned in
#1668

When weights were trained using rslora scaling they should be scaled differently. Code initially was always normalizing by rank regardless of "use_rslora" flag in huggingface adapter_config.json file.

Scaling has also been updated in examples/hf_lora_convert.py

@byshiue

byshiue commented May 27, 2024

Copy link
Copy Markdown
Collaborator

Could you share a model trained by rslora?

@byshiue
byshiue self-requested a review May 28, 2024 01:06
@byshiue byshiue self-assigned this May 28, 2024
@byshiue byshiue added the triaged Issue has been triaged by maintainers label May 28, 2024
@nv-guomingz

Copy link
Copy Markdown
Collaborator

Hi @TheCodeWrangler , thanks for your contributing. We've merged your contribution into code base and will add you into contributor list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged triaged Issue has been triaged by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants