I can’t figure out how to load a diffusion model from single files, like flux1-dev.safetensors for FLUX.1 (black-forest-labs/FLUX.1-dev at main)
It works fine when using FluxPipeline.from_pretrained() which uses the multi-file format, but when I try FluxPipeline.from_single_file() on the above file I get:
diffusers.loaders.single_file_utils.SingleFileComponentError: Failed to load CLIPTextModel. Weights for this component appear to be missing in the checkpoint.
Please load the component before passing it in as an argument to `from_single_file`.
text_encoder = CLIPTextModel.from_pretrained('...')
pipe = FluxPipeline.from_single_file(<checkpoint path>, text_encoder=text_encoder)
So I was wondering, if the file only contains the transformer, which might be converted and inserted into the multi-file tree. Looking inside, though, I found that the number of tensors per layer is different and the dimensions are not quite the same, either.
There must be some way to use that file through diffusers, right?