Instructions to use hf-internal-testing/tiny-qwenimage21-modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-qwenimage21-modular with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-qwenimage21-modular", 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 transformer/config.json from hf-internal-testing/tiny-qwenimage21-modular: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-qwenimage21-modular/resolve/main/transformer/config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-qwenimage21-modular/transformer/config.json
-
curl -L -o config.json https://huggingface.co/hf-internal-testing/tiny-qwenimage21-modular/resolve/main/transformer/config.json
442 Bytes
| { | |
| "_class_name": "QwenImage21Transformer2DModel", | |
| "_diffusers_version": "0.41.0.dev0", | |
| "_name_or_path": "/Volumes/T7 Shield/ai-lab/tiny/qwenimage21-modular/standard", | |
| "attention_head_dim": 16, | |
| "axes_dims_rope": [ | |
| 4, | |
| 6, | |
| 6 | |
| ], | |
| "causal_condition": true, | |
| "context_in_dim": 16, | |
| "eps": 1e-06, | |
| "in_channels": 8, | |
| "mlp_ratio": 2, | |
| "num_attention_heads": 2, | |
| "num_layers": 2, | |
| "out_channels": 8, | |
| "patch_size": 1 | |
| } | |