PyTorch ships TorchCodec 1.0: GPU media decoding used by vLLM, SGLang and HF

PyTorch · x · 2026-12-03

PyTorch announced TorchCodec 1.0, which has grown from a video-to-tensor library into a full video/audio/image decode+encode stack with GPU decoding, already used by Hugging Face libraries, vLLM and SGLang. New low-level APIs expose every decoding stage: multi-threaded/multi-process pipelines, demuxer-free packet decoding, raw YUV access and custom color conversion kernels, with benchmarks showing 1.17–1.25× throughput over baseline. A coding agent can auto-tune pipelines for your workload.

Related event: PyTorch Releases TorchCodec 1.0 for GPU Media Decoding(2 posts)→

Original post →

More from Infra

Infra channel →