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
SANA-Sprint 1.6B 1024px β SceneWorks MLX mirror
Un-gated, repackaged mirror of Efficient-Large-Model/Sana_Sprint_1.6B_1024px_diffusers
for the SceneWorks native MLX worker (mlx-gen-sana).
SANA-Sprint is the few-step, CFG-free distillation of SANA (continuous-time
consistency / SCM sampler + a guidance-embedding trunk) β ~2-step 1024Γ1024 gen.
The tensors are copied dtype-preserving (BF16 trunk, F32 DC-AE) into the layout
that SanaPipeline::new_sprint / from_snapshot expects:
transformer/diffusion_pytorch_model.safetensors # SANA-Sprint 1.6B Linear-DiT trunk (BF16)
vae/diffusion_pytorch_model.safetensors # 32x DC-AE f32c32 decoder (F32)
text_encoder/gemma-2-2b-it.safetensors # gemma-2-2b-it CHI caption encoder (BF16)
text_encoder/tokenizer.json
The only modification is a header-level rename of the transformer ff sub-module
keys (inverted_conv.conv/depth_conv.conv/point_conv.conv β
conv_inverted/conv_depth/conv_point); tensor bytes are unchanged. The
gemma-2-2b-it text encoder is sourced from the un-gated
SceneWorks/gemma-2-2b-it
mirror (merged from its two shards) so the snapshot is self-contained.
License β NON-COMMERCIAL
SANA-Sprint is distributed under the NVIDIA Open Model License (see
LICENSE and NOTICE). This is a non-commercial license:
the model and its outputs are for research and evaluation use only. By
downloading these weights you agree to the NVIDIA Open Model License terms. The
bundled gemma-2-2b-it encoder is under the Google Gemma Terms of Use.
This mirror adds no additional grant.
Quantized