BiliSakura / W-Flow-diffusers

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

Introduction of W-Flow-diffusers

Model Details of W-Flow-diffusers

W-Flow-diffusers

Native diffusers checkpoints for W-Flow ( One-Step Generative Modeling via Wasserstein Gradient Flows ). Code: hanjq17/W-Flow . Each variant folder is self-contained:

  • pipeline.py — WFlowPipeline
  • scheduler/scheduling_wflow.py — WFlowScheduler (one evaluation; the transformer predicts the clean latent)
  • transformer/transformer_wflow.py — WFlowTransformer2DModel
  • vae/ — stabilityai/sd-vae-ft-mse ( AutoencoderKL , scaling factor 0.18215)

Load with PyPI diffusers and trust_remote_code=True . No extra W-Flow package is required. Sampling is one forward pass at 256×256. guidance_scale is the official CFG value, which the paper writes as (w+1). Weights are the released EMA. The paper reports ImageNet-256 FID 1.52 for W-Flow-B, 1.35 for W-Flow-L, and 1.29 for W-Flow-XL.

Available checkpoints
Checkpoint Path Resolution Steps Guidance
W-Flow-B W-Flow-B/ 256×256 1 1.19
W-Flow-L W-Flow-L/ 256×256 1 1.14
W-Flow-XL W-Flow-XL/ 256×256 1 1.09
Demo

W-Flow-B demo

Class: golden retriever (ImageNet 207) — 256×256, 1 step, guidance_scale=1.19 , torch_dtype=bfloat16 , seed 1.

ImageNet class labels

Each variant keeps an English id2label map in model_index.json .

  • pipe.id2label — id → English label
  • pipe.labels — synonym → id
  • pipe.get_label_ids("golden retriever")
  • pipe(class_labels="golden retriever", ...) — string labels resolve automatically

height and width default to 256. The patch embedding is fixed to a 32×32 latent, so other sizes are rejected. On CUDA the generator autocasts to bfloat16.

Inference
import torch
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained(
    "BiliSakura/W-Flow-diffusers",
    subfolder="W-Flow-B",
    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=1,
    guidance_scale=1.19,
    generator=torch.Generator(device="cuda").manual_seed(1),
).images[0]
image.save("demo.png")

Local checkout:

from pathlib import Path
import torch
from diffusers import DiffusionPipeline

model_dir = Path("W-Flow-diffusers/W-Flow-B")
pipe = DiffusionPipeline.from_pretrained(
    str(model_dir),
    local_files_only=True,
    custom_pipeline=str(model_dir / "pipeline.py"),
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
).to("cuda")
Citation
@article{han2026one,
  title   = {One-Step Generative Modeling via Wasserstein Gradient Flows},
  author  = {Han, Jiaqi and Li, Puheng and Guo, Qiushan and Xu, Renyuan and Ermon, Stefano and Cand{\`e}s, Emmanuel J.},
  journal = {arXiv preprint arXiv:2605.11755},
  year    = {2026},
  url     = {https://arxiv.org/abs/2605.11755}
}

Runs of BiliSakura W-Flow-diffusers on huggingface.co

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

More Information About W-Flow-diffusers huggingface.co Model

More W-Flow-diffusers license Visit here:

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

W-Flow-diffusers huggingface.co

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

W-Flow-diffusers huggingface.co Url

https://huggingface.co/BiliSakura/W-Flow-diffusers

BiliSakura W-Flow-diffusers online free

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

BiliSakura W-Flow-diffusers online free url in huggingface.co:

https://huggingface.co/BiliSakura/W-Flow-diffusers

W-Flow-diffusers install

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

W-Flow-diffusers install url in huggingface.co:

https://huggingface.co/BiliSakura/W-Flow-diffusers

Url of W-Flow-diffusers

W-Flow-diffusers huggingface.co Url

Provider of W-Flow-diffusers huggingface.co

BiliSakura
ORGANIZATIONS

Other API from BiliSakura

huggingface.co

Total runs: 168
Run Growth: 3
Growth Rate: 3.53%
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: 6
Growth Rate: 33.33%
Updated:March 09 2026
huggingface.co

Total runs: 15
Run Growth: -5
Growth Rate: -45.45%
Updated:March 09 2026
huggingface.co

Total runs: 9
Run Growth: 6
Growth Rate: 66.67%
Updated:March 09 2026
huggingface.co

Total runs: 6
Run Growth: -4
Growth Rate: -66.67%
Updated:March 09 2026