@@ -318,7 +318,6 @@ def get_cached_module_file(
318318 module_file : str ,
319319 cache_dir : Optional [Union [str , os .PathLike ]] = None ,
320320 force_download : bool = False ,
321- resume_download : Optional [bool ] = None ,
322321 proxies : Optional [dict [str , str ]] = None ,
323322 token : Optional [Union [bool , str ]] = None ,
324323 revision : Optional [str ] = None ,
@@ -348,9 +347,6 @@ def get_cached_module_file(
348347 force_download (`bool`, *optional*, defaults to `False`):
349348 Whether or not to force to (re-)download the configuration files and override the cached versions if they
350349 exist.
351- resume_download:
352- Deprecated and ignored. All downloads are now resumed by default when possible.
353- Will be removed in v5 of Transformers.
354350 proxies (`dict[str, str]`, *optional*):
355351 A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
356352 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request.
@@ -409,7 +405,6 @@ def get_cached_module_file(
409405 cache_dir = cache_dir ,
410406 force_download = force_download ,
411407 proxies = proxies ,
412- resume_download = resume_download ,
413408 local_files_only = local_files_only ,
414409 token = token ,
415410 revision = revision ,
@@ -469,7 +464,6 @@ def get_cached_module_file(
469464 f"{ Path (module_file ).parent / module_needed } .py" ,
470465 cache_dir = cache_dir ,
471466 force_download = force_download ,
472- resume_download = resume_download ,
473467 proxies = proxies ,
474468 token = token ,
475469 revision = revision ,
@@ -496,7 +490,6 @@ def get_class_from_dynamic_module(
496490 pretrained_model_name_or_path : Union [str , os .PathLike ],
497491 cache_dir : Optional [Union [str , os .PathLike ]] = None ,
498492 force_download : bool = False ,
499- resume_download : Optional [bool ] = None ,
500493 proxies : Optional [dict [str , str ]] = None ,
501494 token : Optional [Union [bool , str ]] = None ,
502495 revision : Optional [str ] = None ,
@@ -539,9 +532,6 @@ def get_class_from_dynamic_module(
539532 force_download (`bool`, *optional*, defaults to `False`):
540533 Whether or not to force to (re-)download the configuration files and override the cached versions if they
541534 exist.
542- resume_download:
543- Deprecated and ignored. All downloads are now resumed by default when possible.
544- Will be removed in v5 of Transformers.
545535 proxies (`dict[str, str]`, *optional*):
546536 A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
547537 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request.
@@ -606,7 +596,6 @@ def get_class_from_dynamic_module(
606596 module_file + ".py" ,
607597 cache_dir = cache_dir ,
608598 force_download = force_download ,
609- resume_download = resume_download ,
610599 proxies = proxies ,
611600 token = token ,
612601 revision = code_revision ,
0 commit comments