File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ def push_to_hub(
220220 git_user : Optional [str ] = None ,
221221 git_email : Optional [str ] = None ,
222222 config : Optional [dict ] = None ,
223+ skip_lfs_files : bool = False ,
223224 ) -> str :
224225 """
225226 Upload model checkpoint or tokenizer files to the Hub while
@@ -261,6 +262,8 @@ def push_to_hub(
261262 pushing files to the hub.
262263 config (`dict`, *optional*):
263264 Configuration object to be saved alongside the model weights.
265+ skip_lfs_files (`bool`, *optional*, defaults to `False`):
266+ Whether to skip git-LFS files or not.
264267
265268
266269 Returns:
@@ -308,6 +311,7 @@ def push_to_hub(
308311 use_auth_token = use_auth_token ,
309312 git_user = git_user ,
310313 git_email = git_email ,
314+ skip_lfs_files = skip_lfs_files ,
311315 )
312316 repo .git_pull (rebase = True )
313317
You can’t perform that action at this time.
0 commit comments