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 / text_encoder
5.25 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
SceneWorks's picture
SceneWorks
Add SANA MLX mirror (verbatim repackage of NVIDIA diffusers checkpoint into SanaPipeline::from_snapshot layout)
eef346e verified about 1 month ago
  • gemma-2-2b-it.safetensors
    5.23 GB
    xet
    Add SANA MLX mirror (verbatim repackage of NVIDIA diffusers checkpoint into SanaPipeline::from_snapshot layout) about 1 month ago
  • tokenizer.json
    17.5 MB
    xet
    Add SANA MLX mirror (verbatim repackage of NVIDIA diffusers checkpoint into SanaPipeline::from_snapshot layout) about 1 month ago