mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 16:18:10 +08:00
Update model_args.py
Former-commit-id: 09c0afd94a8a5f5b45a61b32c983d50e1b9e2941
This commit is contained in:
parent
8dc1969111
commit
ee5853c565
@ -145,9 +145,9 @@ class ModelArguments:
|
|||||||
default=1,
|
default=1,
|
||||||
metadata={"help": "The file shard size (in GB) of the exported model."},
|
metadata={"help": "The file shard size (in GB) of the exported model."},
|
||||||
)
|
)
|
||||||
export_device: Literal["cpu", "cuda", "npu"] = field(
|
export_device: Literal["cpu", "auto"] = field(
|
||||||
default="cpu",
|
default="cpu",
|
||||||
metadata={"help": "The device used in model export, use cuda to avoid addmm errors; use npu/cuda to speed up exporting."},
|
metadata={"help": "The device used in model export, use `auto` to accelerate exporting."},
|
||||||
)
|
)
|
||||||
export_quantization_bit: Optional[int] = field(
|
export_quantization_bit: Optional[int] = field(
|
||||||
default=None,
|
default=None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user