3 points•Kiteretsu•35 minutes ago•1 comment•

1 comment

Kiteretsu35 minutes ago
Hi HN, I'm the first author of CodecOPSD.

TL;DR: CodecOPSD drops ~70% of the reference tokens in MiniMax-H3 Ref2VA with near-original quality and 1.9x faster denoising on average, up to 8.4x (768p, 243 frames, 2 pictures + 3 reference videos, 90% of the tokens dropped). On MiniMax-H3-Image it drops 65% of the reference tokens and denoises 2x faster. It also works on Cosmos3, and more models are coming.

How it works: we bring back a classic video codec (H.264) to find the redundant reference tokens. It is very fast and stable across many kinds of conditions (depth, sketches, RGB, surface normals, blur, segmentation, etc.). A small LoRA, trained with our on-policy self-distillation, learns to work with the dropped tokens.

We provide both a Hugging Face app (online and local) and a ComfyUI implementation:

- Code: https://github.com/Kiteretsu77/CodecOPSD

- Paper: https://arxiv.org/abs/2611.31184

- Project page: https://kiteretsu77.github.io/CodecOPSD_website/

- Online app, video (H3 Ref2VA): https://huggingface.co/spaces/HikariDawn/CodecOPSD-H3-Ref2VA

- Online app, image (H3-Image): https://huggingface.co/spaces/HikariDawn/CodecOPSD-H3-Image

- ComfyUI: https://github.com/Kiteretsu77/CodecOPSD/tree/main/comfyui

HF demo: heavily optimized from encoder to decoder (quantization, compilation, etc.). About 23 s end to end for a 5 s 480p video with multiple references, or about 9 s for an image (times measured on an RTX PRO 6000). Many demo cases are ready there: click one and run it.

Local app on GitHub: a stable setup for consumer GPUs from 12 to 32 GB, combined with pi-H3 (4 steps) for more speed.

ComfyUI on one RTX 5090 (Pika Flex Turbo 4 steps + SageAttention, 832x480, 124 frames, 2 pictures + 1 video): 98.0 s -> 37.6 s per request (2.6x), denoising 68.0 s -> 15.6 s (4.4x), same peak GPU memory.

Same workflow on other cards (6.6 s video at 480p, 6 steps, one reference video, first run): RTX 4090 414 s -> 124 s (3.3x), RTX 5060 Ti 16 GB 1452 s -> 349 s (4.2x), RTX 4070 12 GB 1051 s -> 266 s (4.0x).

Happy to answer questions about the method or the numbers.

If you like CodecOPSD, please try it from GitHub. Thanks!

Read the full thread on Hacker News →

Related stories