-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Usage]: Pass multiple LoRA modules through YAML config #9655
Comments
@jeejeelee I saw that, but passing multiple LoRA by using a blank space I tried:
I receive that stack trace:
|
If you have multiple LoRAs, YAML passing is currently not supported. As a temporary solution, you can append args like: --config your.yaml --lora_modules lora0=path0 lora1=path1 |
Ok, thank you for your answer! |
BTW, Is passing |
I don't know if it's a common practice, but we currently have a YAML file with engine configs and args that in fact is a Kubernetes config map. Then we mount and read this config map as a |
If that's the case, you can also consider converting the |
Yeah, I tried as I wrote in my question, but something seems going wrong during the parsing.
|
If you using |
Uh ok, that is useful. Thanks! |
How would you like to use vllm
I would like to pass multiple LoRA modules to the vLLM engine, but currently I'm receiving error while parsing the
lora_modules
property.The
LoRAParserAction
class receives aSequence[str]
in case you want to use multiple LoRA modules.I have a YAML config file in which I declare the vLLM engine arguments, like this:
In that way (
name=path
for the LoRA module), all works and I'm able to perform inference with LoRA (I setenable_lora
argument later in the code, not in the YAML file).Now I would like to pass multiple
lora_modules
, but I'm receiving parsing error in every different ways I tried:lora_modules: "ai-models/adv_perizia_exp7_run6=ai-models/adv_perizia_exp7_run6 ai-models/perizia_exp7_run3=ai-models/perizia_exp7_run3"
(blanks space between LoRA modules)lora_modules: ["ai-models/adv_perizia_exp7_run6=ai-models/adv_perizia_exp7_run6","ai-models/perizia_exp7_run3=ai-models/perizia_exp7_run3"]
lora_modules: > "ai-models/adv_perizia_exp7_run6=ai-models/adv_perizia_exp7_run6\nai-models/perizia_exp7_run3=ai-models/perizia_exp7_run3"
(\n between LoRA modules)How can I pass multiple LoRA modules correctly? Thanks in advance.
The text was updated successfully, but these errors were encountered: