MikhbarMIKHBAR
Artificial Intelligence

AWS Announces SOCI-Indexed Images for Faster SageMaker AI

Amazon SageMaker AI now supports Seekable OCI indexing to lazy-load deep learning container images, removing full image downloads from the critical startup path.

AWS Announces SOCI-Indexed Images for Faster SageMaker AI

Accelerating Deep Learning Jobs with Lazy-Loading

Every minute a deep learning container image spends downloading is billable job time that produces no model progress. For modern deep learning images, this overhead can consume several minutes on every single job. To address this efficiency bottleneck, Amazon Web Services has announced the integration of Seekable OCI (SOCI) indexing for Amazon SageMaker AI Training and Amazon SageMaker AI processing jobs, taking full container image download completely off the critical path of every execution.

With SOCI indexing, SageMaker AI lazy-loads your container image by fetching only the files needed to start the container immediately. It then streams the remainder of the image in the background while your code runs. This mechanism allows jobs to begin in seconds rather than minutes. Developers can adopt the capability by pointing to a pre-indexed AWS Deep Learning Container (DLC) or by adding an index to their own custom image without requiring changes to job definitions, entry points, or data channels. Further details are available from Imagenette in the original source material.

Bar chart comparing Docker pull and SOCI lazy-loading download times across eight image sizes, with speedups from about 10x to over 35x
Image related to the report from AWS Machine Learning Blog · Source: AWS Machine Learning Blog

How SOCI Indexing Works in Amazon SageMaker AI

SageMaker AI training and processing jobs traditionally execute inside container images stored in Amazon Elastic Container Registry (Amazon ECR). Before any code can run, the service must download, decompress, and write every layer of the entire image to disk. While small images load quickly, deep learning containers routinely exceed 10 GB, adding significant delay and cost to every job. This impacts hyperparameter tuning sweeps, quick experiments, and short processing jobs most severely.

Seekable OCI is an open source technology designed to solve this exact problem. Instead of downloading an entire image upfront, the runtime uses a metadata index that maps every file inside the container image. This separate OCI-compliant artifact is linked to the original image in Amazon ECR, ensuring that existing image digests and signatures remain entirely valid.

When creating a training or processing job, SageMaker AI automatically checks whether the specified image contains a SOCI index. If an index is present, the service uses lazy loading; if not, it automatically falls back to a standard container download. Because of this built-in fallback behavior, adding a SOCI index never prevents a job from running or disrupts established workflows.

Chart comparing standard download and SOCI lazy loading for a 13.2 GB image across 13 instance type and size combinations, about 34x faster on each
Image related to the report from AWS Machine Learning Blog · Source: AWS Machine Learning Blog

Benchmark Results and Startup Improvements

AWS evaluated standard container image pulls against SOCI lazy loading across eight different image sizes, ranging from 1.8 GB to 35.4 GB. While standard Docker download times scaled steadily with image size—ranging from 48 seconds for the smallest image to over 7 minutes for the 35.4 GB image—lazy-loaded startup times consistently remained between 3 and 11 seconds regardless of overall file size.

Further testing across 13 different GPU and CPU instance configurations using a 13.2 GB image demonstrated consistent speedups of approximately 34x. Standard downloads across these hardware combinations ranged from 3 minutes and 16 seconds to 4 minutes and 20 seconds, whereas lazy-loading times held steady between 6 and 8 seconds without requiring any modifications to instance types or sizes.

Chart breaking job startup into image download time and first training epoch time, comparing a standard Docker pull with a SOCI-indexed image across GPU and CPU configurations
Image related to the report from AWS Machine Learning Blog · Source: AWS Machine Learning Blog

Impact on Training Performance and Execution

To understand the broader operational impact, AWS compared full training jobs using standard Docker pulls and SOCI-indexed images across common deep learning workloads. These workloads included image classification tasks using ResNet-50 models alongside full-parameter supervised fine-tuning of large language models using Hugging Face tools.

Benchmarks revealed that training performance beyond the initial epoch remains unaffected by lazy loading. Although the first training epoch experiences a minor penalty of 3 to 16 seconds while framework files are fetched on demand, subsequent epochs proceed at identical speeds. Overall, individual jobs finished 1 to 6 minutes sooner, representing a net savings achieved by subtracting the one-time first-epoch cost from the substantial image download time reductions.

Sources

Continue chronologically

Related entity coverage