diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

Add support for LongCat-Image

Open junqiangwu opened this issue 2 months ago • 5 comments

What does this PR do?

This PR introduces the LongCat-Image Series into the diffusers library. The LongCat-Image Series comprises powerful and highly efficient 6B-parameter models, featuring both a state-of-the-art image generation model and a versatile image editing model. Designed to be friendly for consumer-grade hardware, this series demonstrates strong capabilities in high-fidelity image synthesis and precise, controllable image editing. The technical report and checkpoints for both models have been released.

Thanks for the support of @yiyixuxu @apolinario.

  • GitHub: https://github.com/meituan-longcat/LongCat-Image
  • LongCat-Image on Hugging Face: https://huggingface.co/meituan-longcat/LongCat-Image
  • LongCat-Image-Edit on Hugging Face: https://huggingface.co/meituan-longcat/LongCat-Image-Edit

junqiangwu avatar Dec 11 '25 16:12 junqiangwu

I think you need to add the doc page into the index here https://github.com/huggingface/diffusers/blob/main/docs/source/en/_toctree.yml

also can you run make style and make fix-copies?

yiyixuxu avatar Dec 12 '25 18:12 yiyixuxu

Thanks for the feedback — we’ve updated the code accordingly and run make style and make fix-copies in this commit. Please let us know if you spot anything else that should be addressed. @yiyixuxu

junqiangwu avatar Dec 12 '25 22:12 junqiangwu

@bot /style

yiyixuxu avatar Dec 15 '25 02:12 yiyixuxu

Style bot fixed some files and pushed the changes.

github-actions[bot] avatar Dec 15 '25 02:12 github-actions[bot]

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

My apologies. During further testing with additional examples, I identified an issue and have already implemented a fix. I’m not completely sure whether this change might affect your merge.

junqiangwu avatar Dec 15 '25 12:12 junqiangwu

load_lora_weights(), unload_lora_weights these doesn't work with LongCatImagePipeline. @junqiangwu image

ovi054 avatar Dec 16 '25 14:12 ovi054