CoolFace
Modelpublic

YGu1998/SiD-DiT-SANA-0.6B-TrigFlow

sourceHugging Faceotherupdated 10mo agoView on Hugging Face
0likes2downloads
Model Card

<h1 align="center"> SiD-DiT: Score Distillation of Flow Matching Models </h1>

<p align="left">

<!-- HF demo --> <a href="https://yigu1008.github.io/SiD-DiT/demo.html"> <img src="https://img.shields.io/badge/Demo-Huggingface-ffd21e?style=for-the-badge&logo=huggingface" /> </a>

<!-- Code repo --> <a href="https://github.com/apple/ml-sid-dit"> <img src="https://img.shields.io/badge/Code-GitHub-181717?style=for-the-badge&logo=github" /> </a>

<!-- Project page --> <a href="https://yigu1008.github.io/SiD-DiT/"> <img src="https://img.shields.io/badge/Project-Page-555555?style=for-the-badge" /> </a>

<!-- Arxiv --> <a href="https://arxiv.org/abs/2509.25127"> <img src="https://img.shields.io/badge/arXiv-SiD--DiT-b31b1b?style=for-the-badge" /> </a>

</p>

Model Card

SiD-DiT is a score-distillation pipeline for pretrained text-to-image flow-matching models. We introduce a general framework that can accelerate sampling in flow-matching models by distilling pretrained flow-matching teachers into high-quality few-step students, providing a principled way to unify acceleration techniques across both diffusion- and flow-based generators.

Installation

bash
# download model files from this repo
git clone https://huggingface.co/YGu1998/SiD-DiT-SANA-0.6B-TrigFlow

# install packages

cd SiD_pipelines
pip install -r requirements.txt
cd ..

Inference with SiD-DiT

python
import torch
from SiD_pipelines import SiDSanaPipeline


if torch.cuda.is_available():
    torch_dtype = torch.bfloat16
    device = "cuda"
else:
    torch_dtype = torch.float32
    device = "cpu"

model_repo_id = "YGu1998/SiD-DiT-SANA-0.6B-TrigFlow"

prompt = ["a studio portrait of an elderly woman smiling, soft window light, 85mm lens"]

pipe = SiDSanaPipeline.from_pretrained(
    model_repo_id,
    torch_dtype=torch_dtype,
).to(device)

generator = torch.Generator(device=device).manual_seed(42)


image = pipe(
    prompt=prompt,
    guidance_scale=1.0,
    num_inference_steps=4,
    width=1024,
    height=1024,
    generator=generator,
    time_scale=1,
).images[0]

image.save("example.png")

License

  • —Base model: SANA / SANA-Sprint (e.g., Efficient-Large-Model/Sana_Sprint_0.6B_1024px, Efficient-Large-Model/Sana_Sprint_1.6B_1024px, or their TrigFlow variants)
  • —Base license: NVIDIA custom model license (e.g., NSCL / NVIDIA Open Model License and related NVIDIA terms, including Gemma terms where applicable)

This checkpoint is a fine-tuned derivative of SANA-Sprint and therefore remains governed by the original NVIDIA model license and associated terms. It is released for research use and internal evaluation. Any commercial or production use of this checkpoint must comply with NVIDIA’s licensing terms and any applicable Gemma terms; nothing in this repository grants additional rights beyond those upstream licenses.