mlops-coding-course

fmindCC-BY-4.0活跃维护

一套教你从零搭建、开发和维护现代 MLOps 代码库的实战课程,覆盖工程规范与最佳实践,适合想系统入门 MLOps 的数据科学和机器学习开发者。

Learn how to create, develop, and maintain a state-of-the-art MLOps code base

v7.1.0发布于 2026-10-12 18:53 UTC746star +1 / 7 天132fork同步于 2026-11-10 05:59 UTC

怎么上手

由 README 提炼,执行前请确认
git clone <repo> && cd mlops-coding-course
mise trust
mise install
mise run install
mise run serve
硬件要求按 README 说明

README 未说明,课程实验使用小型合成数据,无需 GPU 或云账号

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

一门用 Python 手把手教你搭建并维护 MLOps 代码库的开源课程

一套教你从零搭建、开发和维护现代 MLOps 代码库的实战课程,覆盖工程规范与最佳实践,适合想系统入门 MLOps 的数据科学和机器学习开发者。

核心能力

  • 按初始化到可观测性七个章节递进学习
  • 每章配可运行检查点与解读问题
  • 用 uv、Ruff、pytest、MLflow 等主流工具实操
  • 通过 mise 统一管理依赖、钩子与 CI 任务
  • 提供两个无需下载数据即可跑通的本地实验

容易踩的坑

需先安装 mise,它再驱动 uv 安装 Python 依赖;本地文档服务默认占用 8000 端口;首次运行实验会自动安装各自锁定的依赖,耗时较长

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

3 个版本v7.1.0
  1. v7.1.0最新正式版2026-10-12 · 2026-10-12 18:53 UTC

    [7.1.0] - 2026-10-12

    • Migrate the site to Zensical while preserving published routes, heading anchors and course branding.
    • Add locked executable labs for strict configuration and chronological model evaluation, displayed directly from tested source.
    • Update the course for the current Python/MLflow stack and add reader checkpoints and exercises.
    • Run labs, security and documentation checks before deploying the site.
  2. v7.0.02026-08-10 · 2026-08-10 17:19 UTC
    查看更新说明

    [7.0.0] - 2026-08-10

    🚀 Features

    • Run the canonical gate and practice the security it teaches (#40)

    📚 Documentation

    • Teach the stack the repositories actually run, and add AGENTS.md (#41)
  3. v6.0.02026-07-07 · 2026-07-07 16:58 UTC
    查看更新说明

    [6.0.0] - 2026-07-07

    🚀 Features

    • Add Agent Skills.
    • [breaking] Migrate to canonical stack (mise, lefthook, ty, dprint, git-cliff, Actions Pages), Python 3.14, MLflow 3

    📚 Documentation

    • Update chapter names to reflect productionizing phase
    • Fix typo in Open Source Tools section (#38)

    🧹 Miscellaneous

    • Remove unused code and folders

    📦 Other

    • 3.2. Paradigms.md had 3.3 label (#2)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    MLOps Coding Course

    Welcome to the MLOps Coding Course!

    This course is designed to dive deep into the intersection of software development and data science, focusing on the practical applications of machine learning (ML) and artificial intelligence (AI) projects using Python.

    Whether you are a beginner eager to explore or an experienced professional seeking to enhance your skill set, this course offers valuable insights and hands-on experience.

    Related Resources:

    Key Features

    • Hands-on Python Coding: Learn to code with Python in a way that's directly applicable to real-world AI projects.
    • Project-Driven Learning: Each chapter ends with an observable checkpoint and an interpretation question to help you apply what you've learned.
    • MLOps Techniques: Gain insights into effective MLOps coding strategies that streamline the development and deployment of AI/ML models.
    • Open Source Tools: Familiarize yourself with industry-standard tools like uv, Ruff, ty, pytest, MLflow, mise, lefthook, GitHub, and VS Code.
    • Mentoring sessions: Boost your learning experience with personalized feedback and expert insights from the course authors.

    Course Content

    1. Initializing: Set up your development environment, manage Python versions, and handle external dependencies.
    2. Prototyping: Use Jupyter notebooks for ML prototyping, explore dataset manipulation, and perform initial model assessments.
    3. Productionizing: Transition from notebooks to clean Python packages, learn about modular coding, and understand different programming paradigms.
    4. Validating: Focus on code quality with typing, linting, testing, and debugging to ensure your ML projects are robust and maintainable.
    5. Refining: Dive into advanced MLOps techniques including CI/CD workflows, software containers, and model registries to streamline your operations.
    6. Sharing: Learn how to effectively organize and document your MLOps projects to ensure they are accessible and collaborative.
    7. Observability: Gain comprehensive insights into the behavior and performance of your deployed models and infrastructure.

    Installation

    To start contributing, you will need to set up your development environment:

    1. Clone the repository.

    2. In the cloned repository directory, install dependencies and git hooks with mise (which drives uv):

      mise trust
      mise install
      mise run install
      
    3. Serve the documentation locally (from that directory) to see course material in your browser:

      mise run serve
      

    The site uses Zensical with its classic theme, retaining the course branding and published .html URLs. You can then access the course at this URL from your computer: http://localhost:8000/

    Development

    Every task goes through mise; run mise tasks for the full list.

    CommandPurpose
    mise run installSync Python dependencies (uv) and install the git hooks (lefthook).
    mise run formatFormat JSON, Markdown, TOML, and YAML with dprint.
    mise run checkRun every static check: workflows, strict site build, formatting, secrets, scanning, and vulnerabilities.
    mise run testExecute the two maintained local labs with locked dependencies.
    mise run buildBuild the static site into site/.
    mise run serveServe the documentation locally with live reload.
    mise run allThe canonical gate — format, check, test, build — exactly what CI runs.

    Runnable labs

    From this repository, run mise run test to check strict configuration validation and chronological model selection on small synthetic data. The lessons include the same executable source under examples/; first-time runs install their locked dependencies. No dataset download or cloud account is needed.

    Contributions

    This course is open source under the CC-BY 4.0 license, and we welcome contributions! Whether it's improving the documentation, adding new examples, or fixing bugs, your input is valuable. Check out the docs among other project files to see where you can contribute.

    Feel free to submit pull requests or open issues to discuss potential changes or additions to the course content.

    Join us in advancing the field of MLOps by sharing your expertise and learning from others!

    Donations

    If you find this course helpful and would like to support its creators, you can make a donation via Stripe.