add npu for model export

This commit is contained in:
MengqingCao committed 2024-06-05 07:06:40 +00:00
1 parent 82a565362c
commit 07045c876a
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -145,9 +145,9 @@ class ModelArguments:
default=1,
metadata={"help": "The file shard size (in GB) of the exported model."},
)
export_device: Literal["cpu", "cuda"] = field(
export_device: Literal["cpu", "cuda", "npu"] = field(
default="cpu",
metadata={"help": "The device used in model export, use cuda to avoid addmm errors."},
metadata={"help": "The device used in model export, use cuda to avoid addmm errors; use npu/cuda to speed up exporting."},
)
export_quantization_bit: Optional[int] = field(
default=None,