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.
| Approach | Advantages | Limitations |
|---|---|---|
| Large Endpoint Integration & Batch Processing | Improved GPU utilization | Valid only when models can be exchanged, unsuitable for fine-tuning variants and tenant-specific models |
| Multi-Model Endpoint (MME) | Suitable for sparse and burst traffic | Lack of isolation between models, cold start penalties, competition for shared GPU |
| Self-managed Kubernetes + MIG | Complete control over hardware partitioning | Significant 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`)
- Defines how to partition each physical accelerator
- The layout applies uniformly to all instances of all accelerators within the variant
- The list is not position-based (not mapped to specific GPUs)
2. AcceleratorPartitionType (inference component level)
- Selects the type of partition in which the component will run
- One partition occupancy per copy of the component
- Increasing `CopyCount` places additional copies in spare partitions
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.10gb | 7 |
| 2g.20gb | 3 |
| 3g.40gb | 2 |
| 7g.80gb | 1 |
Six Hardware Guarantees Provided by MIG
Based on AWS documentation and NVIDIA MIG architecture, the specific guarantees provided by SageMaker partitioning are as follows.
- Predictable Latency: Dedicated memory bandwidth per partition blocks the impact of traffic spikes from other models
- Fault Isolation: Crashes and memory errors are confined within the partition, preventing total GPU downtime
- Right-sized Capacity: Selection of slices appropriate to model size, allowing for mixed batches of various sizes
- Cold Start Elimination: Each model resides in a dedicated partition, with no load penalties or evictions
- Tenant Isolation: Simplifies security and compliance audits with hardware-enforced memory protection
- Reliable Planning and Chargeback: Consistent performance without neighbor impact makes load testing production predictable, clearly mapping GPU costs by model, team, and tenant
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.
- Maximum Number of Partitions: Up to 7 per GPU (based on A100), varies by GPU generation and model
- Fixed Layout: Due to MIG's own constraints, layout changes are only possible when partitions are idle; in SageMaker, the layout is finalized at the endpoint creation time
- Multi-GPU Models: Models requiring 2 or more GPUs still need to monopolize the entire device
- Exclusions: Partitioning is not possible for single model endpoints, serverless endpoints, or heterogeneous instance pools
- No API Changes: No new API operations, resource types, or IAM actions; omitting the two fields behaves the same as before
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.