Run this model with HF Jobs
Run Qwen/Qwen-Image on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Qwen/Qwen-Image. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Qwen/Qwen-Image on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Qwen/Qwen-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Qwen/Qwen-Image 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", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files14 unmodified lines151617181920212 unmodified lines2425262728293024 unmodified lines555657585960616213 unmodified lines7677787980818214 unmodified lines</p><p align="center"><img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/merge.png" width="1600"/><p>## Introduction2 unmodified lines## News- 2025.08.04: We released [Qwen-Image Tech Report]().- 2025.08.04: We released Qwen-Image weights! Check at [huggingface](https://huggingface.co/Qwen/Qwen-Image) and [Modelscope](https://modelscope.cn/models/Qwen/Qwen-Image)!- 2025.08.04: We released Qwen-Image! Check our [blog](https://qwenlm.github.io/blog/qwen-image) for more details!24 unmodified linespipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)pipe = pipe.to(device)positive_magic = "Ultra HD, 4K, cinematic composition." # for english prompt# positive_magic = "超清,4K,电影级构图" # for chinese prompt# Generate imageprompt = '''A coffee shop entrance features a chalkboard sign reading "Qwen Coffee 😊 $2 per cup," with a neon light beside it displaying "通义千问". Next to it hangs a poster showing a beautiful Chinese woman, and beneath the poster is written "π≈3.1415926-53589793-23846264-33832795-02384197". Ultra HD, 4K, cinematic composition'''13 unmodified lineswidth, height = aspect_ratios["16:9"]image = pipe(prompt=prompt + positive_magic,width=width,height=height,num_inference_steps=50,14 unmodified lines151617181920212 unmodified lines2425262728293024 unmodified lines5556575859606162636413 unmodified lines787980818283848514 unmodified lines</p><p align="center"><img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/merge3.png" width="1600"/><p>## Introduction2 unmodified lines## News- 2025.08.04: We released the [Technical Report](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/Qwen_Image.pdf) of Qwen-Image!- 2025.08.04: We released Qwen-Image weights! Check at [huggingface](https://huggingface.co/Qwen/Qwen-Image) and [Modelscope](https://modelscope.cn/models/Qwen/Qwen-Image)!- 2025.08.04: We released Qwen-Image! Check our [blog](https://qwenlm.github.io/blog/qwen-image) for more details!24 unmodified linespipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)pipe = pipe.to(device)positive_magic = ["en": "Ultra HD, 4K, cinematic composition." # for english prompt,"zh": "超清,4K,电影级构图" # for chinese prompt,]# Generate imageprompt = '''A coffee shop entrance features a chalkboard sign reading "Qwen Coffee 😊 $2 per cup," with a neon light beside it displaying "通义千问". Next to it hangs a poster showing a beautiful Chinese woman, and beneath the poster is written "π≈3.1415926-53589793-23846264-33832795-02384197". Ultra HD, 4K, cinematic composition'''13 unmodified lineswidth, height = aspect_ratios["16:9"]image = pipe(prompt=prompt + positive_magic["en"],negative_prompt=negative_prompt,width=width,height=height,num_inference_steps=50,
README.md+8-5