WritingReplicateReplicatepublished May 15, 2025seen 5d

Run 30,000+ LoRAs on Hugging Face with Replicate

Open original ↗

Captured source

source ↗
published May 15, 2025seen 5dcaptured 3dhttp 200method plain

Run 30,000+ LoRAs on Hugging Face with Replicate – Replicate blog

Replicate Blog

Run 30,000+ LoRAs on Hugging Face with Replicate

Posted May 15, 2025 by shridharathi

LoRAs have become the leading way to train image models to express specific concepts or styles. Think Studio Ghibli stills or capturing the vibe of 80s cyberpunk .

Hugging Face is a go-to spot for sharing and trying LoRAs. Artists, researchers, and tinkerers upload their custom styles there, making them easy for anyone to use. It’s grown into one of the largest open collections of LoRAs online.

Now, LoRAs can run directly on the Hugging Face Hub using Replicate for inference. This is possible thanks to a small update to Hugging Face’s inference client that hooks into Replicate behind the scenes. The result: fast, low-cost inference with your favorite LoRAs, right from the Hugging Face interface.

How it works

When you choose a supported LoRA model on Hugging Face and select Replicate as the inference provider, Hugging Face routes the request to Replicate’s black-forest-labs/flux-dev-lora model. We use the requested LoRA as a dynamic input to that model, passed in as the lora_weights parameter.

That means every LoRA shares the same backend model on Replicate, and we swap in the correct weights on the fly. For example:

Copy

const input = { prompt: "style of 80s cyberpunk, a portrait photo" , lora_weights: "https://huggingface.co/fofr/flux-80s-cyberpunk" , };

const output = await replicate. run ( "black-forest-labs/flux-dev-lora" , { input });

This lets us support all the LoRAs in Hugging Face’s Flux library without needing a separate hosted model for each one.

Try it out

You can browse all supported LoRAs on Hugging Face (there’s a lot).

Next: Ideogram 3.0 on Replicate

Notability

notability 6.0/10

Notable integration of many LoRAs, but not a flagship release