返回新闻
产品展示AI Understanding 简报

AWS 详细介绍了用于自定义 AI 模型训练和部署的 SageMaker SDK v3 重新设计

AWS 表示,SageMaker Python SDK v3 通过 ModelTrainer、ModelBuilder 和运行时代码注入统一了自定义模型训练和部署,示例涵盖 scikit-learn 和 Stable Diffusion。

5 min readRead the primary source
Primary-source image accompanying AWS details SageMaker SDK v3 redesign for custom AI model training and deployment
主要来源文件来源记录
出版商
aws.amazon.com
来源链接
aws.amazon.comhttps://aws.amazon.com/blogs/machine-learning/bring-your-own-model-with-amazon-sagemaker-ai-script-mode-in-sdk-v3/
来源类型
主要文件——我们直接阅读的官方公告、文件、文件或第一方页面。
背景60 秒内了解这一点

从这里开始

关键术语

API(应用程序编程接口)
一种软件系统向另一个系统发送请求并接收响应的结构化方式。
LoRA(低阶适应)
一种添加低秩适配器矩阵的参数高效微调方法。
机器学习(ML)
允许系统从数据中学习模式并随着时间的推移进行改进的方法。
测试一下自己AI 模型解释测验

发生了什么

AWS published a technical walkthrough of SageMaker Python SDK v3, which replaces several framework-specific training and deployment classes with a unified ModelTrainer and ModelBuilder interface. The post demonstrates runtime injection of local source code into container images, managed training jobs, real-time endpoints, distributed Stable Diffusion fine-tuning and secret handling through AWS Secrets Manager.

In a post dated 26 August 2026, AWS describes SageMaker Python SDK v3 as a redesign of the earlier script-mode workflow. According to AWS, v3 replaces framework-specific estimator classes such as SKLearn, PyTorch and XGBoost with a single ModelTrainer for launching training jobs. It also replaces the earlier Model and Predictor pattern with ModelBuilder for packaging and deploying models. The post presents this as a common interface across different workloads rather than as a new model or a new training algorithm.

The source is an AWS-authored technical explanation, so the product capabilities and benefits described here are AWS’s claims. A central feature is the SourceCode configuration object. Developers provide a local source directory and either a training command or an inference entry script. AWS says SageMaker synchronizes that directory into the selected container when a job starts, allowing teams to change training or inference code without rebuilding the container image. The container can be a customer-built image in Amazon Elastic Container Registry, an AWS Deep Learning Container or a third-party image.

The walkthrough says this preserves control over system packages, CUDA libraries and runtime versions while presenting one interface for workloads that include scikit-learn, PyTorch, Stable Diffusion and custom C++ inference binaries. The first example trains a scikit-learn Random Forest classifier on a diabetes dataset and deploys it to a real-time endpoint using DJL Serving. The example uses a single ml.m5.2xlarge instance, a one-hour warm-pool setting and Amazon S3 for model artifacts. The second example fine-tunes Stable Diffusion 3.5 Medium with LoRA on a custom image-and-caption dataset.

AWS says it uses Hugging Face Accelerate for distributed training across four A10G GPUs on one ml.g5.12xlarge instance, then deploys the resulting weights to a real-time endpoint. The post also shows recipe-based configuration, customizable input channels, optional MLflow tracking and secret retrieval through AWS Secrets Manager.

来源详情: aws.amazon.com ↗

为什么这很重要

The change could reduce container rebuilds and framework-specific configuration for teams operating custom AI workloads on SageMaker. It also illustrates a common production pattern: keeping model code and runtime environments separate while using managed infrastructure for training, artifacts and inference. The source does not provide independent performance, cost or availability comparisons.

For AI teams, the most practical change described is the separation of reusable runtime infrastructure from frequently changing model code. A container can hold the operating-system packages, libraries and hardware-specific dependencies, while source code, launcher scripts and configuration files are supplied at job launch. If AWS’s implementation works as described, this can shorten an iteration loop for experiments and model updates because a code change does not automatically require a new container build and push. That benefit is operational rather than algorithmic: it affects how teams develop, test and maintain AI systems on managed cloud infrastructure.

The unified API may also reduce the number of SageMaker concepts that developers need to learn when moving between conventional machine learning and generative AI. The same ModelTrainer and ModelBuilder pattern is shown for a CPU-based tabular classifier and a multi-GPU diffusion fine-tuning job. AWS further describes ModelBuilder as capable of packaging inference handlers with model artifacts and, in some cases, selecting containers, capturing dependencies or generating serialization code. These capabilities could make deployment pipelines more consistent, but the source does not establish that every framework, model server or custom binary receives identical support or behavior.

The walkthrough highlights controls that matter in production. Training outputs are written to Amazon S3, model files are packaged for deployment, and inference handlers are expected to load a model once rather than reload it for every request. The example also recommends validating request content types and using Secrets Manager for sensitive tokens instead of putting them in notebooks or plain-text environment variables. Those practices can improve repeatability and reduce avoidable exposure, but they do not by themselves demonstrate a complete security or governance system.

The post does not report independent testing, measured latency, cost reductions, endpoint reliability or quality changes in the trained models.

Interactive Mechanism

互动机制:它实际上是如何运作的

以交互方式探索这一发展背后的基础技术。

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:🛡️ Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
交互式概念检查+10 Points
AI Models Explained Quiz

Which component of an AI application is the machine-learning model itself?

接下来看什么

Teams evaluating the SDK should verify migration effort, supported framework and serving combinations, regional availability, service limits, security permissions and total cost. They should also test whether runtime code injection, warm pools, multi-GPU training and secret retrieval fit their own deployment and compliance requirements.

The first question for adopters is migration scope. AWS describes a shift from SDK v2 estimator classes and the Model/Predictor pattern to ModelTrainer and ModelBuilder, but the post does not list every incompatible parameter, deprecated feature or migration caveat. Teams with existing SageMaker pipelines should test custom entry points, dependency installation, model archives, inference handlers and monitoring integrations before treating the new interface as a drop-in replacement.

They should also confirm which serving runtimes support their particular model format and request protocol. Cost and capacity are another open issue. The examples use managed training and real-time endpoints, warm pools, S3 storage, container registries and, for Stable Diffusion, four GPUs. Those resources can create recurring charges, and the source provides no pricing estimate, utilization data or comparison with other deployment approaches.

AWS specifically instructs readers to delete endpoints, endpoint configurations, models, S3 artifacts, ECR images and optional MLflow resources after testing. That cleanup guidance signals that the examples are operational cloud workflows, not cost-free local demonstrations. Security and reliability details deserve scrutiny before production use. The source says an execution role or user needs SageMaker and S3 permissions, and that training or continuous-integration principals need permission to read secrets from Secrets Manager.

Organizations should review those permissions, isolate training and serving roles, control what code is synchronized into containers and determine how logs handle errors or sensitive data. They should also test cold starts, warm-pool behavior, endpoint scaling, model loading and failure recovery. The post does not state regional availability, service quotas, formal support status, independent benchmark results or whether the example repositories will remain synchronized with future SDK releases.

相关指南和测验

人工智能模型解释人工智能培训AI 的未来测试你所知道的——尝试免费的人工智能测验在我们的词汇表中查找人工智能术语关注 AI 模型发布跟踪器
觉得这有用吗?