TECHNOLOGY

SPDL data loading: thread parallelism helps when preprocessing releases the GIL

In this article
THE QUICK TAKE

SPDL coordinates acquisition, preprocessing and transfer, but its gains depend on stage behavior and workload; a faster isolated loader does not guarantee the same training-speed increase.

A GPU can wait for data even when its model fits comfortably in memory. Scalable and Performant Data Loading, in its March 2026 revision, describes SPDL’s thread-oriented pipeline for addressing that wait. Its benchmark needs a careful distinction between loading data alone and completing model training with that data.

Threads need compatible stage functions

The design coordinates data acquisition, decoding, preprocessing, batching and device transfer through an asynchronous scheduler and worker pool. Under ordinary Python, CPU-heavy functions must release the global interpreter lock during the relevant work for threads to execute that work concurrently. Thread safety also remains a requirement.

SPDL supplies lower-level media operations designed around those properties. It also supports using a process pool for functions that do not release the lock. Therefore, the proposal is not that arbitrary Python preprocessing becomes parallel merely by replacing processes with threads. The actual behavior of every stage remains part of the integration.

Loader throughput and training throughput are separate

The paper’s evaluation uses ImageNet and a TorchVision ViT-B/16 implementation on an AWS machine with eight A100 GPUs, while using only one GPU for these benchmarks. It separately measures loading without downstream work, model inference and training. A loader-only image rate is not the rate of complete training examples after forward, backward and optimizer work.

The abstract’s 74% faster iteration, lower CPU usage and memory reduction describe its selected data-loading comparison. The training experiment instead shows whether the loader can approach a synthetic already-prepared-batch ceiling. That ceiling isolates available model throughput; it is not evidence that reading and decoding real data are free.

Initialization and retained host memory matter

The PyTorch baseline spends time constructing and distributing dataset metadata. The authors show results with and without initialization, and attribute part of the retained memory to copied path lists. This is an identified baseline behavior, not an unavoidable property of every process-based loader or every possible dataset implementation.

SPDL also coordinates batching and device transfer. Reusing prepared or page-locked buffers can change both copy overhead and host-memory retention. The guide to pinned host-memory budgets explains why that memory remains a bounded CPU-side resource rather than extra VRAM.

Keep the Python comparison attached to its table

The reported peak loader rates are 2627 images per second on Python 3.12 and 3158 on free-threaded Python 3.13t, with intermediate results for ordinary Python 3.13. The abstract’s additional percentage should not be applied blindly to all training runs or treated as a universal quotient of any two chart points. Version, concurrency and timing boundary need to remain together.

The author repository identifies the released library and its documentation; no benchmark or installation was executed here. Software-stack reproducibility supplies the corresponding record of preprocessing, libraries and model execution. The practical lesson is to locate the data stage that actually starves computation and measure the complete workload after changing it, while retaining initialization and host-resource costs.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles