Nodes/ComfyUI CogVideoX Wrapper/(Down)load CogVideo GGUF Model
ComfyUI Node Runs on cloud

(Down)load CogVideo GGUF Model

The low-VRAM way to run CogVideoX

By kijai·Created 2 years ago·Updated 12 months ago· 1,549
(Down)load CogVideo GGUF Model
  • block_edit
  • model
  • vae
model
vae_precisionbf16
fp8_fastmodefalse
load_devicemain_device
enable_sequential_cpu_offloadfalse
attention_modesdpa

If the regular CogVideoX 5b model won't fit on your card, this is your way in. It loads a GGUF-quantized version of the transformer - smaller weights, less VRAM, same node graph downstream - and, like its non-GGUF sibling, it downloads the file for you from HuggingFace on first run and outputs both a model and a VAE.

GGUF is the quantization format that everyone leans on for big models. Q8 is basically indistinguishable from full precision at half the size; Q4 is the accepted compromise for genuinely tight VRAM. The choices this node ships are all Q4_0 - the smallest, most memory-frugal tier - because that's the whole reason you're here: getting a 5b video model onto a card that otherwise can't hold it.

What you can load

The model dropdown has 8 entries, all ..._GGUF_Q4_0.safetensors builds: the base CogVideoX_5b, the _I2V image-to-video version, the 1_5_I2V refresh, the _fun and _fun_1_1 variants, fun_1_1_Pose for pose control, _Interpolation for frame interpolation, and _Tora for trajectory motion. Match the one you pick to the workflow you're running - an I2V build wants an image, a Pose build wants a pose sequence, and so on.

The settings are refreshingly short:

  • vae_precision (default bf16) - leave it. Note the transformer is already quantized to GGUF; this only sets the VAE's precision.
  • fp8_fastmode - a speed toggle; leave it off unless you're chasing every last second.
  • enable_sequential_cpu_offload - the escape hatch if even Q4 GGUF won't fit. Streams layers between CPU and GPU, slower but it runs.
  • attention_mode - just sdpa or sageattn here (the GGUF path exposes fewer options than the full loader). sdpa is the safe default; sageattn is faster if you've got SageAttention installed.

Outputs are model (into CogVideo Sampler) and vae (into CogVideo Decode). Drop-in replacement for the full-precision loader - the rest of your graph doesn't change.

How to install it

The pack README is empty, so the standard kijai-wrapper install applies:

  • ComfyUI Manager - search ComfyUI-CogVideoXWrapper, install, restart.
  • Manual - cd ComfyUI/custom_nodes && git clone https://github.com/kijai/ComfyUI-CogVideoXWrapper, then pip install -r ComfyUI-CogVideoXWrapper/requirements.txt, restart.

No separate model download step - this node pulls the GGUF file itself on first use.

Common issues & troubleshooting

It's slower than you expected. That's GGUF's tax. Quantized weights get dequantized on the fly, and at low quant tiers that overhead is real - a Q4 model can actually run slower per step than a higher tier would, on top of being lower quality. GGUF here is a VRAM fix, not a speed fix. If you have the memory for fp8, that path is usually smoother.

Quality looks rougher than the full model. Also expected - Q4_0 is the aggressive end of the ladder. It's the price of fitting the model at all on a small card. There's no higher-tier GGUF in this dropdown, so if Q4 isn't cutting it and you have a bit more VRAM, switch to the standard loader with fp8_e4m3fn quantization instead.

Still out of memory. Turn on enable_sequential_cpu_offload. If a Q4 GGUF plus CPU offload still won't run, your card is below what CogVideoX 5b needs, and no setting fixes that.

CategoryCogVideoWrapper

Inputs (7)

NameTypeDefaultDescription
modelCOMBO8 options: CogVideoX_5b_GGUF_Q4_0.safetensors, CogVideoX_5b_I2V_GGUF_Q4_0.safetensors, CogVideoX_5b_1_5_I2V_GGUF_Q4_0.safetensors, CogVideoX_5b_fun_GGUF_Q4_0.safetensors, CogVideoX_5b_fun_1_1_GGUF_Q4_0.safetensors, CogVideoX_5b_fun_1_1_Pose_GGUF_Q4_0.safetensors, +2
vae_precisionCOMBObf16VAE dtype
fp8_fastmodeBOOLEANfalseonly supported on 4090 and later GPUs, also requires torch 2.4.0 with cu124 minimum
load_deviceCOMBOmain_device2 options: main_device, offload_device
enable_sequential_cpu_offloadBOOLEANfalsesignificantly reducing memory usage and slows down the inference
block_editoptTRANSFORMERBLOCKS
attention_modeoptCOMBOsdpa2 options: sdpa, sageattn

Outputs (2)

NameTypeDescription
modelCOGVIDEOMODEL
vaeVAE