PyTorch ships TorchCodec 1.0: media decoding now powers vLLM and HF
PyTorch · x · 2026-12-03
PyTorch officially released TorchCodec 1.0. Started as a small library to turn videos into PyTorch tensors, it now decodes and encodes video, audio and images, with GPU decoding for video and JPEG. Hugging Face libraries, vLLM and SGLang already use it for media decoding.
Highlights of 1.0:
- Low-level APIs controlling every stage of decoding
- Build multi-threaded/multi-process pipelines, decode packets without a demuxer, access raw YUV data, write custom color conversion kernels
- Official benchmarks show an agent auto-tuning pipelines to 1.2–1.25x baseline throughput across 8-CPU, 96-CPU and A100+8-CPU setups via tricks like resizing inside the decoder, skipping unreferenced packets, and separating NVDEC slots.
Related event: PyTorch Releases TorchCodec 1.0 for GPU Media Decoding(2 posts)→
More from Infra
- GitHub Actions outage mitigated; stuck workflows may need manual re-run — 0xkarasy · 2026-12-03
- Meta nears major deal to lease Google TPUs via Google-Blackstone venture Crux AI — dinabass · 2026-12-03
- Polymarket puts 5% odds on DOJ criminally charging Nvidia this year — Polymarket · 2026-12-03
- Nvidia Concerns Mount Over Chip Smuggling Testimony; Eye on Broadcom's Hock Tan Next Week — TiernanRayTech · 2026-12-03
- Day-0 custom kernels for GLM handle 50%+ of OpenRouter volume at 213 tps — charles_irl · 2026-12-03
- Anaconda's AIBOM guide: fake HF model hit 244K downloads in 18 hours — anacondainc · 2026-12-03