executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
trainingUse SageMaker Python SDK v3 training workflows with ModelTrainer, distributed drivers, JumpStart training, HPO, AWS Batch queues, and remote-function training concepts.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about general SageMaker training with the
v3 sagemaker-train package. Keep generated code v3-first and SDK-first.
Do not fall back to raw boto3 training-job requests unless the user explicitly
asks for low-level API calls or the SDK does not expose the needed feature.
Read this sub-skill when the user says or implies:
local_cpu, or local_gpu.ModelTrainer.from_jumpstart_config(...).HyperparameterTuner, tune(), or analytics().TrainingQueue, fair-share, priority, or quota share.@remote, RemoteExecutor, or container drivers.../model-customization/SKILL.md.../serving/SKILL.md.../core-resources/SKILL.md.../mlops/SKILL.md.from sagemaker.train import ModelTrainer for training orchestration.sagemaker.core.training.configs for
SourceCode, Compute, InputData, StoppingCondition, OutputDataConfig,
CheckpointConfig, and Networking. Some examples use
sagemaker.train.configs; it is a v3 compatibility shim in this repo.from sagemaker.core import image_uris and
image_uris.retrieve(...) for framework image URI resolution.Session() and get_execution_role() from
sagemaker.core.helper.session_helper rather than hardcoded buckets, regions,
account IDs, or role ARNs.<training-image-uri>, <role-name-or-arn>, and
s3://<bucket>/<prefix> when exact customer resources are unknown.Estimator, framework estimator classes, fit(), v2
Model, v2 Predictor, v2 Processor, or old workflow imports except in an
explicitly labeled deprecated migration note.SourceCode, Compute, InputData,
StoppingCondition, optional Networking, OutputDataConfig,
CheckpointConfig, and optional distributed config.image_uris.retrieve(...) or accept a
user-provided custom image URI placeholder.ModelTrainer(...); set role explicitly outside SageMaker managed
notebooks if automatic role discovery is not guaranteed.trainer.train(..., dry_run=True) for cloud
job configuration checks; for local mode also verify Docker/compose and local
paths before calling train().train(wait=True, logs=True) for a blocking job,
train(wait=False, logs=False) for fire-and-check-later, or use HPO/Batch
entry points when the task requires them.../serving/SKILL.md and route pipeline integration to
../mlops/SKILL.md.references/modeltrainer-workflows.md:
ModelTrainer signatures, imports, region/role/session setup, image retrieval,
hyperparameters, local/SageMaker training, JumpStart, and validation.references/distributed-training.md:
Torchrun, MPI, SMP, custom DistributedConfig, driver environment variables,
local multi-container training, and distributed troubleshooting.references/hyperparameter-tuning.md:
HyperparameterTuner, parameter ranges, metrics, tune(), analytics(),
warm starts/autotune, and MLOps handoff.references/remote-function-and-advanced-training.md:
AWS Batch TrainingQueue, remote function and RemoteExecutor, container
driver concepts, queue monitoring, and advanced routing boundaries.references/troubleshooting.md:
region, credentials, role, Docker/local mode, image URI, source packaging,
hyperparameters, distributed, HPO, JumpStart, Batch, and remote-function fixes.Deprecated v2 training patterns map as follows; keep details concise here and
route broader migrations to ../../references/migration-v2-to-v3.md.
sagemaker.estimator.Estimator -> v3 sagemaker.train.ModelTrainer.ModelTrainer plus image_uris.retrieve(...).estimator.fit(...) -> v3 model_trainer.train(...) with
InputData(channel_name=..., data_source=...).instance_type/instance_count on estimators -> v3
Compute(instance_type=..., instance_count=...).entry_point/source_dir estimator parameters -> v3
SourceCode(entry_script=..., source_dir=...).sagemaker.train.configs, consider replacing with
sagemaker.core.training.configs unless compatibility with an existing
notebook is the explicit goal.SourceCode.source_dir contains the named entry_script and optional
requirements file, or explain that cloud validation will fail.local_container_root deliberately when output location matters.source_code.entry_script and pick one driver:
Torchrun, MPI, or a custom DistributedConfig.tuner.analytics() only after a tuning job exists.Mode.SAGEMAKER_TRAINING_JOB; Batch queues do not
accept local-container ModelTrainer jobs.Compute(instance_type="ml.m5.xlarge", instance_count=1) for CPU
examples unless the user asks for GPU or a framework requires GPU.StoppingCondition(max_runtime_in_seconds=3600) in examples to bound cost.Session().boto_region_name for region and Session().default_bucket()
for sample S3 URI assembly.dry_run=True when the user asks to validate configuration without
launching a chargeable job.wait=False only when the user wants asynchronous submission and you also
show how to inspect or wait for the resulting job/tuner/queue object.../serving/SKILL.md.../mlops/SKILL.md.TrainingJob resources or image URI behavior,
load ../core-resources/SKILL.md.../model-customization/SKILL.md.