Instructions to use SceneWorks/Sana_1600M_1024px_mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use SceneWorks/Sana_1600M_1024px_mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download SceneWorks/Sana_1600M_1024px_mlx --local-dir Sana_1600M_1024px_mlx
- Sana
How to use SceneWorks/Sana_1600M_1024px_mlx 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://SceneWorks/Sana_1600M_1024px_mlx") 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
- Local Apps Settings
- LM Studio
- Atomic Chat
fix(sana_1600m): re-host transformer from Sana_1600M_1024px_BF16 (sc-11760)
Browse filesReplace q4/q8/bf16 transformer weights (were converted from the bad Sana_1600M_1024px checkpoint -> petal-blob noise, diffusers #10241) with the good Sana_1600M_1024px_BF16 checkpoint. VAE (DC-AE) + Gemma-2 TE unchanged. Verified clean on the native MLX port (flow-match Euler) across q4/q8/bf16.
bf16/transformer/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:907c7ddbc78eb8332c40811737ce479557c079fde8bdc905f958a40684937e7a
|
| 3 |
+
size 3208971112
|
q4/transformer/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84fdd1eecfc24dffcafa7eeb3ffe26ac244b9649acfa27e73716a7eea10e36b1
|
| 3 |
+
size 1988912542
|
q8/transformer/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45448e06a4473abd89abc975f75dc0a2d484778b91ffb632c9be7f6bace75a93
|
| 3 |
+
size 2413294058
|