Run 30,000+ LoRAs on Hugging Face with Replicate
May 15, 2025

Summary
This post details a new integration where Hugging Face's inference client can route requests to Replicate's backend models, specifically using the `black-forest-labs/flux-dev-lora` model. This allows for dynamic loading of LoRA weights from Hugging Face directly into Replicate's inference infrastructure. The mechanism involves passing the LoRA weights as a `lora_weights` parameter to the Replicate API, enabling the execution of over 30,000 LoRAs without needing a separate hosted model for each. This significantly expands the accessibility and usability of LoRAs for image generation.