ml-pipeline-workflow

软件研发 工程流程 · 其它 1 文件 EN 原文

端到端 MLOps 流水线

Build end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment. Use when creating ML pipelines, implementing MLOps practices, or automating model training and deployment workflows.

说明语言:英文

来源wshobsonagents ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/wshobson/agents --skill ml-pipeline-workflow

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: ml-pipeline-workflow description: Build end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment. Use when creating ML pipelines, implementing MLOps practices, or automating model training and deployment workflows. ---

ML Pipeline Workflow

Complete end-to-end MLOps pipeline orchestration from data preparation through model deployment.

Overview

This skill provides comprehensive guidance for building production ML pipelines that handle the full lifecycle: data ingestion → preparation → training → validation → deployment → monitoring.

When to Use This Skill

What This Skill Provides

Core Capabilities

  1. Pipeline Architecture
  2. End-to-end workflow design
  3. DAG orchestration patterns (Airflow, Dagster, Kubeflow)
  4. Component dependencies and data flow
  5. Error handling and retry strategies
  1. Data Preparation
  2. Data validation and quality checks
  3. Feature engineering pipelines
  4. Data versioning and lineage
  5. Train/validation/test splitting strategies
  1. Model Training
  2. Training job orchestration
  3. Hyperparameter management
  4. Experiment tracking integration
  5. Distributed training patterns
  1. Model Validation
  2. Validation frameworks and metrics
  3. A/B testing infrastructure
  4. Performance regression detection
  5. Model comparison workflows
  1. Deployment Automation
  2. Model serving patterns
  3. Canary deployments
  4. Blue-green deployment strategies
  5. Rollback mechanisms

Reference Documentation

See the references/ directory for detailed guides:

Assets and Templates

The assets/ directory contains:

Usage Patterns

Basic Pipeline Setup

# 1. Define pipeline stages
stages = [
    "data_ingestion",
    "data_validation",
    "feature_engineering",
    "model_training",
    "model_validation",
    "model_deployment"
]

# 2. Configure dependencies
# See assets/pipeline-dag.yaml.template for full example

Production Workflow

  1. Data Preparation Phase
  2. Ingest raw data from sources
  3. Run data quality checks
  4. Apply feature transformations
  5. Version processed datasets
  1. Training Phase
  2. Load versioned training data
  3. Execute training jobs
  4. Track experiments and metrics
  5. Save trained models
  1. Validation Phase
  2. Run validation test suite
  3. Compare against baseline
  4. Generate performance reports
  5. Approve for deployment
  1. Deployment Phase
  2. Package model artifacts
  3. Deploy to serving infrastructure
  4. Configure monitoring
  5. Validate production traffic

Best Practices

Pipeline Design

Data Management

Model Operations

Deployment Strategies

Integration Points

Orchestration Tools

Experiment Tracking

Deployment Platforms

Progressive Disclosure

Start with the basics and gradually add complexity:

  1. Level 1: Simple linear pipeline (data → train → deploy)
  2. Level 2: Add validation and monitoring stages
  3. Level 3: Implement hyperparameter tuning
  4. Level 4: Add A/B testing and gradual rollouts
  5. Level 5: Multi-model pipelines with ensemble strategies

Common Patterns

Batch Training Pipeline

# See assets/pipeline-dag.yaml.template
stages:
  - name: data_preparation
    dependencies: []
  - name: model_training
    dependencies: [data_preparation]
  - name: model_evaluation
    dependencies: [model_training]
  - name: model_deployment
    dependencies: [model_evaluation]

Real-time Feature Pipeline

# Stream processing for real-time features
# Combined with batch training
# See references/data-preparation.md

Continuous Training

# Automated retraining on schedule
# Triggered by data drift detection
# See references/model-training.md

Troubleshooting

Common Issues

Debugging Steps

  1. Check pipeline logs for each stage
  2. Validate input/output data at boundaries
  3. Test components in isolation
  4. Review experiment tracking metrics
  5. Inspect model artifacts and metadata

Next Steps

After setting up your pipeline:

  1. Explore hyperparameter-tuning skill for optimization
  2. Learn experiment-tracking-setup for MLflow/W&B
  3. Review model-deployment-patterns for serving strategies
  4. Implement monitoring with observability tools

Related Skills

同类技能
ai-research-exploreai-research-reproductionairflow-dag-patternsanalyze-projectangular-migrationanti-reversing-techniquesapi-design-principlesarchitecture-patterns
本页内容来自开源项目 wshobson, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。