Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Qwen
/
Qwen-Image-2.1

Text-to-Image
Diffusers
Safetensors
QwenImage21Pipeline
qwen
image-generation
image-editing
rgba
Model card Files Files and versions
xet
Community
43

Instructions to use Qwen/Qwen-Image-2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Qwen/Qwen-Image-2.1 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
Qwen-Image-2.1 / transformer
14.2 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
naykun's picture
naykun
Update to 0919 release checkpoint; fix vae scale_factor_spatial=16, remove transformer causal_block
840b4ad verified 7 days ago
  • config.json
    370 Bytes
    Update to 0919 release checkpoint; fix vae scale_factor_spatial=16, remove transformer causal_block 7 days ago
  • diffusion_pytorch_model-00001-of-00002.safetensors
    9.97 GB
    xet
    Update to 0919 release checkpoint; fix vae scale_factor_spatial=16, remove transformer causal_block 7 days ago
  • diffusion_pytorch_model-00002-of-00002.safetensors
    4.26 GB
    xet
    Update to 0919 release checkpoint; fix vae scale_factor_spatial=16, remove transformer causal_block 7 days ago
  • diffusion_pytorch_model.safetensors.index.json
    30.3 kB
    Upload folder using huggingface_hub 11 days ago