Skip to content

[Bug] LoRA adapter can't process successfully when LoRA Path is None #4739

@Qiaolin-Yu

Description

@Qiaolin-Yu

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
  • 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
  • 5. Please use English, otherwise it will be closed.

Describe the bug

Currently, LoRA in SGLang cannot handle none lora_path properly.

Reproduction

Some cases below will have issues.

  1. First batch input lora_path as [a, a]. Second batch input lora_path as [None, None]. The second batch will be processed as if you had input lora_path as [a, a].
  2. If you input lora_path as [a, None], the output of the second prompt will be almost empty.

Environment

Main branch

Metadata

Metadata

Labels

bugSomething isn't workinglora

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions