Unconditional Image Generation
Diffusers
Safetensors
English
jlt
image-generation
class-conditional
flux2
clean-latent
Instructions to use BiliSakura/JLT-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BiliSakura/JLT-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BiliSakura/JLT-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "golden retriever" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
|
Download README.md from BiliSakura/JLT-diffusers: direct link, hf CLI and curl.
- Browser
- Download file 2.63 kB
-
https://huggingface.co/BiliSakura/JLT-diffusers/resolve/main/README.md
- Command line
-
hf download hf://BiliSakura/JLT-diffusers/README.md
-
curl -L -o README.md https://huggingface.co/BiliSakura/JLT-diffusers/resolve/main/README.md
2.63 kB
metadata
license: mit
library_name: diffusers
pipeline_tag: unconditional-image-generation
tags:
- diffusers
- jlt
- image-generation
- class-conditional
- flux2
- clean-latent
widget:
- text: golden retriever
output:
url: demo.png
language:
- en
JLT-diffusers
Native diffusers checkpoints for JLT (Clean-Latent Prediction in Latent Diffusion Transformers). Paper: arXiv:2605.27102. Code: akatsuki-neo/JLT. Each variant folder is self-contained:
pipeline.pyβJLTPipelinescheduler/scheduling_jlt.pyβJLTScheduler(JLT timet: 0 β 1, Heun / Euler)transformer/transformer_jlt.pyβJLTTransformer2DModelvae/β bundledAutoencoderKLFlux2
Load with PyPI diffusers and trust_remote_code=True. No extra JLT package is required.
Demo
Class: golden retriever (ImageNet 207) β JLT-B/1 at 256Γ256, 50 Heun steps, guidance_scale=2.9, noise_scale=1.0, torch_dtype=bfloat16, seed 42. These checkpoints are trained and sampled at 256Γ256 only.
Available checkpoints
| Checkpoint | Path | Resolution | Latent | Recommended CFG |
|---|---|---|---|---|
| JLT-B/1 | JLT-B-1/ |
256Γ256 | FLUX.2, patch /1 | 2.9 |
| JLT-L/1 | JLT-L-1/ |
256Γ256 | FLUX.2, patch /1 | 2.9 |
| JLT-H/1 | JLT-H-1/ |
256Γ256 | FLUX.2, patch /1 | 2.9 |
ImageNet class labels
Each variant keeps an English id2label map in model_index.json.
pipe.id2labelβ id β English labelpipe.labelsβ synonym β idpipe.get_label_ids("golden retriever")pipe(class_labels="golden retriever", ...)β string labels resolve automatically
Inference
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"BiliSakura/JLT-diffusers",
subfolder="JLT-B-1", # or "JLT-L-1" / "JLT-H-1"
custom_pipeline="pipeline.py",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
).to("cuda")
print(pipe.id2label[207])
image = pipe(
class_labels="golden retriever",
num_inference_steps=50,
guidance_scale=2.9,
generator=torch.Generator(device="cuda").manual_seed(42),
).images[0]
image.save("demo.png")
Citation
@article{fu2026jlt,
title={{JLT}: {C}lean-{L}atent {P}rediction in {L}atent {D}iffusion {T}ransformers},
author={Fu, Funing and Wang, Tenghui and Zhou, Guanyu and Cen, Junyong and Zhu, Qichao},
journal = {arXiv preprint arXiv:2605.27102},
year={2026}
}
