Solving GPU Inference Costs and Efficiency Simultaneously with SageMaker MIG Support

AWS SageMaker Inference utilizes NVIDIA MIG technology to support the partitioning of a physical GPU into up to 7 independent partitions. Combined with inference components, it enables the isolated deployment of multiple models from a single endpoint, allowing for flexible combinations of 7 compute slices based on A100. Salesforce participated in the initial validation to confirm enterprise-grade workload suitability. Hardware-level isolation is applied using only two existing configuration fields without new APIs.

A New Paradigm for SageMaker Inference: The Meaning of GPU Partitioning

Amazon SageMaker Inference has begun to natively support NVIDIA Multi-Instance GPU (MIG) technology. This technology partitions a single physical GPU into up to 7 independent partitions at the hardware level, allocating dedicated compute resources and memory bandwidth to each partition. Previously, a single model had to monopolize the entire GPU, but now multiple models can safely share one GPU on the Inference Components framework.

This change goes beyond simple 'resource sharing'. Unlike software scheduling-based time-sharing, MIG provides Hardware-enforced Isolation. Memory errors or traffic spikes in one partition do not affect the latency (p99) or stability of other partitions. AWS defines this with two key guarantees: "Predictable Latency" and "Fault Isolation".

Limitations of Existing Approaches and MIG's Differentiation

When the number of models exceeded the number of GPUs, companies had to choose one of three compromises.

ApproachAdvantagesLimitations
Large Endpoint Integration & Batch ProcessingImproved GPU utilizationValid only when models can be exchanged, unsuitable for fine-tuning variants and tenant-specific models
Multi-Model Endpoint (MME)Suitable for sparse and burst trafficLack of isolation between models, cold start penalties, competition for shared GPU
Self-managed Kubernetes + MIGComplete control over hardware partitioningSignificant operational burden including driver version management, partition configuration, device plugins, scheduling, and fleet consistency maintenance

SageMaker's GPU partitioning brings the hardware advantages of the third option with the management convenience of the first option. Users can achieve a hardware-isolated environment simply by declaring the partition layout when creating an endpoint, without directly operating a Kubernetes stack.

Technical Architecture: Partition Layout and Inference Components

MIG partitioning operates on top of Inference Components. Inference components are the building blocks that deploy multiple models within a single endpoint and allocate compute resources (CPU, memory, now GPU partitions) for each model. Partitioning is integrated by adding two optional fields to this.

1. AcceleratorPartitionLayouts (production variant level, specified during `CreateEndpointConfig`)

2. AcceleratorPartitionType (inference component level)

Example of Partition Profile Based on A100 80GB - 1g.10gb: 1 compute slice + 10GB memory (up to 7 per GPU) - 2g.20gb: 2 compute slices + 20GB memory (up to 3 per GPU) - 3g.40gb: 3 compute slices + 40GB memory (up to 2 per GPU) - 7g.80gb: 7 compute slices + 80GB memory (entire GPU, 1 per GPU)

Applying a layout that places one of each type `1g.10gb`, `2g.20gb`, `3g.40gb` on an ml.p4d.24xlarge (8×A100) instance results in a total of 24 partitions (8 of each type) available, allowing small, medium, and large models to be served simultaneously from a single instance.

1g.10gb7
2g.20gb3
3g.40gb2
7g.80gb1

Six Hardware Guarantees Provided by MIG

Based on AWS documentation and NVIDIA MIG architecture, the specific guarantees provided by SageMaker partitioning are as follows.

Salesforce Validation Case: Reflecting Enterprise Requirements

Salesforce has participated in defining requirements and validating initial implementations since the early stages of this feature's development. Richard Chang (Salesforce Software Engineering Architect) stated:

"NVIDIA MIG partitions a single GPU into multiple isolated instances with dedicated compute and memory resources. Salesforce views this feature as crucial because many inference workloads do not require the full GPU. With MIG, we can safely consolidate workloads, significantly improve GPU utilization, reduce inference costs, and maintain predictable performance and strong isolation. This feature will help scale AI inference more efficiently across various use cases. Salesforce has assisted in defining requirements and validating initial solutions, and we are currently validating the solution with representative production workloads, demonstrating strong customer demand with AWS. We believe that MIG support will provide significant technical and business value to enterprise customers."

This statement suggests that 'cost reduction' and 'performance guarantees' must coexist in enterprise environments. Salesforce evaluates that the isolation of MIG in multi-tenant, multi-use case environments meets both security compliance and operational predictability.

Constraints and Operational Considerations

While powerful, there are boundary conditions that must be recognized before adoption.

So What? — Implications for Developers, Companies, and Industries

Developer Perspective: Without the operational burden of managing a Kubernetes MIG stack, hardware isolation can be configured with just the two fields `AcceleratorPartitionLayouts` and `AcceleratorPartitionType`. If you are already using an inference component-based deployment pipeline, the migration cost is extremely low.

Company and Cost Perspective: Maximizing GPU utilization directly translates to cost savings. For an ml.p4d.24xlarge (8×A100), the maximum number of models previously was 8; with partitioning, it can host up to 56 models simultaneously (1g.10gb×7×8). Small models (e.g., 7B parameter models) can be adequately served with 10-20GB partitions, theoretically achieving up to 7 times cost efficiency compared to full GPU allocation.

Security and Compliance Perspective: Hardware-enforced memory isolation simplifies the proof of data isolation between tenants. In regulated industries such as finance, healthcare, and public sectors, the burden of audit responses is reduced when building multi-tenant inference services.

Industry Trend: This signals the standardization of 'GPU partition unit sales' in cloud-managed inference services. Similar functionality expansion is expected from Azure and GCP, accelerating the trend of 'serverless and granularization' in inference infrastructure.

Verified figures

Our take

The native support of MIG in SageMaker is a significant milestone that extends the 'serverless' nature of inference infrastructure down to the GPU level. It greatly lowers the entry barrier for small to medium-sized teams by obtaining hardware isolation without the operational burden of Kubernetes, and it is a rare case that simultaneously meets the multi-tenant and compliance requirements of enterprises.

Open questions

Source

Back to catalog