shallowdream204/BitDance-14B-64x

Model

BitDance: Scaling Autoregressive Generative Models with Binary Tokens

68

12 commits

1 linked in READMEs

updated Feb 18, 2026

See the code

README

BitDance: Scaling Autoregressive Generative Models with Binary Tokens

Project Page BitDance Paper on arXiv BitDance GitHub BitDance Model BitDance Demo

Yuang Ai*, Jiaming Han*, Shaobin Zhuang*, Weijia Mao, Xuefeng Hu, Ziyan Yang, Zhenheng Yang, Huaibo Huang†, Xiangyu Yue†, Hao Chen*†‡

* Equal Contribution  † Corresponding Author  ‡ Project Lead

For visual generation, discrete autoregressive models often struggle with poor tokenizer reconstruction, difficulties in sampling from large vocabularies, and slow token-by-token generation speeds. We present BitDance, which addresses these challenges via a large-vocabulary binary tokenizer, a binary diffusion head for sampling in large discrete space, and a next-patch diffusion paradigm that enables efficient multitoken prediction. BitDance is an open-source discrete autoregressive foundation model with 14B parameters, trained on large-scale multimodal tokens. While maintaining the standard language modeling paradigm for text tokens, BitDance employs a next-patch diffusion paradigm for visual tokens to predict multiple tokens in parallel—up to 64 per step. This unified multimodal framework is simple, scalable, and capable of efficiently generating high-resolution, photorealistic images.

⚡ Quick Start

1️⃣ Create Conda Environment and Install Package

git clone https://github.com/shallowdream204/BitDance.git
cd BitDance
conda create -n bitdance python=3.11 -y
conda activate bitdance
pip install -r requirements.txt
pip install flash_attn==2.8.2 --no-build-isolation

2️⃣ Download Model Weights

We offer two models, BitDance-14B-64x and BitDance-14B-16x, which can predict 64 and 16 tokens in parallel at each step, respectively.

Model#Token per StepStep (1024px)Supported SizeHuggingface
BitDance-14B-64x64641024pxBitDance-14B-64x
BitDance-14B-16x16256512&1024pxBitDance-14B-16x

Run the following scripts to download all T2I models.

hf download shallowdream204/BitDance-14B-64x --local-dir models/BitDance-14B-64x --max-workers=16
hf download shallowdream204/BitDance-14B-16x --local-dir models/BitDance-14B-16x --max-workers=16

3️⃣ T2I Inference (check here for the supported image resolution)

# example_t2i.py
from modeling.t2i_pipeline import BitDanceT2IPipeline

model_path = 'models/BitDance-14B-64x'
# model_path = 'models/BitDance-14B-16x'
device = 'cuda'

pipe = BitDanceT2IPipeline(model_path=model_path, device=device)

prompt = "A close-up portrait in a cinematic photography style, capturing a girl-next-door look on a sunny daytime urban street. She wears a khaki sweater, with long, flowing hair gently draped over her shoulders. Her head is turned slightly, revealing soft facial features illuminated by realistic, delicate sunlight coming from the left. The sunlight subtly highlights individual strands of her hair. The image has a Canon film-like color tone, evoking a warm nostalgic atmosphere."

image = pipe.generate(
    prompt=prompt,
    height=1024,
    width=1024,
    num_sampling_steps=50, # adjust to 25 steps for faster inference, but may slightly reduce quality
    guidance_scale=7.5,
    num_images=1,
    seed=42
)[0]

image.save("example.png")

🤗 Demo

🔥 Try the Huggingface Space demo to start playing with BitDance: BitDance-Demo

You can also run the demo locally:

python app.py

📊 Model Performance

ModelOpen SourceDPG-BenchGenEvalOneIG-BenchTIIF-Bench
ENZHshortlong
GPT Image 1✗85.150.840.5330.47489.1588.29
Seedream 3.0✗88.270.840.5300.52886.0284.31
Qwen-Image✓88.320.870.5390.54886.1486.83
Z-Image✓88.140.840.5460.53580.2083.01
Z-Image-Turbo✓84.860.820.5280.50777.7380.05
FLUX.1 [Dev]✓83.840.660.434-71.0971.78
BAGEL✓85.070.880.3610.37071.5071.70
Infinity✓83.460.73--62.0762.32
Janus-Pro✓84.190.800.2670.24066.5065.01
Show-o2✓86.140.760.308-59.7258.86
NextStep-1✓85.280.730.418---
GLM-Image✓84.78-0.5280.51181.0181.02
BitDance✓88.280.860.5320.51279.6478.12

🪪 License

BitDance is licensed under the Apache 2.0 license.

📖 Citation

If you find our work useful for your research, please consider citing our paper:

@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}
}
qwen3
safetensors
text-to-image

shallowdream204/BitDance-14B-64x

Model

BitDance: Scaling Autoregressive Generative Models with Binary Tokens

68

12 commits

1 linked in READMEs

updated Feb 18, 2026

See the code

README

BitDance: Scaling Autoregressive Generative Models with Binary Tokens

Project Page BitDance Paper on arXiv BitDance GitHub BitDance Model BitDance Demo

Yuang Ai*, Jiaming Han*, Shaobin Zhuang*, Weijia Mao, Xuefeng Hu, Ziyan Yang, Zhenheng Yang, Huaibo Huang†, Xiangyu Yue†, Hao Chen*†‡

* Equal Contribution  † Corresponding Author  ‡ Project Lead

For visual generation, discrete autoregressive models often struggle with poor tokenizer reconstruction, difficulties in sampling from large vocabularies, and slow token-by-token generation speeds. We present BitDance, which addresses these challenges via a large-vocabulary binary tokenizer, a binary diffusion head for sampling in large discrete space, and a next-patch diffusion paradigm that enables efficient multitoken prediction. BitDance is an open-source discrete autoregressive foundation model with 14B parameters, trained on large-scale multimodal tokens. While maintaining the standard language modeling paradigm for text tokens, BitDance employs a next-patch diffusion paradigm for visual tokens to predict multiple tokens in parallel—up to 64 per step. This unified multimodal framework is simple, scalable, and capable of efficiently generating high-resolution, photorealistic images.

⚡ Quick Start

1️⃣ Create Conda Environment and Install Package

git clone https://github.com/shallowdream204/BitDance.git
cd BitDance
conda create -n bitdance python=3.11 -y
conda activate bitdance
pip install -r requirements.txt
pip install flash_attn==2.8.2 --no-build-isolation

2️⃣ Download Model Weights

We offer two models, BitDance-14B-64x and BitDance-14B-16x, which can predict 64 and 16 tokens in parallel at each step, respectively.

Model#Token per StepStep (1024px)Supported SizeHuggingface
BitDance-14B-64x64641024pxBitDance-14B-64x
BitDance-14B-16x16256512&1024pxBitDance-14B-16x

Run the following scripts to download all T2I models.

hf download shallowdream204/BitDance-14B-64x --local-dir models/BitDance-14B-64x --max-workers=16
hf download shallowdream204/BitDance-14B-16x --local-dir models/BitDance-14B-16x --max-workers=16

3️⃣ T2I Inference (check here for the supported image resolution)

# example_t2i.py
from modeling.t2i_pipeline import BitDanceT2IPipeline

model_path = 'models/BitDance-14B-64x'
# model_path = 'models/BitDance-14B-16x'
device = 'cuda'

pipe = BitDanceT2IPipeline(model_path=model_path, device=device)

prompt = "A close-up portrait in a cinematic photography style, capturing a girl-next-door look on a sunny daytime urban street. She wears a khaki sweater, with long, flowing hair gently draped over her shoulders. Her head is turned slightly, revealing soft facial features illuminated by realistic, delicate sunlight coming from the left. The sunlight subtly highlights individual strands of her hair. The image has a Canon film-like color tone, evoking a warm nostalgic atmosphere."

image = pipe.generate(
    prompt=prompt,
    height=1024,
    width=1024,
    num_sampling_steps=50, # adjust to 25 steps for faster inference, but may slightly reduce quality
    guidance_scale=7.5,
    num_images=1,
    seed=42
)[0]

image.save("example.png")

🤗 Demo

🔥 Try the Huggingface Space demo to start playing with BitDance: BitDance-Demo

You can also run the demo locally:

python app.py

📊 Model Performance

ModelOpen SourceDPG-BenchGenEvalOneIG-BenchTIIF-Bench
ENZHshortlong
GPT Image 1✗85.150.840.5330.47489.1588.29
Seedream 3.0✗88.270.840.5300.52886.0284.31
Qwen-Image✓88.320.870.5390.54886.1486.83
Z-Image✓88.140.840.5460.53580.2083.01
Z-Image-Turbo✓84.860.820.5280.50777.7380.05
FLUX.1 [Dev]✓83.840.660.434-71.0971.78
BAGEL✓85.070.880.3610.37071.5071.70
Infinity✓83.460.73--62.0762.32
Janus-Pro✓84.190.800.2670.24066.5065.01
Show-o2✓86.140.760.308-59.7258.86
NextStep-1✓85.280.730.418---
GLM-Image✓84.78-0.5280.51181.0181.02
BitDance✓88.280.860.5320.51279.6478.12

🪪 License

BitDance is licensed under the Apache 2.0 license.

📖 Citation

If you find our work useful for your research, please consider citing our paper:

@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}
}
qwen3
safetensors
text-to-image