Instructions to use Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632", 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 Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632/resolve/main/transformer/config.json
- Command line
-
hf download hf://Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632/transformer/config.json
-
curl -L -o config.json https://huggingface.co/Lawrence-cj/Sana_1600M_1024px_BF16_diffusers_ch5632/resolve/main/transformer/config.json
499 Bytes
| { | |
| "_class_name": "SanaTransformer2DModel", | |
| "_diffusers_version": "0.32.0.dev0", | |
| "attention_bias": false, | |
| "attention_head_dim": 32, | |
| "caption_channels": 2304, | |
| "cross_attention_dim": 2240, | |
| "cross_attention_head_dim": 112, | |
| "dropout": 0.0, | |
| "in_channels": 32, | |
| "mlp_ratio": 2.5145, | |
| "norm_elementwise_affine": false, | |
| "norm_eps": 1e-06, | |
| "num_attention_heads": 70, | |
| "num_cross_attention_heads": 20, | |
| "num_layers": 20, | |
| "out_channels": 32, | |
| "patch_size": 1, | |
| "sample_size": 32 | |
| } | |