fix: disable LoRA export for now

Workaround for #152
This commit is contained in:
Philipp Emanuel Weidmann
2026-02-14 16:56:12 +05:30
parent 1179013999
commit 025ab3a881
+23 -18
View File
@@ -101,26 +101,31 @@ def obtain_merge_strategy(settings: Settings) -> 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)"
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",
),
value="merge",
),
Choice(
title="Save LoRA adapter only (can be merged later)",
value="adapter",
),
],
)
Choice(
title="Cancel",
value="cancel",
),
],
)
return strategy
if strategy == "cancel":
return None
return strategy
else:
return "merge"
def run():