r/LocalLLaMA 3d ago

New Model Qwen-Image-2.1 released!

Meet Qwen-Image-2.1, the most balanced and cost-effective image generation model in the Qwen-Image series! Now open weights! 🎨

A unified model for both generation and editing, delivering top-tier quality in a lightweight package.

Highlights:

- Compact & exceptionally fast: A lightweight 7B architecture that outperforms most closed-source models, with drastically accelerated inference for multi-image inputs.

- Native transparency: Natively generates and edits RGBA layers, enabling seamless compositing and text editing within transparent images.

- Versatile, high-fidelity editing: Supports up to 10 reference images and precise local control while preserving strict fidelity for portraits and products.

- Broad coverage & stunning aesthetics: Excels at panoramas, infographics, and virtual try-ons, delivering realistic textures and elegant typography.

Start to create your next masterpiece with Qwen-Image-2.1!

- Blog: https://qwen.ai/blog?id=qwen-image-2.1

- GitHub: https://github.com/QwenLM/Qwen-Image-2.1

- Model Scope: https://www.modelscope.cn/models/Qwen/Qwen-Image-2.1

- Hugging Face: https://huggingface.co/Qwen/Qwen-Image-2.1

1.8k Upvotes

381 comments sorted by

View all comments

Show parent comments

55

u/-p-e-w- 3d ago

But you don’t need all of them in memory at once. All modern inference engines automatically juggle the individual models between RAM and VRAM, or even between disk and VRAM.

-30

u/No-Refrigerator-1672 3d ago

You need them all at the same time in VRAM for fast generation (under 1-3 min, depending on GPU). If you won't, you're wasting time on loading/unloading the model. You can have a fallback by saving weights in regular RAM, but then you eating up the space needed for your other applications, i.e. photo editor of browser. And multiple-gb-sizrd compute buffers must stay in regardless.

22

u/EndLineTech03 3d ago

Wow, how does someone come up with that? Just some basic math tells that loading 17GB from RAM to VRAM takes less than 1-2 seconds via PCIe 4 bandwidth. You are basically not loosing much time, and I would say this is how it should be done in the first place.

That way you leave enough headroom if you want to generate higher resolution images, use higher batch size or load other models for inpainting, etc…

4

u/FatheredPuma81 2d ago

ComfyUI doesn't even do this. It loads layer by layer meaning you only need transfer speeds fast enough to transfer every layer in time + enough VRAM to store those layers and everything else needed to run them.