@@ -170,9 +170,7 @@ def lora_state_dict(
170
170
force_download (`bool`, *optional*, defaults to `False`):
171
171
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
172
172
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
+
176
174
proxies (`Dict[str, str]`, *optional*):
177
175
A dictionary of proxy servers to use by protocol or endpoint, for example, `{'http': 'foo.bar:3128',
178
176
'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
@@ -194,7 +192,6 @@ def lora_state_dict(
194
192
# UNet and text encoder or both.
195
193
cache_dir = kwargs .pop ("cache_dir" , None )
196
194
force_download = kwargs .pop ("force_download" , False )
197
- resume_download = kwargs .pop ("resume_download" , None )
198
195
proxies = kwargs .pop ("proxies" , None )
199
196
local_files_only = kwargs .pop ("local_files_only" , None )
200
197
token = kwargs .pop ("token" , None )
@@ -235,7 +232,6 @@ def lora_state_dict(
235
232
weights_name = weight_name or LORA_WEIGHT_NAME_SAFE ,
236
233
cache_dir = cache_dir ,
237
234
force_download = force_download ,
238
- resume_download = resume_download ,
239
235
proxies = proxies ,
240
236
local_files_only = local_files_only ,
241
237
token = token ,
@@ -261,7 +257,6 @@ def lora_state_dict(
261
257
weights_name = weight_name or LORA_WEIGHT_NAME ,
262
258
cache_dir = cache_dir ,
263
259
force_download = force_download ,
264
- resume_download = resume_download ,
265
260
proxies = proxies ,
266
261
local_files_only = local_files_only ,
267
262
token = token ,
@@ -1427,9 +1422,7 @@ def lora_state_dict(
1427
1422
force_download (`bool`, *optional*, defaults to `False`):
1428
1423
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
1429
1424
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
+
1433
1426
proxies (`Dict[str, str]`, *optional*):
1434
1427
A dictionary of proxy servers to use by protocol or endpoint, for example, `{'http': 'foo.bar:3128',
1435
1428
'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
@@ -1450,7 +1443,6 @@ def lora_state_dict(
1450
1443
# UNet and text encoder or both.
1451
1444
cache_dir = kwargs .pop ("cache_dir" , None )
1452
1445
force_download = kwargs .pop ("force_download" , False )
1453
- resume_download = kwargs .pop ("resume_download" , False )
1454
1446
proxies = kwargs .pop ("proxies" , None )
1455
1447
local_files_only = kwargs .pop ("local_files_only" , None )
1456
1448
token = kwargs .pop ("token" , None )
@@ -1481,7 +1473,6 @@ def lora_state_dict(
1481
1473
weights_name = weight_name or LORA_WEIGHT_NAME_SAFE ,
1482
1474
cache_dir = cache_dir ,
1483
1475
force_download = force_download ,
1484
- resume_download = resume_download ,
1485
1476
proxies = proxies ,
1486
1477
local_files_only = local_files_only ,
1487
1478
token = token ,
@@ -1503,7 +1494,6 @@ def lora_state_dict(
1503
1494
weights_name = weight_name or LORA_WEIGHT_NAME ,
1504
1495
cache_dir = cache_dir ,
1505
1496
force_download = force_download ,
1506
- resume_download = resume_download ,
1507
1497
proxies = proxies ,
1508
1498
local_files_only = local_files_only ,
1509
1499
token = token ,
0 commit comments