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

clark-labs
/
clark-air-sana-1.6b-mlx-2bit

Text-to-Image
MLX
Sana
apple-silicon
quantization
ternary
clark-air
Model card Files Files and versions
xet
Community

Instructions to use clark-labs/clark-air-sana-1.6b-mlx-2bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use clark-labs/clark-air-sana-1.6b-mlx-2bit with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir clark-air-sana-1.6b-mlx-2bit clark-labs/clark-air-sana-1.6b-mlx-2bit
  • Sana

    How to use clark-labs/clark-air-sana-1.6b-mlx-2bit 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://clark-labs/clark-air-sana-1.6b-mlx-2bit")
    
    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
clark-air-sana-1.6b-mlx-2bit
545 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
clark-labs's picture
clark-labs
Super-squash branch 'main' using huggingface_hub
c720bec about 2 months ago
  • .gitattributes
    1.61 kB
    Super-squash branch 'main' using huggingface_hub about 2 months ago
  • README.md
    1.46 kB
    Super-squash branch 'main' using huggingface_hub about 2 months ago
  • clark_air_sana_mlx_2bit.safetensors
    543 MB
    xet
    Super-squash branch 'main' using huggingface_hub about 2 months ago
  • mlx_sana.py
    11.1 kB
    Super-squash branch 'main' using huggingface_hub about 2 months ago
  • sample.png
    1.59 MB
    xet
    Super-squash branch 'main' using huggingface_hub about 2 months ago