{
  "id": 3544744,
  "title": "Bring your own model with Amazon SageMaker AI: Script mode in SDK v3",
  "url": "https://urgent.news/2026/08/26/bring-your-own-model-with-amazon-sagemaker-ai-script-mode-in-sdk-v3",
  "topic": "ai",
  "section": "AI",
  "published": "2026-08-26T16:31:32.000Z",
  "source": {
    "name": "AWS Machine Learning",
    "slug": "aws-machine-learning",
    "url": "https://aws.amazon.com/blogs/machine-learning/bring-your-own-model-with-amazon-sagemaker-ai-script-mode-in-sdk-v3/"
  },
  "original_language": "en",
  "account": "Amazon SageMaker AI now offers Script mode in SDK v3, allowing users to bring their own model for training and inference. This update simplifies workflows by replacing framework-specific estimator classes with a unified ModelTrainer and ModelBuilder. The SDK syncs local source code directories during training and deployment, enabling faster iterations and full container control. Users can bring a container image from AWS Elastic Container Registry (ECR), AWS Deep Learning Container, or a third-party image, with the SDK handling code injection at runtime. The two core classes, ModelTrainer and ModelBuilder, replace the v2 Estimator family and Model/Predictor pattern, respectively. A SourceCode object configures and specifies source_dir and command or entry_script for training and inference. The post provides two examples: training a scikit-learn Random Forest model on the diabetes dataset and fine-tuning Stable Diffusion 3.5 with LoRA. Both examples demonstrate the same core classes and the SourceCode object, which syncs code at runtime and allows for container control, system package installation, and compatibility with multiple frameworks.",
  "summary": "The SageMaker Python SDK v3 redesigns script mode with unified ModelTrainer and ModelBuilder classes. This post walks through two end-to-end examples, a scikit-learn Random Forest and a multi-GPU Stable Diffusion 3.5 LoRA fine-tune, showing how SourceCode syncs your local code into any container at runtime so you can iterate without rebuilding Docker images.",
  "key_points": [
    "Amazon SageMaker AI introduces Script mode in SDK v3 for bringing own models.",
    "ModelTrainer and ModelBuilder replace v2 Estimator family and Model/Predictor pattern.",
    "SourceCode object configures sourcedir and command for training and inference."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}