Downloads · 30 days
8
4% of all-time downloads
caiovicentino1/CogVideoX-5b-I2V-HLWQ-Q5
CogVideoX-5b-I2V-HLWQ-Q5 is a image-to-video model from caiovicentino1. Use it for the image-to-video task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as other.
[!IMPORTANT] Naming notice (2026-04-10). The "HLWQ" technique used in this model is being rebranded to HLWQ (Hadamard-Lloyd Weight Quantization). The change is only the name; the algorithm and the weights in this repo…
Downloads · 30 days
8
4% of all-time downloads
All-time downloads
186
Public
Repo size
8.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors8.7 GB · 100%
From the Hugging Face model README
[!IMPORTANT] Naming notice (2026-04-10). The "HLWQ" technique used in this model is being rebranded to HLWQ (Hadamard-Lloyd Weight Quantization). The change is only the name; the algorithm and the weights in this repository are unchanged.
The rebrand resolves a name collision with an unrelated, earlier KV cache quantization method also named HLWQ (Han et al., arXiv:2502.02617, 2025). HLWQ addresses weight quantization with a deterministic Walsh-Hadamard rotation and Lloyd-Max scalar codebook; Han et al.'s HLWQ addresses KV cache quantization with a random polar rotation. The two methods are technically distinct.
Existing loaders that load this repository by ID continue to work without changes. Future model uploads will use the HLWQ name.
Reference paper for this technique: arXiv:2603.29078 (v2 in preparation; v1 still uses the old name).
PQ5 quantized CogVideoX-5b Image-to-Video — 19k downloads/month.
21.6 GB → 8.7 GB (-60%) | cos_sim 0.9986 | 422 layers quantized


| Component | Original | PQ5 Packed | Reduction |
|---|---|---|---|
| Transformer (42 layers) | 11.3 GB | 3.9 GB | -65% |
| T5 Text Encoder | 9.5 GB | 3.1 GB | -67% |
| VAE | 0.9 GB | 0.9 GB | BF16 |
| Total | 21.6 GB | 8.7 GB | -60% |
# 1. Install
pip install safetensors huggingface_hub scipy diffusers transformers accelerate
# 2. Download & setup (8.7 GB)
git clone https://huggingface.co/caiovicentino1/CogVideoX-5b-I2V-HLWQ-Q5 ./CogVideoX-PQ5
cd CogVideoX-PQ5 && python setup.py
# 3. Generate video from image
python generate_cogvideo.py --image photo.jpg --prompt "A dog running in a park"
from diffusers import CogVideoXImageToVideoPipeline
from diffusers.utils import load_image, export_to_video
import torch
# After running setup.py:
pipe = CogVideoXImageToVideoPipeline.from_pretrained(
"./CogVideoX-PQ5", torch_dtype=torch.bfloat16
).to("cuda")
image = load_image("photo.jpg")
video = pipe(image=image, prompt="A cat playing", num_frames=49).frames[0]
export_to_video(video, "output.mp4", fps=8)
CogVideoXImageToVideoPipeline)| GPU | VRAM | Status |
|---|---|---|
| RTX 4090 (24 GB) | 24 GB | Fits after dequant |
| RTX 3090 (24 GB) | 24 GB | Fits after dequant |
| A100 (40 GB) | 40 GB | Comfortable |
| T4 (16 GB) | 16 GB | With CPU offloading |
CogVideoX-5b-I2V-HLWQ-Q5/
├── setup.py # One-command setup
├── generate_cogvideo.py # Easy generation wrapper
├── polarquant/
│ ├── codes/ (5 shards, 6.1 GB total)
│ └── bf16/ (5 shards, 1.7 GB total)
├── vae/ (0.9 GB, BF16)
├── transformer/config.json
├── text_encoder/config.json
├── tokenizer/
└── scheduler/
21.6 GB → 8.7 GB with cos_sim 0.9986. Quantized with HLWQ.