From da80d41c78a8bafc8adac7b91609097b0603a0ff Mon Sep 17 00:00:00 2001 From: hiyouga <467089858@qq.com> Date: Thu, 27 Jun 2024 00:36:04 +0800 Subject: [PATCH] tiny fix Former-commit-id: 29c710da3a8984c5f6522a79368344544319ebce --- src/llamafactory/webui/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/llamafactory/webui/utils.py b/src/llamafactory/webui/utils.py index 4f313e4e..069a2a2a 100644 --- a/src/llamafactory/webui/utils.py +++ b/src/llamafactory/webui/utils.py @@ -61,11 +61,11 @@ def can_quantize_to(quantization_method: str) -> "gr.Dropdown": Returns the available quantization bits. """ if quantization_method == QuantizationMethod.BITS_AND_BYTES.value: - return gr.Dropdown(choices=["none", "8", "4"]) + return gr.Dropdown(choices=["none", "8", "4"], value="none") elif quantization_method == QuantizationMethod.HQQ.value: - return gr.Dropdown(choices=["none", "8", "6", "5", "4", "3", "2", "1"]) + return gr.Dropdown(choices=["none", "8", "6", "5", "4", "3", "2", "1"], value="none") elif quantization_method == QuantizationMethod.EETQ.value: - return gr.Dropdown(choices=["none", "8"]) + return gr.Dropdown(choices=["none", "8"], value="none") def change_stage(training_stage: str = list(TRAINING_STAGES.keys())[0]) -> Tuple[List[str], bool]: