@@ -170,9 +170,7 @@ def lora_state_dict(
170170 force_download (`bool`, *optional*, defaults to `False`):
171171 Whether or not to force the (re-)download of the model weights and configuration files, overriding the
172172 cached versions if they exist.
173- resume_download:
174- Deprecated and ignored. All downloads are now resumed by default when possible. Will be removed in v1
175- of Diffusers.
173+
176174 proxies (`Dict[str, str]`, *optional*):
177175 A dictionary of proxy servers to use by protocol or endpoint, for example, `{'http': 'foo.bar:3128',
178176 'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
@@ -194,7 +192,6 @@ def lora_state_dict(
194192 # UNet and text encoder or both.
195193 cache_dir = kwargs .pop ("cache_dir" , None )
196194 force_download = kwargs .pop ("force_download" , False )
197- resume_download = kwargs .pop ("resume_download" , None )
198195 proxies = kwargs .pop ("proxies" , None )
199196 local_files_only = kwargs .pop ("local_files_only" , None )
200197 token = kwargs .pop ("token" , None )
@@ -235,7 +232,6 @@ def lora_state_dict(
235232 weights_name = weight_name or LORA_WEIGHT_NAME_SAFE ,
236233 cache_dir = cache_dir ,
237234 force_download = force_download ,
238- resume_download = resume_download ,
239235 proxies = proxies ,
240236 local_files_only = local_files_only ,
241237 token = token ,
@@ -261,7 +257,6 @@ def lora_state_dict(
261257 weights_name = weight_name or LORA_WEIGHT_NAME ,
262258 cache_dir = cache_dir ,
263259 force_download = force_download ,
264- resume_download = resume_download ,
265260 proxies = proxies ,
266261 local_files_only = local_files_only ,
267262 token = token ,
@@ -1427,9 +1422,7 @@ def lora_state_dict(
14271422 force_download (`bool`, *optional*, defaults to `False`):
14281423 Whether or not to force the (re-)download of the model weights and configuration files, overriding the
14291424 cached versions if they exist.
1430- resume_download (`bool`, *optional*, defaults to `False`):
1431- Whether or not to resume downloading the model weights and configuration files. If set to `False`, any
1432- incompletely downloaded files are deleted.
1425+
14331426 proxies (`Dict[str, str]`, *optional*):
14341427 A dictionary of proxy servers to use by protocol or endpoint, for example, `{'http': 'foo.bar:3128',
14351428 'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
@@ -1450,7 +1443,6 @@ def lora_state_dict(
14501443 # UNet and text encoder or both.
14511444 cache_dir = kwargs .pop ("cache_dir" , None )
14521445 force_download = kwargs .pop ("force_download" , False )
1453- resume_download = kwargs .pop ("resume_download" , False )
14541446 proxies = kwargs .pop ("proxies" , None )
14551447 local_files_only = kwargs .pop ("local_files_only" , None )
14561448 token = kwargs .pop ("token" , None )
@@ -1481,7 +1473,6 @@ def lora_state_dict(
14811473 weights_name = weight_name or LORA_WEIGHT_NAME_SAFE ,
14821474 cache_dir = cache_dir ,
14831475 force_download = force_download ,
1484- resume_download = resume_download ,
14851476 proxies = proxies ,
14861477 local_files_only = local_files_only ,
14871478 token = token ,
@@ -1503,7 +1494,6 @@ def lora_state_dict(
15031494 weights_name = weight_name or LORA_WEIGHT_NAME ,
15041495 cache_dir = cache_dir ,
15051496 force_download = force_download ,
1506- resume_download = resume_download ,
15071497 proxies = proxies ,
15081498 local_files_only = local_files_only ,
15091499 token = token ,
0 commit comments