Instructions to use Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Sana
How to use Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers with Sana:
# Load the model and infer image from text import torch from app.sana_pipeline import SanaPipeline from torchvision.utils import save_image sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml") sana.from_pretrained("hf://Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers") image = sana( prompt='a cyberpunk cat with a neon sign that says "Sana"', height=1024, width=1024, guidance_scale=5.0, pag_guidance_scale=2.0, num_inference_steps=18, ) - Notebooks
- Google Colab
- Kaggle
Download text_encoder/model.bf16-00001-of-00002.safetensors from Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers: direct link, hf CLI and curl.
- Browser
- Download file 4.99 GB
-
https://huggingface.co/Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers/resolve/f07302e8a7b4ecabfbc3926d9d778bd5747060e8/text_encoder/model.bf16-00001-of-00002.safetensors
- Command line
-
hf download hf://Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers@f07302e8a7b4ecabfbc3926d9d778bd5747060e8/text_encoder/model.bf16-00001-of-00002.safetensors
-
curl -L -o model.bf16-00001-of-00002.safetensors https://huggingface.co/Efficient-Large-Model/Sana_1600M_4Kpx_BF16_diffusers/resolve/f07302e8a7b4ecabfbc3926d9d778bd5747060e8/text_encoder/model.bf16-00001-of-00002.safetensors
4.99 GB
- Xet hash:
- ce6b6c3c50bd6196e2c3a4606d2446e5789389879f0c9836a2c666c67f2bb070
- Size of remote file:
- 4.99 GB
- SHA256:
- e909230aabafad02d097c7dc02f2ae062b4e6b0593477c1f07679d277e09ce71
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.