1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

redundant model initialisation removed final

This commit is contained in:
“devanshi00”
2026-01-21 12:31:43 +05:30
parent 8cc38a75d3
commit 3bc3fdb035

View File

@@ -1296,8 +1296,8 @@ class ModelMixin(torch.nn.Module, PushToHubMixin):
dduf_entries=dduf_entries,
)
if not isinstance(resolved_model_file, list):
resolved_model_file = [resolved_model_file]
if not isinstance(resolved_model_file, list):
resolved_model_file = [resolved_model_file]
# set dtype to instantiate the model under:
# 1. If torch_dtype is not None, we use that dtype