计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
sagemaker-python-sdk【效率与协作】Route SageMaker Python SDK v3 tasks to self-contained guidance for core resources, training, model customization, serving, MLOps, migration, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the task involves the Amazon SageMaker Python SDK v3:
training, fine-tuning, deployment, inference, pipelines, Feature Store, model
registry, low-level SageMaker resources, image URI retrieval, or V2-to-V3
migration. The SDK is v3-first and modular: sagemaker-core,
sagemaker-train, sagemaker-serve, and sagemaker-mlops.
pip install sagemaker).boto3, AWS CLI, or hand-written service requests
unless the user explicitly asks for those lower-level interfaces.Session(), get_execution_role(),
Session().default_bucket(), and placeholders.| User intent | Load this |
|---|---|
| Install/import smoke, v3-vs-v2 decision, or broad SDK selection | Stay in this root and read references/v3-interface-selection.md |
Retrieve framework image/model/script URIs, use Session, low-level jobs/resources, processing, transform, endpoints, or lineage | sub-skills/core-resources/SKILL.md |
Train a model with ModelTrainer, local/distributed training, JumpStart training, HPO, AWS Batch training queues, or remote function | sub-skills/training/SKILL.md |
| Fine-tune/customize foundation models with SFT/DPO/RLVR/RLAIF/CPT/MultiTurnRL, run evaluations, recipes, data mixing, or notifications | sub-skills/model-customization/SKILL.md |
Deploy or serve with ModelBuilder, InferenceSpec, local/in-process/container mode, serverless/async/batch inference, JumpStart, optimization, Bedrock, or recommendations | sub-skills/serving/SKILL.md |
| Build SageMaker Pipelines, workflow steps, model registry flows, Feature Store orchestration, quality/Clarify checks, lineage/governance, triggers, retries, or local pipeline execution | sub-skills/mlops/SKILL.md |
| Convert old SDK code to v3 | references/migration-v2-to-v3.md, then route to the owning sub-skill |
| Debug install/import/region/role/credentials/optional deps | references/troubleshooting.md |
sagemaker.train.ModelTrainer or the
specialized customization trainers in the model-customization sub-skill.ModelTrainer with Compute(instance_count=...) and a
Torchrun, MPI, SMP, or custom DistributedConfig.sagemaker.train.tuner.HyperparameterTuner or
sagemaker.core.resources.HyperParameterTuningJob for low-level control.sagemaker.serve.ModelBuilder.Endpoint.invoke(...).sagemaker.core.resources and
helper classes such as ScriptProcessor or Transformer.sagemaker.mlops.workflow
and sagemaker.mlops.feature_store.sagemaker.core.image_uris.retrieve(...).dry_run=True; do not submit
billable jobs unless explicitly authorized.references/v3-interface-selection.md:
package selection, install choices, and v3-first intent routing.references/migration-v2-to-v3.md:
deprecated v2 pattern mappings and migration workflow.references/api-signature-summary.md:
verified public signatures and import caveats for this checkout.references/troubleshooting.md:
install/import/region/role/credentials, optional dependency, Docker, and cloud
service failure recovery.scripts/check_sagemaker_v3_imports.py:
safe import/version/CUDA probe for an installed SDK environment; it does not
make cloud service calls.references/repo-provenance.md: source
commit, versions, evidence paths, and refresh baseline.sagemaker.serve and sagemaker.mlops may need AWS_REGION or
AWS_DEFAULT_REGION set even for import in a fresh environment.ModelTrainer and ModelBuilder can try role discovery through STS when no
explicit role is supplied; outside SageMaker-managed environments this can
fail before any job is submitted.Return the sub-skill(s) consulted, the v3 interfaces selected, any assumptions
about region/role/S3/compute, the validation path used (dry_run, local smoke,
or no-submit review), and any cloud/Docker/native checks intentionally skipped.