This commit is contained in:
hiyouga
2024-04-15 15:32:58 +08:00
parent d1fb6c72b5
commit efc345c4b0
4 changed files with 18 additions and 8 deletions

View File

@@ -129,6 +129,10 @@ class ModelArguments:
default=1,
metadata={"help": "The file shard size (in GB) of the exported model."},
)
export_device: str = field(
default="cpu",
metadata={"help": "The device used in model export."},
)
export_quantization_bit: Optional[int] = field(
default=None,
metadata={"help": "The number of bits to quantize the exported model."},