From 4535a5412acd4d72d895f2e567a65d14e104f364 Mon Sep 17 00:00:00 2001 From: Ross Wightman Date: Fri, 7 Jun 2024 13:40:31 -0700 Subject: [PATCH] Change default serialization for push_to_hf_hub to 'both' --- timm/models/_hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: