Instructions to use Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner", 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
Download text_encoder/special_tokens_map.json from Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner/resolve/main/text_encoder/special_tokens_map.json
- Command line
-
hf download hf://Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner/text_encoder/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Efficient-Large-Model/SANA-WM_bidirectional-diffusers-refiner/resolve/main/text_encoder/special_tokens_map.json
662 Bytes
| { | |
| "boi_token": "<start_of_image>", | |
| "bos_token": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eoi_token": "<end_of_image>", | |
| "eos_token": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "image_token": "<image_soft_token>", | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |