BiliSakura / NiT-XL-diffusers

huggingface.co
Total runs: 12
24-hour runs: 0
7-day runs: 12
30-day runs: 12
Model's Last Updated: May 05 2026
unconditional-image-generation

Introduction of NiT-XL-diffusers

Model Details of NiT-XL-diffusers

NiT-XL Diffusers (Class-Conditional)

Native-resolution Image Transformer (NiT-XL) checkpoint packaged as a Diffusers-style repository with vendored custom code.

What is included
  • transformer/ : NiTTransformer2DModel weights + config
  • scheduler/ : NiTFlowMatchScheduler config
  • vae/ : AutoencoderDC weights + config
  • custom_pipeline/ : local, self-contained implementation for:
    • NiTPipeline
    • NiTTransformer2DModel
    • NiTFlowMatchScheduler
  • test_inference.py : standalone sampling script

This repository does not depend on an external NiT-diffusers checkout during inference. It includes a root pipeline.py custom entrypoint for Diffusers dynamic loading.

Quickstart
1) Environment

Install dependencies (example):

pip install torch diffusers safetensors

If using this project environment:

conda activate rsgen
2) Generate a demo image

Run from this repository root:

python test_inference.py \
  --class-label 207 \
  --height 512 \
  --width 512 \
  --steps 250 \
  --mode sde \
  --guidance-scale 2.05 \
  --guidance-low 0.0 \
  --guidance-high 0.7 \
  --output demo_images/demo_sde250_class207_seed42.png
Python usage
from pathlib import Path
import torch
from diffusers import DiffusionPipeline

model_dir = Path(".").resolve()
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" and torch.cuda.is_bf16_supported() else torch.float32

pipe = DiffusionPipeline.from_pretrained(
    model_dir,
    custom_pipeline=str(model_dir / "pipeline.py"),
    local_files_only=True,
).to(device)
if device == "cuda":
    pipe.transformer.to(dtype=dtype)
    pipe.vae.to(dtype=dtype)

gen = torch.Generator(device=device).manual_seed(42)
result = pipe(
    class_labels=[207],
    height=512,
    width=512,
    num_inference_steps=250,
    mode="sde",
    guidance_scale=2.05,
    guidance_interval=(0.0, 0.7),
    generator=gen,
)
result.images[0].save("demo_images/sample.png")

For remote Hub loading:

from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained(
    "BiliSakura/NiT-XL-diffusers",
    custom_pipeline="pipeline",
)
Recommended inference settings
  • Resolution: 512x512
  • Mode: sde
  • Steps: 250
  • Guidance scale: 2.05
  • Guidance interval: (0.0, 0.7)

Using very low steps (for example 2 ) is only a smoke test and will produce low-quality images.

Demo

NiT-XL demo image

Citation

If you use this model or the NiT method in your work, please cite:

@article{wang2025native,
  title={Native-Resolution Image Synthesis},
  author={Wang, Zidong and Bai, Lei and Yue, Xiangyu and Ouyang, Wanli and Zhang, Yiyuan},
  year={2025},
  eprint={2506.03131},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}
Notes
  • This is a class-conditional generator (ImageNet label ids), not a text-to-image model.
  • For reproducibility, set --seed .
  • The vendored custom pipeline keeps inference behavior consistent without external code dependencies.

Runs of BiliSakura NiT-XL-diffusers on huggingface.co

12
Total runs
0
24-hour runs
12
3-day runs
12
7-day runs
12
30-day runs

More Information About NiT-XL-diffusers huggingface.co Model

More NiT-XL-diffusers license Visit here:

https://choosealicense.com/licenses/apache-2.0

NiT-XL-diffusers huggingface.co

NiT-XL-diffusers huggingface.co is an AI model on huggingface.co that provides NiT-XL-diffusers's model effect (), which can be used instantly with this BiliSakura NiT-XL-diffusers model. huggingface.co supports a free trial of the NiT-XL-diffusers model, and also provides paid use of the NiT-XL-diffusers. Support call NiT-XL-diffusers model through api, including Node.js, Python, http.

NiT-XL-diffusers huggingface.co Url

https://huggingface.co/BiliSakura/NiT-XL-diffusers

BiliSakura NiT-XL-diffusers online free

NiT-XL-diffusers huggingface.co is an online trial and call api platform, which integrates NiT-XL-diffusers's modeling effects, including api services, and provides a free online trial of NiT-XL-diffusers, you can try NiT-XL-diffusers online for free by clicking the link below.

BiliSakura NiT-XL-diffusers online free url in huggingface.co:

https://huggingface.co/BiliSakura/NiT-XL-diffusers

NiT-XL-diffusers install

NiT-XL-diffusers is an open source model from GitHub that offers a free installation service, and any user can find NiT-XL-diffusers on GitHub to install. At the same time, huggingface.co provides the effect of NiT-XL-diffusers install, users can directly use NiT-XL-diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

NiT-XL-diffusers install url in huggingface.co:

https://huggingface.co/BiliSakura/NiT-XL-diffusers

Url of NiT-XL-diffusers

NiT-XL-diffusers huggingface.co Url

Provider of NiT-XL-diffusers huggingface.co

BiliSakura
ORGANIZATIONS

Other API from BiliSakura

huggingface.co

Total runs: 87
Run Growth: 5
Growth Rate: 5.75%
Updated:February 16 2026
huggingface.co

Total runs: 32
Run Growth: -6
Growth Rate: -18.75%
Updated:February 16 2026
huggingface.co

Total runs: 18
Run Growth: 4
Growth Rate: 25.00%
Updated:March 09 2026
huggingface.co

Total runs: 11
Run Growth: -14
Growth Rate: -155.56%
Updated:March 09 2026
huggingface.co

Total runs: 9
Run Growth: 2
Growth Rate: 33.33%
Updated:March 09 2026
huggingface.co

Total runs: 5
Run Growth: -5
Growth Rate: -100.00%
Updated:March 09 2026