Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/diffusers/loaders/single_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs) -> Self:
is_legacy_loading = False

if torch_dtype is not None and not isinstance(torch_dtype, torch.dtype):
torch_dtype = torch.float32
logger.warning(
f"Passed `torch_dtype` {torch_dtype} is not a `torch.dtype`. Defaulting to `torch.float32`."
)
torch_dtype = torch.float32

# We shouldn't allow configuring individual models components through a Pipeline creation method
# These model kwargs should be deprecated
Expand Down
Loading