-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Add deprecation warning for lora_extra_vocab_size #23635
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
Add deprecation warning for lora_extra_vocab_size #23635
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds a deprecation warning for the lora_extra_vocab_size parameter in LoRAConfig. While this is a good step towards phasing out the feature, I've found a critical issue where the existing validation logic contradicts the deprecation. Users are unable to set lora_extra_vocab_size to 0 to disable the feature without causing a ValueError. My review includes a detailed comment on how to address this to ensure a smooth deprecation path for users.
7d5f267 to
0ea0c4a
Compare
|
Please fix the pre-cmmit failure |
7b20c21 to
5aa1e64
Compare
Done. It got passed. But other pipelines seem failed because of GPU occupied. Maybe they should be re-triggered. |
|
fastcheck is not necessary to merge a PR, I'll enable the main tests to see if this broke anything |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bunch of LoRA tests are now failing. Could you fix the tests to work with the new default?
Signed-off-by: Jinheng Li <ahengljh@gmail.com>
Signed-off-by: Jinheng Li <ahengljh@gmail.com>
df6dda6 to
baf7e52
Compare
I believe it should be ok now, I remove some changes and keep warning message only now. |
Somehow my local pre-commit didn't find the format error as the pipeline did. I will fix it manually. @jeejeelee @hmellor |
The previous commit changed the default value from 256 to 0, which caused test_v1_llm_by_default to fail. This commit keeps the original default value of 256 while still adding the deprecation warning to notify users that this feature will be removed in v0.12.0. The deprecation warning will always be shown when LoRAConfig is created, alerting users to the upcoming removal without breaking existing code. Signed-off-by: Jinheng Li <ahengljh@gmail.com>
baf7e52 to
2699b51
Compare
Signed-off-by: Jinheng Li <ahengljh@gmail.com>
Signed-off-by: Jinheng Li <ahengljh@gmail.com>
Signed-off-by: Jinheng Li <ahengljh@gmail.com>
Signed-off-by: Jinheng Li <ahengljh@gmail.com>
Purpose
Add deprecation warning for
lora_extra_vocab_sizeparameter as suggested in PR #23540. This is a gentler approach than immediate removal, giving users time to adapt their code.Related to: #23474
Test Plan
Test that the deprecation warning appears when using LoRA with non-zero
lora_extra_vocab_size:Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.