mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-17 20:30:36 +08:00
fix oom issues in export
Former-commit-id: b7ccc882a192aa1e25b1e5816f875ea304282412
This commit is contained in:
@@ -145,7 +145,7 @@ class ModelArguments:
|
||||
default=1,
|
||||
metadata={"help": "The file shard size (in GB) of the exported model."},
|
||||
)
|
||||
export_device: str = field(
|
||||
export_device: Literal["cpu", "cuda"] = field(
|
||||
default="cpu",
|
||||
metadata={"help": "The device used in model export, use cuda to avoid addmm errors."},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user