Instructions to use SiliconNetwork/Qwen-Image-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SiliconNetwork/Qwen-Image-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SiliconNetwork/Qwen-Image-4bit", 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 tokenizer/tokenizer_config.json from SiliconNetwork/Qwen-Image-4bit: direct link, hf CLI and curl.
- Browser
- Download file 269 Bytes
-
https://huggingface.co/SiliconNetwork/Qwen-Image-4bit/resolve/main/tokenizer/tokenizer_config.json
- Command line
-
hf download hf://SiliconNetwork/Qwen-Image-4bit/tokenizer/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/SiliconNetwork/Qwen-Image-4bit/resolve/main/tokenizer/tokenizer_config.json
269 Bytes
| { | |
| "add_prefix_space": null, | |
| "backend": "tokenizers", | |
| "bos_token": null, | |
| "eos_token": "<|endoftext|>", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<|endoftext|>", | |
| "tokenizer_class": "Qwen2Tokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |