需先安装 mise,它再驱动 uv 安装 Python 依赖;本地文档服务默认占用 8000 端口;首次运行实验会自动安装各自锁定的依赖,耗时较长
mlops-coding-course
fmindCC-BY-4.0活跃维护一套教你从零搭建、开发和维护现代 MLOps 代码库的实战课程,覆盖工程规范与最佳实践,适合想系统入门 MLOps 的数据科学和机器学习开发者。
Learn how to create, develop, and maintain a state-of-the-art MLOps code base
git clone <repo> && cd mlops-coding-course
mise trust
mise install
mise run install
mise run serveREADME 未说明,课程实验使用小型合成数据,无需 GPU 或云账号
一门用 Python 手把手教你搭建并维护 MLOps 代码库的开源课程
一套教你从零搭建、开发和维护现代 MLOps 代码库的实战课程,覆盖工程规范与最佳实践,适合想系统入门 MLOps 的数据科学和机器学习开发者。
核心能力
- 按初始化到可观测性七个章节递进学习
- 每章配可运行检查点与解读问题
- 用 uv、Ruff、pytest、MLflow 等主流工具实操
- 通过 mise 统一管理依赖、钩子与 CI 任务
- 提供两个无需下载数据即可跑通的本地实验
容易踩的坑
- 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.
- 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)
- 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)
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
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:
- MLOps Python Package (Example): Kickstart your MLOps initiative with a flexible, robust, and productive Python package.
- LLMOps Coding Package (Example): Example with best practices and tools to support your LLMOps projects.
- Cookiecutter MLOps Package (Template): Start building and deploying Python packages and Docker images for MLOps tasks.
- NEW: Agent Skills: Enhance your learning with the MLOps Coding Skills repository. These "skills" are specialized instruction sets that you can add to your AI coding assistant to help it understand and execute the MLOps tasks in this course more effectively.
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.
- Book a one-on-one mentoring session to receive tailored guidance and support on the course.
- Contact the course creators to request a personalized quote for group and organization training.
Course Content
- Initializing: Set up your development environment, manage Python versions, and handle external dependencies.
- Prototyping: Use Jupyter notebooks for ML prototyping, explore dataset manipulation, and perform initial model assessments.
- Productionizing: Transition from notebooks to clean Python packages, learn about modular coding, and understand different programming paradigms.
- Validating: Focus on code quality with typing, linting, testing, and debugging to ensure your ML projects are robust and maintainable.
- Refining: Dive into advanced MLOps techniques including CI/CD workflows, software containers, and model registries to streamline your operations.
- Sharing: Learn how to effectively organize and document your MLOps projects to ensure they are accessible and collaborative.
- 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:
-
Clone the repository.
-
In the cloned repository directory, install dependencies and git hooks with mise (which drives uv):
mise trust mise install mise run install -
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.
| Command | Purpose |
|---|---|
mise run install | Sync Python dependencies (uv) and install the git hooks (lefthook). |
mise run format | Format JSON, Markdown, TOML, and YAML with dprint. |
mise run check | Run every static check: workflows, strict site build, formatting, secrets, scanning, and vulnerabilities. |
mise run test | Execute the two maintained local labs with locked dependencies. |
mise run build | Build the static site into site/. |
mise run serve | Serve the documentation locally with live reload. |
mise run all | The 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.