agentleFS
AWSKnown publisheraws/sagemaker-python-sdk/llms.txt

sagemaker-python-sdk

llms.txt2.3k starsChanged 3 months agoApache-2.0View on GitHub

Source repository and documentation for the Amazon SageMaker Python SDK v3. pip install sagemaker installs v3. SDK v3 is modular (sagemaker-core, sagemaker-train, sagemaker-serve, sagemaker-mlops) and is not backward compatible with v2. v2 is on a maintenance branch (security/bug fixes only) and should not be used as a basis for new code. This file follows the llms.txt convention (https://llmstxt.org): a curated index plus explicit instructions so AI coding agents generate correct, current (v3) SDK code. - SDK-first: for any SageMaker task…

  • Installs packages

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 5 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the aws/sagemaker-python-sdk repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about aws/sagemaker-python-sdk

The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 21

Talked about on GitHub (21 times).

On GitHub · 21

16 more on GitHub

The file

We split this llms.txt into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default to SageMaker Python SDK v3.

    line 22
  2. Distinctive:

    After generating SageMaker code, validate it contains none of the v2 patterns above.

    line 33
  3. Very specific:

    No hardcoded account IDs, role ARNs, regions, or bucket names.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# Amazon SageMaker Python SDK

> Source repository and documentation for the Amazon SageMaker Python SDK **v3**.
> `pip install sagemaker` installs v3. SDK v3 is modular (`sagemaker-core`, `sagemaker-train`,
> `sagemaker-serve`, `sagemaker-mlops`) and is **not** backward compatible with v2. v2 is on a
> maintenance branch (security/bug fixes only) and should not be used as a basis for new code.

This file follows the llms.txt convention (https://llmstxt.org): a curated index plus explicit
instructions so AI coding agents generate correct, current (v3) SDK code.

## Instructions for LLM agents (SageMaker Python SDK)

- **SDK-first:** for any SageMaker task (train, deploy, process, pipelines), use the
  **SageMaker Python SDK v3** as the primary interface. Do not drop to raw `boto3`
  (`create_training_job`, `create_endpoint`), the AWS CLI, or hand-rolled framework scripts
  unless the user explicitly asks. Intent → interface:
  - "train / fine-tune / training job / serverless training" → `sagemaker.train.ModelTrainer` (`.train(...)`)
  - "deploy / host / real-time or serverless or async endpoint" → `sagemaker.serve.ModelBuilder` (`.deploy(...)`)
  - "process data / feature engineering / preprocess" → `sagemaker.core.resources.ProcessingJob`
  - "pipeline / orchestrate / MLOps" → `sagemaker.mlops.pipeline.Pipeline`, `sagemaker.mlops.steps`
  - "container image URI" → `sagemaker.core.image_uris.retrieve(...)`
- Default to SageMaker Python SDK **v3**.
- **Never** emit these v2 patterns unless the user explicitly asks for "v2":
  - `from sagemaker.estimator import Estimator` → use `from sagemaker.train import ModelTrainer`
  - framework estimator classes (`from sagemaker.pytorch import PyTorch`, TensorFlow, SKLearn,
    XGBoost, HuggingFace) → `ModelTrainer` + `from sagemaker.core import image_uris` (`image_uris.retrieve(...)`)
  - `estimator.fit(...)` → `model_trainer.train(...)`
  - `from sagemaker.model import Model` / `model.deploy(...)` → `from sagemaker.serve import ModelBuilder`; `ModelBuilder(...).deploy(...)`
  - `from sagemaker.predictor import Predictor` / `predictor.predict(...)` → `Predictor` replaced by `Endpoint` (sagemaker-core); use the predictor returned by `ModelBuilder.deploy(...)`
  - `from sagemaker.processing import Processor/ScriptProcessor/SKLearnProcessor` → `sagemaker.core.resources.ProcessingJob`
  - `from sagemaker.workflow...` → `from sagemaker.mlops...`
- Removed in v3 (no replacement): MXNet, Chainer, RLEstimator, Training Compiler.
- After generating SageMaker code, validate it contains none of the v2 patterns above. If unsure
  of a mapping, consult the migration guide below or call the migration MCP tool.
- No hardcoded account IDs, role ARNs, regions, or bucket names. Use `get_execution_role()` and
  `Session().default_bucket()`.

## Migration

- [V2 → V3 migration guide](https://github.com/aws/sagemaker-python-sdk/blob/master/migration.md): authoritative mappings and before/after examples

## Core v3 packages & interfaces

- `sagemaker-core` — foundation primitives, resource-oriented API, `image_uris.retrieve(...)`, `Endpoint`, `ProcessingJob`
- `sagemaker-train` — `ModelTrainer` (+ `train.configs`: `Compute`, `SourceCode`, `InputData`)
- `sagemaker-serve` — `ModelBuilder` (+ `serve.configs.InferenceSpec`)
- `sagemaker-mlops` — `pipeline.Pipeline`, `steps`, Model Registry

## Documentation

- [SageMaker Python SDK docs (Read the Docs)](https://sagemaker.readthedocs.io/): API reference and guides
- [Source repository](https://github.com/aws/sagemaker-python-sdk)
- [Contributing guide](https://github.com/aws/sagemaker-python-sdk/blob/master/CONTRIBUTING.md)

## Examples

- [Amazon SageMaker Examples (v3)](https://github.com/aws/amazon-sagemaker-examples): runnable v3 notebooks across training, deployment, MLOps, and GenAI

## Optional

- v2 maintenance branch: security/bug fixes only — do not use as a basis for new code

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.