Skip to content

diffusers.FluxPipeline has no .from_single_file() function #9141

Description

@lutusp

Describe the bug

At the moment one cannot use a local Flux1-dev or -schnell file for lack of an essential function "from_single_file()" in the diffusers.FluxPipeline library. The provided flag "local_files_only" for some reason doesn't solve this problem.

Reproduction

pipe = FluxPipeline.from_single_file(
'full path to local file, example /(full_path)/flux1-dev.safetensors',
torch_dtype=torch.bfloat16,
use_safetensors=True,
local_files_only=True
)

Logs

No response

System Info

$ diffusers-cli env

  • 🤗 Diffusers version: 0.30.0.dev0
  • Platform: Linux-5.15.0-113-generic-x86_64-with-glibc2.35
  • Running on Google Colab?: No
  • Python version: 3.10.12
  • PyTorch version (GPU?): 2.2.2+cu121 (True)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Huggingface_hub version: 0.24.5
  • Transformers version: 4.41.1
  • Accelerate version: 0.30.1
  • PEFT version: not installed
  • Bitsandbytes version: not installed
  • Safetensors version: 0.4.3
  • xFormers version: 0.0.25.post1
  • Accelerator: NVIDIA GeForce RTX 4090, 24564 MiB
  • Using GPU in script?: YES
  • Using distributed or parallel set-up in script?: NO

Who can help?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions