support export push_to_hub #2183

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

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