support export push_to_hub #2183

This commit is contained in:
hiyouga committed 2024-01-16 23:59:42 +08:00
1 parent a83fb6d3ff
commit 42859f0734
2 files changed
+14 -1

No files matched your search

+4
View File
@@ -106,6 +106,10 @@ class ModelArguments:
default=False,
metadata={"help": "Whether or not to save the `.bin` files instead of `.safetensors`."}
)
export_hub_model_id: Optional[str] = field(
default=None,
metadata={"help": "The name of the repository if push the model to the Hugging Face hub."}
)
def __post_init__(self):
self.compute_dtype = None