Instructions to use black-forest-labs/FLUX.2-klein-4b-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use black-forest-labs/FLUX.2-klein-4b-fp8 with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Could you please provide an example of how this could be run in diffusers? Thank you!
Thanks for the contribution to the open source community! I would like to know if you could provide an example of how one could load this fp8 version in diffusers.
+1
+1
Hey, we’ve converted the weights from the ComfyUI format to Diffusers.
You can find the weights here: https://huggingface.co/Photoroom/FLUX.2-klein-4b-fp8-diffusers
Thank you!!
how to use this model in python,like this
pipe = Flux2KleinPipeline.from_pretrained(
args.model_path,
torch_dtype=dtype,
low_cpu_mem_usage=False # True
)However, some error messages appeared, indicating that files was missing.
@sayakpaul I missed your message — what kind of PR would you like me to open? Do you have any guidelines I should follow?