mlops
Use SageMaker Python SDK v3 MLOps workflows for Pipeline orchestration, workflow steps, model registry, monitoring, lineage, triggers, and feature store.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- mlops
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use SageMaker Python SDK v3 MLOps workflows for Pipeline orchestration, workflow steps, model registry, monitoring, lineage, triggers, and feature store.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/lineage-monitoring-and-governance.md1.3 KB
- 参考文档references/pipeline-workflows.md2.5 KB
- 参考文档references/processing-feature-store-and-registry.md2.0 KB
- 参考文档references/troubleshooting.md1.8 KB
03 SKILL.md 正文
SageMaker Python SDK v3 MLOps Sub-skill
Use this sub-skill for sagemaker-mlops workflow orchestration. It covers
pipeline definition, step composition, registry flows, monitoring, lineage,
triggers, feature-store-oriented orchestration, and local pipeline execution
limits.
Trigger phrases
Read this sub-skill when the user says or implies:
- pipeline orchestration, workflow orchestration, or SageMaker Pipelines
Pipeline,PipelineExecution, orPipelineGraphTrainingStep,ProcessingStep,TransformStep, orTuningStepModelStep,ConditionStep,LambdaStep,CallbackStep, orFailStepQualityCheckStep,ClarifyCheckStep, orMonitorBatchTransformStepAutoMLStep,EMRStep,NotebookJobStep, orEMRServerlessStepPipelineSchedule, triggers, selective execution, retries, or cache config- model registry, approval workflow, baseline registration, or pipeline gating
- feature store orchestration,
FeatureGroupManager, orDatasetBuilder - lineage, governance,
sagemaker.core.lineage, or Lake Formation / Iceberg
Read this when
- You need to compose a production ML workflow that spans preprocessing, training, transform, registry, checks, or triggers.
- You need pipeline DAGs, retries, caching, selective execution, or execution inspection.
- You need feature-store orchestration, registry wiring, or governance hooks.
- You need lineage and compliance tracking around a workflow.
Do not read this when
- You only need low-level jobs or resources such as
ProcessingJob,TrainingJob,TransformJob,Endpoint, orFeatureGroupCRUD; use../core-resources/SKILL.md. - You need to build training
step_args; use../training/SKILL.md. - You need deployment or inference with
ModelBuilder; use../serving/SKILL.md. - You need foundation-model customization or evaluation workflows; use
../model-customization/SKILL.md.
Non-negotiable v3 guardrails
- Use
from sagemaker.mlops.workflow import ...or explicit workflow modules. - Do not introduce legacy
sagemaker.workflow.*imports unless you are writing a deprecated migration note and you also give the v3 replacement. - Keep examples self-contained and placeholder-only.
- If a workflow needs
PipelineSession, construct it fromsagemaker.core. EMRServerlessStepexists insagemaker.mlops.workflow.emr_serverless_stepbut is not re-exported fromsagemaker.mlops.workflow.__all__in this runtime build.- Set
AWS_DEFAULT_REGIONorAWS_REGIONbefore importing or constructing high-level workflow objects in a fresh environment.
Verified API surface
Use these verified imports and signatures from the inspection env as the source of truth:
Pipeline(name='', parameters=None, pipeline_experiment_config=..., mlflow_config=None, steps=None, sagemaker_session=None, pipeline_definition_config=...)PipelineExecution(arn, sagemaker_session=Session())PipelineGraph(steps)andPipelineGraph.from_pipeline(pipeline)TrainingStep(name, step_args=None, display_name=None, description=None, cache_config=None, depends_on=None, retry_policies=None)ProcessingStep(...),TransformStep(...), andTuningStep(...)ModelStep(name, step_args, depends_on=None, retry_policies=None, display_name=None, description=None, repack_model_step_settings=None)ConditionStep(name, depends_on=None, display_name=None, description=None, conditions=None, if_steps=None, else_steps=None)QualityCheckStep(...),ClarifyCheckStep(...),AutoMLStep(...),EMRStep(...),NotebookJobStep(...),CallbackStep(...),LambdaStep(...),FailStep(...)MonitorBatchTransformStep(...)CacheConfig(enable_caching=False, expire_after=None)RetryPolicy(...),StepRetryPolicy(...), andSageMakerJobStepRetryPolicy(...)ParallelismConfiguration(max_parallel_execution_steps)SelectiveExecutionConfig(selected_steps, reference_latest_execution=True, source_pipeline_execution_arn=None)PipelineExperimentConfig(experiment_name, trial_name)PipelineDefinitionConfig(use_custom_job_prefix)PipelineSchedule(name=None, enabled=True, start_date=None, at=None, rate=None, cron=None)Trigger(name=None, enabled=True)CheckJobConfig(role, instance_count=1, instance_type='ml.m5.xlarge', volume_size_in_gb=30, volume_kms_key=None, output_kms_key=None, max_runtime_in_seconds=None, base_job_name=None, sagemaker_session=None, env=None, tags=None, network_config=None)
Short workflow
- Classify the task: pipeline assembly or execution control, monitoring or governance, feature store or registry orchestration, or EMR / notebook / callback / Lambda routing.
- Identify the upstream step args. Do not build them here:
processor.run(...)from../core-resources/SKILL.mdmodel_trainer.train(...)from../training/SKILL.mdtransformer.transform(...)from../core-resources/SKILL.mdmodel_builder.build()/register()from../serving/SKILL.md
- Import only the workflow classes needed for the branch you are building.
- Create
PipelineSession, parameters, property files, retry policies, cache config, and selective-execution settings as required. - Wire step dependencies by using upstream
step_argsandproperties, especiallyProcessingStepproperty files plusJsonGetfor conditions. - Use
Pipeline.create(),update(),upsert(), andstart()in the correct order.PipelineExecutionis for inspection after start. - For feature store, choose
FeatureGroupManagerwhen Lake Formation or Iceberg governance is part of the task; otherwise prefer the coreFeatureGroupresource and helper functions. - For lineage, create
Context/Action/Artifact/Associationrecords withsagemaker.core.lineage, not the old shim. - Validate against local-mode limits before returning. If the workflow crosses into lower-level resources, training config construction, or deployment, hand off to the sibling sub-skill.
Reference map
references/pipeline-workflows.mdreferences/processing-feature-store-and-registry.mdreferences/lineage-monitoring-and-governance.mdreferences/troubleshooting.md
Handoff notes
- Keep this file router-like; put recipes, matrices, and failure recovery in the references.
- Do not link to the source checkout from runtime guidance.
- Use v3 replacements when the task mentions v2 pipeline, workflow, feature-store, or lineage APIs.
- Mention any unsupported local-mode or optional-dependency path explicitly.
- If a user asks for a direct
FeatureGroup,TrainingJob,TransformJob,Endpoint,ModelBuilder, orModelTrainerbuild path, route to the sibling sub-skill instead of expanding this one.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).