Repository navigation
[Model] LoRA with lm_head and embed_tokens fully trained - 4 - #11714
sergeykochetkov wants to merge 24 commits into
Conversation
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
|
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
Signed-off-by: s.kochetkov <s.m.kochetkov@tbank.ru>
|
My PR with modules_to_save in LoRA moved here, please review |
|
/ready |
|
for lora code, please ping @jeejeelee for review. |
|
This pull request has merge conflicts that must be resolved before it can be |
|
This feature isn't really very compatible with multi-LoRA. |
Why? |
|
Cases like this - have you considered them? |
modules_to_save ['resample' ] is not implemented, it will raise exception. This is a task for another PR. modules_to_save:['token_embeds'] - will work |
|
If we support We also appreciate your willingness to contribute this. Give me some time to think through this issue. |
|
Can your provided test script run successfully? I can't get it to run locally. |
|
This will be useful to us, we have a model where we have trained lora on lm_head. |
|
any updates on this? Would greatly appreciate this feature getting through. |
|
same issues |
|
I have similar issue of lm_head, is this one fixed or still in development? |
|
Also have the same issue |
|
@sergeykochetkov hello However, when combining t-tech/T-lite-it-1.0 with SergeyKochetkovT/qwen2.5-lora-with-modules-to-save for testing, all the tests passed successfully. Is this the only combination of base model and LoRA model that can pass the test? My python environment is as follows:
|
|
@jeejeelee I’m following the implementation of this feature closely. Why hasn't this PR been merged yet? Are there any plans to merge it in the future? If cases like this can be solved,has the PR implementing the Is there anything else that needs to be taken into account? I’m currently thinking about doing some work and optimizations on top of it. |
|
This pull request has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this pull request should remain open. Thank you! |
|
any update? |
|
This pull request has merge conflicts that must be resolved before it can be |
|
Looking forward for this feature! |
|
This pull request has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this pull request should remain open. Thank you! |
|
Hi @sergeykochetkov, the pre-commit checks have failed. Please run: uv pip install pre-commit
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, Tip Is
|
|
This pull request has merge conflicts that must be resolved before it can be |
|
This pull request has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this pull request should remain open. Thank you! |
|
This pull request has been automatically closed due to inactivity. Please feel free to reopen if you intend to continue working on it. Thank you! |

FIX #4186 #2816
Support lm_head and embed_tokens fully trained in LoRA.
We found that quality of our adapters significantly drops without fully-trained lm_head or lm_head trained in LoRA style.
This is functionality of peft modules_to_save=[lm_head, mebed_tokens] https://huggingface.co/docs/peft/v0.12.0/en/package_reference/&num;peft.LoraConfig.modules_to_save
The idea is to replace base_model
VocabParallelEmbeddingandParallelLMHeadby layers loaded frommodules_to_saveat inferencing LoRAThis PR is clean recreation of #8082