BiliSakura / BitDance-Tokenizer-diffusers

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: 2月 18 2026
image-to-image

Introduction of BitDance-Tokenizer-diffusers

Model Details of BitDance-Tokenizer-diffusers

BitDance-Tokenizer (Diffusers)

Diffusers-formatted BitDance tokenizer autoencoders (AE) converted from the upstream BitDance tokenizer checkpoints.

Available Autoencoders
  • ae_d16c32 ( z_channels=32 , gan_decoder=false )
  • ae_d32c128 ( z_channels=128 , gan_decoder=true )
  • ae_d32c256 ( z_channels=256 , gan_decoder=true )

Each subfolder includes:

  • config.json with the autoencoder architecture
  • conversion_metadata.json documenting the source checkpoint and config
Test (load tokenizer only)

This repo is self-contained: it includes bitdance_diffusers (copied from BitDance-14B-64x-diffusers) for the BitDanceAutoencoder class. Run the test to verify loading and encode/decode:

The test loads all three autoencoders and runs a quick encode/decode check with ae_d16c32 (no full image generation).

Loading tokenizer autoencoders
import sys
from pathlib import Path

# Self-contained: add local path so bitdance_diffusers is found
BASE_DIR = Path(__file__).resolve().parent
sys.path.insert(0, str(BASE_DIR))

from bitdance_diffusers import BitDanceAutoencoder

# Load any tokenizer autoencoder (use repo path or local path)
ae = BitDanceAutoencoder.from_pretrained(
    "BiliSakura/BitDance-Tokenizer-diffusers",  # or str(BASE_DIR) for local
    subfolder="ae_d16c32",
)
# ae_d16c32: z_channels=32, patch_size=16
# ae_d32c128: z_channels=128, patch_size=32
# ae_d32c256: z_channels=256, patch_size=32
Using with a BitDance pipeline (full inference)

To swap a tokenizer into a BitDance diffusers pipeline for image generation:

import torch
from diffusers import DiffusionPipeline

# Load a BitDance diffusers pipeline first (provides BitDanceAutoencoder class).
pipe = DiffusionPipeline.from_pretrained(
    "BiliSakura/BitDance-14B-16x-diffusers",
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
).to("cuda")

# Swap in a tokenizer autoencoder from this repository.
pipe.autoencoder = pipe.autoencoder.__class__.from_pretrained(
    "BiliSakura/BitDance-Tokenizer-diffusers",
    subfolder="ae_d16c32",
).to("cuda")

image = pipe(
    prompt="A watercolor painting of a red fox in a snowy forest.",
    height=1024,
    width=1024,
).images[0]
image.save("bitdance_with_custom_tokenizer.png")

Note: this repository stores tokenizer autoencoder components; use trust_remote_code=True with a BitDance runtime repo when loading custom classes.

Citation

If you use this model, please cite BitDance and Diffusers:

@article{ai2026bitdance,
  title   = {BitDance: Scaling Autoregressive Generative Models with Binary Tokens},
  author  = {Ai, Yuang and Han, Jiaming and Zhuang, Shaobin and Hu, Xuefeng and Yang, Ziyan and Yang, Zhenheng and Huang, Huaibo and Yue, Xiangyu and Chen, Hao},
  journal = {arXiv preprint arXiv:2602.14041},
  year    = {2026}
}

@inproceedings{von-platen-etal-2022-diffusers,
  title     = {Diffusers: State-of-the-art diffusion models},
  author    = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Damar Jablonski and Hernan Bischof and Thomas Wolf},
  booktitle = {GitHub repository},
  year      = {2022},
  url       = {https://github.com/huggingface/diffusers}
}
License

This repository is distributed under the Apache-2.0 license, consistent with the upstream BitDance release.

Runs of BiliSakura BitDance-Tokenizer-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 BitDance-Tokenizer-diffusers huggingface.co Model

More BitDance-Tokenizer-diffusers license Visit here:

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

BitDance-Tokenizer-diffusers huggingface.co

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

BitDance-Tokenizer-diffusers huggingface.co Url

https://huggingface.co/BiliSakura/BitDance-Tokenizer-diffusers

BiliSakura BitDance-Tokenizer-diffusers online free

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

BiliSakura BitDance-Tokenizer-diffusers online free url in huggingface.co:

https://huggingface.co/BiliSakura/BitDance-Tokenizer-diffusers

BitDance-Tokenizer-diffusers install

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

BitDance-Tokenizer-diffusers install url in huggingface.co:

https://huggingface.co/BiliSakura/BitDance-Tokenizer-diffusers

Url of BitDance-Tokenizer-diffusers

BitDance-Tokenizer-diffusers huggingface.co Url

Provider of BitDance-Tokenizer-diffusers huggingface.co

BiliSakura
ORGANIZATIONS

Other API from BiliSakura

huggingface.co

Total runs: 130
Run Growth: 97
Growth Rate: 74.62%
Updated:2月 16 2026
huggingface.co

Total runs: 22
Run Growth: -21
Growth Rate: -95.45%
Updated:2月 16 2026
huggingface.co

Total runs: 18
Run Growth: 11
Growth Rate: 61.11%
Updated:3月 09 2026
huggingface.co

Total runs: 7
Run Growth: -19
Growth Rate: -271.43%
Updated:3月 09 2026
huggingface.co

Total runs: 3
Run Growth: -5
Growth Rate: -250.00%
Updated:3月 09 2026
huggingface.co

Total runs: 3
Run Growth: -6
Growth Rate: -200.00%
Updated:3月 09 2026