Download example.fa3.py from zerogpu-aoti/Qwen-Image: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/zerogpu-aoti/Qwen-Image/resolve/main/example.fa3.py
- Command line
-
hf download hf://zerogpu-aoti/Qwen-Image/example.fa3.py
-
curl -L -o example.fa3.py https://huggingface.co/zerogpu-aoti/Qwen-Image/resolve/main/example.fa3.py
324 Bytes
| """ | |
| Requirements: | |
| - kernels package installed | |
| - DIFFUSERS_ENABLE_HUB_KERNELS=true | |
| """ | |
| import torch | |
| from diffusers import QwenImagePipeline | |
| pipe = QwenImagePipeline.from_pretrained("Qwen/Qwen-Image", torch_dtype=torch.bfloat16).to(device) | |
| spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/Qwen-Image", variant="fa3") | |