-
Notifications
You must be signed in to change notification settings - Fork 2k
[Feature] Dynamic Lora Support in SGLang #2686
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
Comments
it easy to implement dynamic lora, just copy lora_manager.init_loras() as lora_manager.update_loras(), and add a judge
` |
If it's more complex than the above solution, I'd love a coded explanation on how Loras are applied to the model, an, if multiple adaptors can be applied simultaneously, from different knowledge bases like finance and math adaptors. |
|
After reading relevant codes, I feel the above solution is not enough to support the feature well because |
@Fridge003 Thanks for pointing this out, and I hope to see your solutions! |
Hi. Has there been any progress on Dynamically switching LorRas in SGLang? Thanks in advance |
|
Hi, this feature is still under development and I have started a relevant PR draft #2891. The feature design is also described in this PR. |
Cool! @Fridge003 |
This issue has been automatically closed due to inactivity. Please feel free to reopen it if needed. |
Hi, has any updates now? thanks for the hard work in advance |
Checklist
Motivation
In SGLang, I would to dynamically apply domain-specific Lora adapters to smaller/local models. Normally, I use SGLang for inference. Recently, I've switched to Vllm which already has the ability to unload/load adaptors: https://docs.vllm.ai/en/latest/usage/lora.html
If this feature is already exists in SGlang, can you add an example in the documentation?
Related resources
https://docs.vllm.ai/en/latest/usage/lora.html
The text was updated successfully, but these errors were encountered: