Skip to main content

Alibaba Qwen-Image-2.1: New 7B Open-Weight Model

Alibaba releases Qwen-Image-2.1, a 7B open-weight model combining text-to-image and editing with mixed-granularity attention and a 60.28 benchmark score.

AI-written
Inewgen
22 Sep 2026Source: MarkTechPost4 min read (0 views)
Share
Alibaba Qwen-Image-2.1: New 7B Open-Weight Model

Stock photo for illustration only, not from the actual event

Font size
  • Alibaba launches Qwen-Image-2.1, a 7B open-weight model for both generation and editing.
  • Utilizes mixed-granularity attention to cut redundant calculations via KV cache reuse.
  • Scores 60.28 on Qwen-Image-Bench, outperforming open alternatives like FLUX 2 Max.
  • Supports integration with Diffusers, ComfyUI, vLLM-Omni, SGLang, and various hardware platforms.

The development team at Alibaba has officially introduced Qwen-Image-2.1, a 7-billion parameter open-weight model designed to handle both text-to-image generation and image editing within a single architecture. This new release reduces the footprint to roughly one-third of the original 20B Qwen-Image model shipped in August 2025 under the Apache 2.0 license. While the core diffusion transformer stands at 7B parameters, the serving pipeline also loads an 8B Qwen3-VL encoder for robust capacity planning.

Performance speedups in Qwen-Image-2.1 stem directly from its attention mask design. Text tokens utilize a token-level causal mask, while image tokens employ a chunk-level bidirectional mask within individual images—an approach dubbed mixed-granularity attention by the Qwen team. Because the condition prefix sits ahead of the noisy latent, it never attends to the latent directly, allowing its keys and values to remain fixed across all denoising steps. The model computes text and input images once during the initial step and reuses that prefix KV cache for every remaining step, compounding efficiency gains as reference image counts increase.

The architectural shift toward mixed-granularity attention addresses a major bottleneck in processing large-scale generative image pipelines. By caching and reusing the prefix KV values, the model eliminates redundant compute overhead during iterative sampling loops, enabling a relatively compact 7B model to handle complex multi-reference image generation tasks efficiently without compromising fidelity.

artificial intelligence code software development screen

Stock photo for illustration only, not from the actual event

When evaluated on the team's in-house benchmark, Qwen-Image-Bench, Qwen-Image-2.1 achieves an overall score of 60.28. This places it ahead of Nano Banana 2.0 at 59.82 and surpasses every listed open-weight competitor, whereas the 32B open model FLUX 2 Max sits at 55.33. Meanwhile, six closed-source models score higher, led by GPT Image 2.5 Sunburst at 67.01.

Never miss the latest news?

Subscribe to get news summaries by email - not often enough to be annoying.

โฆษณา

60.28Qwen-Image-Bench Score
7BDiffusion Transformer Size
8BQwen3-VL Encoder Size

For immediate deployment, the model is available for research and evaluation with Day 0 support spanning Diffusers, ComfyUI, vLLM-Omni, SGLang, and LightX2V. Commercial deployments, however, require a separate license obtained directly from the Qwen team. Installation prerequisites include PyTorch 2.4.0 or newer, transformers 5.17 or newer, Diffusers built from source, accelerate, and pillow.

A basic pipeline implementation can be executed as follows:

  • Initialize the pipeline via QwenImage21Pipeline.from_pretrained("Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16).to("cuda")
  • Pass a prompt such as prompt="A neon shop sign that reads \"QWEN IMAGE 2.1\", rainy night" with num_inference_steps=40
  • Handle image editing using the exact same pipeline by passing the image= argument alongside one or more reference images
  • Utilize pipe.enable_model_cpu_offload() to alleviate memory constraints when operating on smaller GPUs

On the serving front, vLLM-Omni introduces FP8 quantization, prefix KV caching, CUDA Graph decoding, and tensor parallelism. Concurrently, SGLang brings Cache-DiT, CUDA graphs, multi-GPU parallelism, and component offloading. Beyond standard NVIDIA hardware, the release extends support to AMD Radeon GPUs via ROCm and eight additional chip platforms via FlagOS. The Qwen team also rolled out two prompt-rewriting models—fine-tuned Qwen3.5-VL 9B checkpoints tailored for text-to-image and editing tasks—designed to expand brief prompts into detailed instructions and automatically determine optimal aspect ratios.

Source: MarkTechPost

Comments

Leave a Comment
0/2000

Found something wrong in this article? Report an issue with this article