[Bugfix] Fix --lora-modules name=path parsing when path contains '=' (#53353)
Signed-off-by: hungh <hungh@nvidia.com>
This commit is contained in:
@@ -47,7 +47,7 @@ class LoRAParserAction(argparse.Action):
|
|||||||
if item in [None, ""]: # Skip if item is None or empty string
|
if item in [None, ""]: # Skip if item is None or empty string
|
||||||
continue
|
continue
|
||||||
if "=" in item and "," not in item: # Old format: name=path
|
if "=" in item and "," not in item: # Old format: name=path
|
||||||
name, path = item.split("=")
|
name, path = item.split("=", 1)
|
||||||
lora_list.append(LoRAModulePath(name, path))
|
lora_list.append(LoRAModulePath(name, path))
|
||||||
else: # Assume JSON format
|
else: # Assume JSON format
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user