Instructions to use Efficient-Large-Model/SANA-WM_bidirectional-diffusers 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 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", 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
transformer: diffusers TimestepEmbedding keys, drop unused y_embedding, drop obsolete config keys
56dc6c8 verified Download transformer/config.json from Efficient-Large-Model/SANA-WM_bidirectional-diffusers: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/Efficient-Large-Model/SANA-WM_bidirectional-diffusers/resolve/main/transformer/config.json
- Command line
-
hf download hf://Efficient-Large-Model/SANA-WM_bidirectional-diffusers/transformer/config.json
-
curl -L -o config.json https://huggingface.co/Efficient-Large-Model/SANA-WM_bidirectional-diffusers/resolve/main/transformer/config.json
760 Bytes
| { | |
| "_class_name": "SanaWMTransformer3DModel", | |
| "_diffusers_version": "0.39.0.dev0", | |
| "cam_attn_compress": 1, | |
| "caption_channels": 2304, | |
| "chunk_plucker_channels": 48, | |
| "chunk_plucker_post_attn_blocks": 20, | |
| "conv_kernel_size": 4, | |
| "cross_norm": true, | |
| "ffn_type": "GLUMBConvTemp", | |
| "fp32_attention": true, | |
| "image_size": 720, | |
| "in_channels": 128, | |
| "init_cam_from_base": true, | |
| "k_conv_only": true, | |
| "learn_sigma": false, | |
| "linear_head_dim": 112, | |
| "mixed_precision": "bf16", | |
| "mlp_acts": [ | |
| "silu", | |
| "silu", | |
| null | |
| ], | |
| "mlp_ratio": 3.0, | |
| "pos_embed_type": "wan_rope", | |
| "pred_sigma": false, | |
| "qk_norm": true, | |
| "softmax_every_n": 4, | |
| "t_kernel_size": 3, | |
| "use_chunk_plucker_post_attn": true, | |
| "use_pe": true, | |
| "y_norm": true | |
| } |