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.
1 parent cceffc4 commit cfdd005Copy full SHA for cfdd005
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