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.
More on Build Performance & CI
How do you make Docker builds fast in CI where runners are ephemeral?BeginnerWhat are the cache backends in buildx?BeginnerWhy does `inline` cache often disappoint?AdvancedHow do you structure a Python Dockerfile for the best caching and size?IntermediateHow do you structure a Node.js production image?IntermediateHow do you build a small Java image?Beginner