Interview Prep/Docker/Build Performance & CI

How do you cut cold-start for huge ML images (10+ GB)?

IntermediateProductionBuild Performance & CI
Answer

Separate model weights from the image (download from S3 at start into a volume, or mount via FSx/EFS), keep CUDA base layers first so they are shared, use lazy-pulling snapshotters (SOCI, stargz) or pre-pull on nodes (image caching, Karpenter AMIs with baked images), and use zstd compressed layers for faster decompression.

All Docker questions Roadmap: Docker & containers

More on Build Performance & CI