NVIDIA DALI offloads image, video, and audio loading and augmentation to the GPU with plugins for TensorFlow, PyTorch, PaddlePaddle, and JAX.
Overview
NVIDIA DALI (Data Loading Library) is a GPU-accelerated library for loading and preprocessing data in deep learning training and inference. It provides optimized building blocks for image, video, and audio pipelines and can replace framework-built data loaders in TensorFlow, PyTorch, PaddlePaddle, and JAX.
Complex CPU-side pipelines for decode, crop, resize, and augmentation often limit training throughput; DALI moves that work to the GPU and uses its own execution engine with prefetching, parallel execution, and batching. Pipelines can be defined in pipeline mode with @pipeline_def or in newer dynamic mode APIs, with framework-specific iterators and tensor bridges.
Supported formats include LMDB, RecordIO, TFRecord, COCO, JPEG, JPEG 2000, WAV, FLAC, OGG, H.264, VP9, and HEVC. Features include multi-GPU scaling, custom operators, GPUDirect Storage paths, and a Triton Inference Server backend. Installation is primarily via pip packages tied to CUDA versions; containers on NVIDIA GPU Cloud also ship DALI preinstalled.
Documentation covers getting started guides, examples, tutorials, and both stable and nightly doc builds.
Key features
- GPU image video audio loaders
- TensorFlow PyTorch Paddle JAX plugins
- Pipeline and dynamic Python APIs
- Prefetching and parallel execution
- Multi-GPU scalable pipelines
- Custom operator extension
- GPUDirect Storage support
- Triton inference backend
Use cases
- Training input pipeline acceleration
- Image classification preprocessing
- Object detection data augment
- ASR audio loading
- Inference serving with Triton