Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

PrunaAI
/
P-Q-Image-2.1

Text-to-Image
Diffusers
qwen
image-generation
image-editing
rgba
lora
distilled
few-step
Model card Files Files and versions
xet
Community
9

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

  • Libraries
  • Diffusers

    How to use PrunaAI/P-Q-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")
    pipe.load_lora_weights("PrunaAI/P-Q-Image-2.1")
    
    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
P-Q-Image-2.1 / assets
38.7 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 16 commits
simlang's picture
simlang
fix: removed legend in end-to-end plots
0cff381 1 minute ago
  • P-Q-Image-2.1-i2i-1024-end-to-end.png
    232 kB
    xet
    fix: removed legend in end-to-end plots 1 minute ago
  • P-Q-Image-2.1-i2i-1024.png
    165 kB
    xet
    fix: update correct plots about 3 hours ago
  • P-Q-Image-2.1-i2i-2048.png
    166 kB
    xet
    fix: update correct plots about 3 hours ago
  • P-Q-Image-2.1-prompt-upsampling.png
    370 kB
    xet
    fix: full renaming about 4 hours ago
  • P-Q-Image-2.1-t2i-1024-all.png
    166 kB
    xet
    fix: redo timings with kv caching enabled + add end-to-end plots about 2 hours ago
  • P-Q-Image-2.1-t2i-1024-end-to-end.png
    233 kB
    xet
    fix: removed legend in end-to-end plots 1 minute ago
  • P-Q-Image-2.1-t2i-1024.png
    166 kB
    xet
    fix: update correct plots about 3 hours ago
  • P-Q-Image-2.1-t2i-2048.png
    166 kB
    xet
    fix: update correct plots about 3 hours ago
  • P-Q-Image-2.1-v02-generation.png
    138 kB
    xet
    fix: redo timings with kv caching enabled + add end-to-end plots about 2 hours ago
  • P-Q-Image-2.1.png
    30.8 MB
    xet
    fix: update images about 4 hours ago
  • edit_grid.jpg
    5.91 MB
    xet
    fix: update correct plots about 3 hours ago
  • latency_t2i_1k_2k.png
    189 kB
    xet
    fix: update correct plots about 3 hours ago