mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 08:08:09 +08:00
tiny fix
Former-commit-id: 69dac21ed9f07977b4540eb838a0ef93f3d3abc4
This commit is contained in:
parent
8aaf1185a5
commit
d1cda4ec68
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user