We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cceffc4 + cfdd005 commit 89e42d9Copy full SHA for 89e42d9
scripts/convert_flux2_to_diffusers.py
@@ -185,7 +185,7 @@ def load_original_checkpoint(
185
else:
186
raise ValueError("Please provide either `repo_id` or a local `checkpoint_path`")
187
188
- if "safetensors" in model_file:
+ if "safetensors" in model_file or "sft" in model_file:
189
original_state_dict = safetensors.torch.load_file(ckpt_path)
190
191
original_state_dict = torch.load(ckpt_path, map_location="cpu")
0 commit comments