fix webui

This commit is contained in:
hiyouga
2024-12-19 06:48:03 +00:00
parent 933647e680
commit 369cca8110
2 changed files with 2 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ class WebChatModel(ChatModel):
rope_scaling=get("top.rope_scaling") if get("top.rope_scaling") in ["linear", "dynamic"] else None,
infer_backend=get("infer.infer_backend"),
infer_dtype=get("infer.infer_dtype"),
trust_remote_code=True,
)
if checkpoint_path:

View File

@@ -84,6 +84,7 @@ def save_model(
export_quantization_dataset=export_quantization_dataset,
export_device=export_device,
export_legacy_format=export_legacy_format,
trust_remote_code=True,
)
if checkpoint_path: