Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

SceneWorks
/
Sana_1600M_1024px_mlx

Text-to-Image
MLX
Diffusers
Safetensors
Sana
sceneworks
non-commercial
Model card Files Files and versions
xet
Community

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]
    
    huggingface-cli download --local-dir Sana_1600M_1024px_mlx SceneWorks/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
Sana_1600M_1024px_mlx / q8
7.01 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
SceneWorks's picture
SceneWorks
fix(sana_1600m): re-host transformer from Sana_1600M_1024px_BF16 (sc-11760)
ac42169 verified 20 days ago
  • text_encoder
    Add q8 quant tier (sc-8489, epic 8506): packed Linear-DiT + Gemma-2 TE, dense DC-AE VAE 27 days ago
  • transformer
    fix(sana_1600m): re-host transformer from Sana_1600M_1024px_BF16 (sc-11760) 20 days ago
  • vae
    Add q8 quant tier (sc-8489, epic 8506): packed Linear-DiT + Gemma-2 TE, dense DC-AE VAE 27 days ago