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

[FIX] Invalid none check for loftq_config attribute in LoraConfig #2214

Closed
wants to merge 0 commits into from

Conversation

sirluk
Copy link
Contributor

@sirluk sirluk commented Nov 14, 2024

Fix for #2170

I improved the handling of loftq attributes in the __init__ method of LoraConfig.

Aside from fixing the issue of the None check I added a warning when init_lora_weights != "loftq" but loftq_config is not specified. In that case I think it also makes sense to reset loftq_config to an empty dict.

I added two testcases for the expected Error/Warning is raised.

fyi: on my local machine a lot of gpu tests are failing but I dont think it is related to the changes as the same tests are failing when using the repo state from the main branch.

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.

1 participant