diff --git a/timm/models/_hub.py b/timm/models/_hub.py index a36321bf94..e3eafc48ce 100644 --- a/timm/models/_hub.py +++ b/timm/models/_hub.py @@ -285,7 +285,7 @@ def push_to_hf_hub( model_config: Optional[dict] = None, model_card: Optional[dict] = None, model_args: Optional[dict] = None, - safe_serialization: Union[bool, Literal["both"]] = False, + safe_serialization: Union[bool, Literal["both"]] = 'both', ): """ Arguments: