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
Download text_encoder/model-00002-of-00004.safetensors from Qwen/Qwen-Image-2.1: direct link, hf CLI and curl.
- Browser
- Download file 4.92 GB
-
https://huggingface.co/Qwen/Qwen-Image-2.1/resolve/d51d8a5eb184466b47ef1dea8a91c60c7313e30b/text_encoder/model-00002-of-00004.safetensors
- Command line
-
hf download hf://Qwen/Qwen-Image-2.1@d51d8a5eb184466b47ef1dea8a91c60c7313e30b/text_encoder/model-00002-of-00004.safetensors
-
curl -L -o model-00002-of-00004.safetensors https://huggingface.co/Qwen/Qwen-Image-2.1/resolve/d51d8a5eb184466b47ef1dea8a91c60c7313e30b/text_encoder/model-00002-of-00004.safetensors
4.92 GB
- Xet hash:
- 5f45ed80ac4d9d5bff9f9fce29fcc05fdfb859bc701180c97a1b1a12768883cd
- Size of remote file:
- 4.92 GB
- SHA256:
- 9047faccc0a6d98496a52d55f27be1c94a9c259d1e283fbea0128d054a948d42
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.