Instructions to use Efficient-Large-Model/Sana_600M_512px_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Sana
How to use Efficient-Large-Model/Sana_600M_512px_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_600M_512px_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
Upload files with `sana-upload`.
Browse filesUpload text_encoder/config.json
Upload transformer/diffusion_pytorch_model.fp16.safetensors
text_encoder/config.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
"rope_theta": 10000.0,
|
| 31 |
"sliding_window": 4096,
|
| 32 |
"torch_dtype": "bfloat16",
|
| 33 |
-
"transformers_version": "4.
|
| 34 |
"use_cache": true,
|
| 35 |
"vocab_size": 256000
|
| 36 |
}
|
|
|
|
| 30 |
"rope_theta": 10000.0,
|
| 31 |
"sliding_window": 4096,
|
| 32 |
"torch_dtype": "bfloat16",
|
| 33 |
+
"transformers_version": "4.45.2",
|
| 34 |
"use_cache": true,
|
| 35 |
"vocab_size": 256000
|
| 36 |
}
|
transformer/diffusion_pytorch_model.fp16.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1183558264
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4616f5f26161c4f072083edcd9b771b8a840057602e928dca00c8a05175b22a3
|
| 3 |
size 1183558264
|