fix: Repair the issue where quantization failed after merging the adapter.

This commit is contained in:
Liuww 2024-07-24 14:31:29 +08:00 committed by GitHub
parent bb0a37dc06
commit f91a9a250a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def save_model(
error = ALERTS["err_no_dataset"][lang]
elif export_quantization_bit not in GPTQ_BITS and not checkpoint_path:
error = ALERTS["err_no_adapter"][lang]
elif export_quantization_bit in GPTQ_BITS and isinstance(checkpoint_path, list):
elif export_quantization_bit in GPTQ_BITS and checkpoint_path and isinstance(checkpoint_path, list):
error = ALERTS["err_gptq_lora"][lang]
if error: