Sponsored by
Crazyrouter
-The enterprise-grade, cost-effective AI API gateway that provides one API key to access 300+ AI models through OpenAI-compatible endpoints, with
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.
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
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
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 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:
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.