[Bugfix][LoRA] Reject PEFT adapter features vLLM does not implement (#60225)

Signed-off-by: suraj <surajsharan85@gmail.com>
Co-authored-by: linitra24 <renshuang.zhou@daocloud.io>
This commit is contained in:
Suraj Sharan
2026-10-09 16:39:58 +04:00
committed by GitHub
co-authored by linitra24
parent c17fadcfdc
commit 1ee69dde9c
5 changed files with 83 additions and 1 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ def parse_fine_tuned_lora_name(
parts = name.split(".")
if (parts[-1] == "weight" or parts[-1] == "bias") and len(parts) >= 2:
if parts[-2] in ["lora_A", "lora_B"]:
if parts[-2] in ["lora_A", "lora_B"] and parts[-1] == "weight":
new_name = ".".join(parts[start_index:-2])
return new_name, parts[-2] == "lora_A"
# For modules_to_save in classification.