Revert "fix: disable LoRA export for now" (#308)

This reverts commit 025ab3a881.

Co-authored-by: Andrew Patrikalakis <anrp@tri.global>
This commit is contained in:
anrp
2026-05-02 00:37:47 +00:00
committed by GitHub
parent ebb5e651df
commit da92f745de
+18 -23
View File
@@ -127,31 +127,26 @@ def obtain_merge_strategy(settings: Settings, model: Model) -> str | None:
)
print()
strategy = prompt_select(
"How do you want to proceed?",
choices=[
Choice(
title="Merge LoRA into full model"
+ (
""
if settings.quantization == QuantizationMethod.NONE
else " (requires sufficient RAM)"
),
value="merge",
strategy = prompt_select(
"How do you want to proceed?",
choices=[
Choice(
title="Merge LoRA into full model"
+ (
""
if settings.quantization == QuantizationMethod.NONE
else " (requires sufficient RAM)"
),
Choice(
title="Cancel",
value="cancel",
),
],
)
value="merge",
),
Choice(
title="Save LoRA adapter only (can be merged later)",
value="adapter",
),
],
)
if strategy == "cancel":
return None
return strategy
else:
return "merge"
return strategy
def run():