Has Anyone Successfully Deployed FLUX on Hugging Face Inference Dedicated Endpoint?
Hey everyone,I’m currently working on deploying FLUX on a Hugging Face Inference Dedicated Endpoint, but I’ve run into a few challenges. I wanted to check if anyone here has had success deploying it.If you’ve managed to do it, I’d love to hear about your setup, tips, and any resources you found helpful. Specifically, I’m looking for insights on model optimization, handling large parameter sizes, or any custom configurations you used.
2024-09-09T03:27:37Z
Unfortunately, there is an example of same failure, if you don’t mind.I have never deployed to Endpoint, but deploying to Endpoint should be similar to deploying to the Serverless Inference API in terms of what needs to be done.I am aware that they both start with the conversion of safetensors files to Diffusers format and uploading to HF.I’ve gotten that far, but no matter how I try, the inference doesn’t work… it would work if this were SDXL or SD1.5, and it would work as well if it were frequently used and cached on the HF server, like FLUX.1 dev  in BFL itself, but that’s impossible.I think it’s fine to load from Zero GPU space, but it just doesn’t make sense.huggingface.coJohn6666/sumeshiflux1s-v002e-bf16-flux · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2024-09-09T07:28:42Z
Should be easy based on this guide:Controlled text-to-image generation with ControlNet on Inference Endpoints.I used that guide to deploy some custom Stable Diffusion models as well.Regarding model optimization of FLUX, highly recommend this repo:GitHub - sayakpaul/diffusers-torchao: End-to-end recipes for optimizing diffusion models with torchao and diffusers (inference and FP8 training).