Instructions to use SceneWorks/Sana_Sprint_1.6B_1024px_mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use SceneWorks/Sana_Sprint_1.6B_1024px_mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Sana_Sprint_1.6B_1024px_mlx SceneWorks/Sana_Sprint_1.6B_1024px_mlx
- Sana
How to use SceneWorks/Sana_Sprint_1.6B_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_Sprint_1.6B_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
File size: 133 Bytes
d101b65 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:3f289bc05132635a8bc7aca7aa21255efd5e18f3710f43e3cdb96bcd41be4922
size 17525357
|