GPU Resource Optimization for Multi-Model LLM Deployment

salesforce · Tech · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: LLM model serving infrastructure

Salesforce needed to serve multiple proprietary LLMs with different sizes, traffic patterns, latency needs, and cost constraints while improving GPU utilization and avoiding over-provisioned SageMaker endpoints.

Constraints:

Architecture

Salesforce adopted Amazon SageMaker AI inference components alongside existing single-model endpoints. A SageMaker endpoint defines instance type and baseline capacity; each model becomes an inference component with its own accelerator allocation, memory allocation, model artifacts, container image, copies, and scaling policy. SageMaker packs multiple models onto GPU instances, scales model copies and instances dynamically, and lets Salesforce keep SMEs for stable critical workloads while using inference components for variable workloads and efficient GPU sharing.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  salesforce_ai_applications["Salesforce AI applications"] --> sagemaker_ai_endpoint["SageMaker AI endpoint"]
  salesforce_model_serving_team["Salesforce Model Serving team"] --> sagemaker_ai_endpoint
  sagemaker_ai_endpoint --> inference_components["Inference components"]
  sagemaker_ai_endpoint --> single_model_endpoints["Single model endpoints"]
  model_packages["Model packages"] --> inference_components
  inference_components --> auto_scaling_policies["Auto scaling policies"]
  auto_scaling_policies --> managed_instance_auto_scaling["Managed instance auto scaling"]
  managed_instance_auto_scaling --> gpu_instance_fleet["GPU instance fleet"]
  inference_components --> gpu_instance_fleet
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Salesforce AI applications Agentforce, ApexGuru, and other Salesforce workloads requiring model inference. SageMaker AI endpoint
SageMaker AI endpoint Endpoint configured with instance type and baseline instance count for model serving. Inference components, Single model endpoints
Inference components Per-model deployment units specifying accelerators, memory, artifacts, container image, model copies, and scaling policies. Model packages, Auto scaling policies, GPU instance fleet
Model packages Salesforce proprietary model artifacts and containers such as CodeGen, BlockGen, FlowGPT, and TextEval variants. Inference components
Auto scaling policies Model-specific policies that scale inference component copies and backing compute based on traffic. Inference components, Managed instance auto scaling
Managed instance auto scaling SageMaker mechanism that adds or removes compute instances according to loaded inference components. GPU instance fleet
GPU instance fleet High-performance P4d/P5/P5en-style GPU capacity used to host packed model components. Inference components
Single model endpoints Dedicated per-model SageMaker endpoints retained for predictable critical workloads. SageMaker AI endpoint
Salesforce Model Serving team Platform team managing onboarding, deployment, performance, and cost efficiency for AI workloads. SageMaker AI endpoint

Data flow

Salesforce applications such as ApexGuru or Agentforce send inference traffic to SageMaker-hosted model endpoints. For inference-component endpoints, SageMaker loads model packages as per-model components, assigns accelerator and memory resources, places and packs model copies onto GPU instances, and scales model copies or backing instances based on traffic. Critical steady workloads can remain on single-model endpoints, while variable model workloads share GPU capacity on inference-component endpoints.

3 supporting quotes
“you can deploy one or more FMs on the same SageMaker AI endpoint and control how many accelerators and how much memory is reserved for each FM.”article, stated
“The model is configured in a new construct, an inference component.”article, stated
“By using the auto scaling capabilities, inference components can set up endpoints with multiple copies of models and automatically adjust GPU resources as traffic fluctuates.”article, stated

Why this architecture

Inference components solve Salesforce's mismatch between model size, traffic, and GPU allocation by packing multiple models on shared endpoints with per-model resource controls and scaling policies. The hybrid architecture keeps dedicated SMEs where predictable performance is valuable, while inference components reduce idle GPU capacity and operational overhead for variable workloads.

3 supporting quotes
“Their larger models (20–30 GB) with lower traffic patterns were running on high-performance GPUs, resulting in underutilized multi-GPU instances”article, stated
“This hybrid approach uses the strengths of each. SMEs provide dedicated hosting for each model and predictable performance for critical workloads with consistent traffic patterns”article, stated
“inference components optimize resource utilization for variable workloads through dynamic scaling and efficient GPU sharing.”article, stated

Models used: CodeGen · XGen · Inline · BlockGen · FlowGPT · TextEval

Scale

Alternatives considered (roads not taken)

Keep all models on single model endpoints

Rejected because: SMEs provide predictable performance for critical steady workloads but create underutilized or over-provisioned GPU capacity for variable workloads.

“Salesforce has several different proprietary models such as CodeGen originally spread across multiple SMEs.”article, stated
“SMEs provide dedicated hosting for each model and predictable performance for critical workloads with consistent traffic patterns”article, stated

Move entirely to inference components

Rejected because: Salesforce introduced inference component endpoints alongside existing SMEs to preserve stability, performance, and usability where SMEs fit better.

“Salesforce introduced inference component endpoints alongside the existing SME.”article, stated
“This hybrid approach uses the strengths of each. SMEs provide dedicated hosting for each model and predictable performance for critical workloads with consistent traffic patterns”article, stated

Over-provision multi-GPU setups for medium models

Rejected because: Medium 15 GB high-traffic models incurred higher costs on similar multi-GPU setups even though they needed lower-latency, higher-throughput serving.

“medium-sized models (approximately 15 GB) handling high-traffic workloads demanded low-latency, high-throughput processing capabilities.”article, stated
“These models often incurred higher costs due to over-provisioning on similar multi-GPU setups.”article, stated

Use traditional blue/green deployment for future model updates

Rejected because: Salesforce is looking to rolling updates to avoid requiring doubled instances and to minimize extra capacity during updates.

“rather than using the traditional blue/green deployment method, providing greater flexibility and control over model updates”article, stated
“using minimal extra instances, rather than requiring doubled instances as in the past.”article, stated

Patterns

model-routing (resource-aware serving)

Salesforce routes different model sizes and traffic patterns across SMEs and inference components, with model-specific accelerator, memory, copy, and scaling settings.

“They configured each model, for example, BlockGen and TextEval models as individual inference components specifying precise resource allocations”article, stated
“SMEs provide dedicated hosting for each model and predictable performance for critical workloads with consistent traffic patterns”article, stated

cost-aware-routing (GPU utilization)

Inference components pack multiple models on shared high-performance GPU endpoints and dynamically scale copies/instances to reduce idle compute and infrastructure cost.

“SageMaker AI will optimally place and pack models onto ML instances to maximize utilization, leading to cost savings.”article, stated
“SageMaker AI will scale to add and remove instances dynamically to maintain availability while keeping idle compute to a minimum.”article, stated

tool-use-orchestration (model serving control plane)

The serving architecture coordinates model artifacts, container images, accelerator allocations, memory reservations, model copies, autoscaling policies, and GPU instance placement.

“you specify the number of accelerators and amount of memory you want to allocate to each copy of a model, together with the model artifacts, container image”article, stated
“SageMaker AI will handle the placement to optimize the packing of your models for availability and cost.”article, stated

Tradeoffs

Use inference components for variable workloads.

Chose Shared endpoint model packing with per-model resource controls over Separate single-model endpoints for every model.

Rationale: Inference components reduce idle GPU capacity, lower cost, and decrease endpoint-management overhead for variable traffic patterns.

“This consolidation not only delivers reduction in infrastructure costs through intelligent resource sharing and dynamic scaling”article, stated
“it also reduces operational overhead with lesser endpoints to manage.”article, stated

Keep a hybrid endpoint strategy.

Chose SMEs plus inference component endpoints over A one-size-fits-all hosting pattern.

Rationale: SMEs fit consistent critical traffic, while inference components optimize variable workloads through dynamic scaling and GPU sharing.

“This hybrid approach uses the strengths of each. SMEs provide dedicated hosting for each model and predictable performance for critical workloads with consistent traffic patterns”article, stated
“inference components optimize resource utilization for variable workloads through dynamic scaling and efficient GPU sharing.”article, stated

Allocate resources at model granularity.

Chose Per-model accelerator, memory, copy, and scaling policy configuration over Endpoint-level resource allocation only.

Rationale: Granular allocation lets Salesforce match each model's traffic and performance profile while sharing the same endpoint.

“specifying precise resource allocations, including accelerator count, memory requirements, model artifacts, container image, and number of model copies”article, stated
“maintaining granular control over resource allocation and scaling behaviors.”article, stated

Use high-end GPUs more selectively.

Chose High-performance GPU access through packed and autoscaled endpoints over Dedicating expensive GPUs to underutilized models.

Rationale: Better packing lets smaller models benefit from high-performance GPUs without the traditional cost overhead.

“Enhanced performance for smaller models – Smaller models now use high-performance GPUs to meet their latency and throughput needs without incurring excessive costs.”article, stated
“open up new opportunities for using high-end, expensive GPUs in a cost-effective manner.”article, stated

Gotchas (what bit them)

Large low-traffic models can waste high-performance multi-GPU instances.

Root cause: The 20-30 GB model class needed high-performance GPUs but did not receive enough traffic to use the whole instance efficiently.

Resolution: Use inference components to pack models and allocate resources granularly on shared endpoints.

“Their larger models (20–30 GB) with lower traffic patterns were running on high-performance GPUs, resulting in underutilized multi-GPU instances”article, stated
“Inference components enable multiple models to share GPU resources efficiently on the same endpoint.”article, stated

Medium high-traffic models can be over-provisioned when hosted like larger models.

Root cause: Approximately 15 GB models needed low latency and high throughput but often ran on similar multi-GPU setups with excessive cost.

Resolution: Give each model independent scaling and resource allocation based on traffic patterns.

“medium-sized models (approximately 15 GB) handling high-traffic workloads demanded low-latency, high-throughput processing capabilities.”article, stated
“Each model scales independently based on custom configurations, providing optimal resource allocation”article, stated

Full migration to a shared endpoint model could risk stability for critical workloads.

Root cause: Some critical workloads have consistent traffic and need dedicated predictable performance.

Resolution: Use a hybrid architecture with SMEs alongside inference component endpoints.

“To expand hosting options on SageMaker AI without affecting stability, performance, or usability”article, stated
“This hybrid approach uses the strengths of each. SMEs provide dedicated hosting for each model and predictable performance for critical workloads with consistent traffic patterns”article, stated

Model updates can temporarily double capacity requirements.

Root cause: Traditional blue/green deployment requires extra instances during replacement.

Resolution: Plan to use SageMaker rolling updates for inference component endpoints with batch-by-batch model updates and real-time safety checks.

“rather than using the traditional blue/green deployment method”article, stated
“using minimal extra instances, rather than requiring doubled instances as in the past.”article, stated

Evaluation

Salesforce evaluated the serving architecture through GPU utilization, infrastructure cost, performance preservation, endpoint-management overhead, scaling behavior, and ability to host both large and smaller workloads on the same infrastructure.

Metrics: model sizes from a few GB to 30 GB · large low-traffic models around 20-30 GB · medium high-traffic models around 15 GB · up to eight-fold reduction in deployment and infrastructure costs · ability to scale to hundreds of models · support for P4d, P5, and P5en high-performance GPU instances

3 supporting quotes
“achieving up to an eight-fold reduction in deployment and infrastructure costs while maintaining high performance standards.”article, stated
“high throughput and low latency without the traditional cost overhead.”article, stated
“scale to hundreds of models, and optimize costs while providing predictable performance.”article, stated

Outcomes

The architecture supports a diverse model portfolio ranging from a few GB to 30 GB, with model-specific traffic patterns, and is designed to scale to hundreds of Salesforce AI models on high-end GPU infrastructure.

3 supporting quotes
“Salesforce improved resource efficiency and achieved a substantial reduction in operational cost while maintaining the high-performance standards”article, stated
“Today, their AI platform efficiently serves both large proprietary models such as CodeGen and smaller workloads on the same infrastructure”article, stated
“By establishing a more efficient and scalable infrastructure foundation, Salesforce can now confidently expand their AI offerings”article, stated