Comfyui-bitdance
BitDance custom nodes for ComfyUI with unified loader, text encode, sampler, and VAE nodes.
Nodes (7)
The only node that can turn BitDance's token latent into pixels
How to turn a real image into BitDance's token language
The node that loads an entire image-language model out of three files
The 18-preset size picker your sampler refuses to work without
Where the model stops denoising and starts typing
Your prompt goes through a full 14B LLM before anything renders
The node that stops your 14B text encoder from re-running every time
ComfyUI BitDance Nodes
Make sure: BitDance Loader -> quantization = fp8_e4m3fn_scaled
Changelog / Updates
-
Fixed
BitDanceSamplercrash withguidance_scale > 1.0when positive/negative prompts have different token lengths (separate attention masks are now built for cond/uncond cache lengths). Thanks to user @hl2dm -
Feb 2026: Fixed severe OOM crash on 16GB-24GB cards at high resolutions (1024px+). The VRAM manager now forcibly unloads and explicitly restores
comfy.model_management.unload_all_models()between the LLM text encoding, Vision sampling, and VAE decoding, allowing high-resolution inference!
This package adds BitDance nodes for ComfyUI with a single loader and modular encode/sampler/VAE nodes.
Nodes
BitDance Loader->BITDANCE_MODEL,BITDANCE_TEXT_ENCODER,BITDANCE_VAEBitDance Text Encode->positive,negative,positive_promptBitDance Text Encode Cached->positive,negative,positive_promptBitDance Sampler->BITDANCE_LATENTBitDance VAE Decode->IMAGEBitDance VAE Encode->BITDANCE_LATENT
Install
- Copy this folder into ComfyUI custom nodes (folder name can be anything), for example:
ComfyUI/custom_nodes/Comfyui-bitdance-native - Install dependencies in your ComfyUI Python environment:
pip install -r ComfyUI/custom_nodes/Comfyui-bitdance-native/requirements.txt - Restart ComfyUI.
Model File Locations (3-file setup)
Place your converted files in standard ComfyUI folders:
- Main model ->
ComfyUI/models/diffusion_models/BitDance_14B_MainModel_FP8.safetensors - Text encoder ->
ComfyUI/models/text_encoders/BitDance_TextEncoder_FP8.safetensors - VAE ->
ComfyUI/models/vae/BitDance_VAE_FP16.safetensors
Tokenizer files are bundled with this node package, so a separate tokenizer folder in models/ is not required for local mode.
Resources
- Hugging Face model files (ComfyUI 3-file package): comfyuiblog/BitDance-14B-64x-fp8-comfyui
- Article + workflow guide: How to fix the generic face bug in BitDance 14B and optimize speed
- Video: https://www.youtube.com/watch?v=4O9ATPbeQyg
Workflow (Current)
- Add
BitDance Loader - Add
BitDance Text Encode Cached(recommended) - Add
BitDance Sampler - Add
BitDance VAE Decode - Add ComfyUI
PreviewImage(local user preview)
Connect:
BitDance Loader.bitdance_text_encoder->BitDance Text Encode Cached.text_encoderBitDance Loader.bitdance_model->BitDance Text Encode Cached.model_to_offload(optional, for VRAM management)BitDance Text Encode Cached.positive->BitDance Sampler.positiveBitDance Text Encode Cached.negative->BitDance Sampler.negativeBitDance Loader.bitdance_model->BitDance Sampler.modelBitDance Loader.bitdance_vae->BitDance Sampler.vaeBitDance Sampler.bitdance_latent->BitDance VAE Decode.bitdance_latentBitDance Loader.bitdance_vae->BitDance VAE Decode.vaeBitDance VAE Decode.image->PreviewImage.images
Starter workflow JSON:
workflows/BitDance_Starter.json
Notes
- BitDance is autoregressive and is not a standard UNet denoiser. Use
BitDance Samplerfor generation. - The loader supports single-file converted checkpoints and bundle-style BitDance layouts.
- FP8 + scale loading is supported for converted files (mixed-precision runtime behavior depends on selected loader mode).
Changelog / Updates
- Feb 2026: Fixed severe OOM crash on 16GB-24GB cards at high resolutions (1024px+). The VRAM manager now forcibly unloads and explicitly restores
comfy.model_management.unload_all_models()between the LLM text encoding, Vision sampling, and VAE decoding, allowing high-resolution inference!