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
File size: 760 Bytes
05762a1 56dc6c8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"_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
} |