fix webui

This commit is contained in:
hiyouga 2023-08-23 11:03:35 +08:00
parent c562307476
commit 1c702ad538
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class WebChatModel(ChatModel):
model_name_or_path=model_name_or_path,
checkpoint_dir=checkpoint_dir,
finetuning_type=finetuning_type,
quantization_bit=int(quantization_bit) if quantization_bit != "None" else None,
quantization_bit=int(quantization_bit) if quantization_bit and quantization_bit != "None" else None,
template=template,
system_prompt=system_prompt
)