0Pricing
MLOps Academy · 课时

阶段:暂存、生产、归档

安全地推动模型经过各个生命周期阶段

阶段:暂存、生产、归档 是 CoddyKit 上的免费 MLOps Academy 课时。 这是第 2 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 MLOps Academy 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 MLOps Academy 课程共包含 4 节课。

本课时的部分内容尚未翻译,以英文显示。

Why Stages Exist

A version number alone does not say which model is live. Stages add a label that tells everyone where each version sits in its lifecycle. 🚦

The Stage Names

MLflow gives each version one of four stages: None, Staging, Production, or Archived. A fresh version starts at None until you move it.

Staging Means Testing

Staging is your dress rehearsal. A model here is being validated and shadow-tested, but real users are not relying on it yet.

Production Is Live

Production marks the version actually serving users. Your inference code loads this stage, so promoting here changes what people really get.

Archived Means Retired

Archived keeps an old version around without serving it. You preserve history for audits while clearly signaling it should not be used.

Promote a Version

Use the client to transition a version into a stage. One call moves version 3 of your model into Staging.

c.transition_model_version_stage(
    "churn-classifier", 3, "Staging")

Auto-Archive the Old One

When you promote to Production, pass archive_existing_versions so the previous live version is retired in the same move, with no gap.

c.transition_model_version_stage(
    "churn-classifier", 4, "Production",
    archive_existing_versions=True)

One Live Per Stage

Keep exactly one version in Production at a time. That way loading by stage is unambiguous and nobody guesses which model is serving.

Aliases Are the New Way

Newer MLflow favors aliases like champion over fixed stages. An alias is a movable nickname you point at any version you choose.

c.set_registered_model_alias(
    "churn-classifier", "champion", 4)

Promotion Is Reversible

If a promoted model misbehaves, you just transition the previous version back to Production. Rollback is a label change, not a redeploy.

Gate the Move

Treat each transition as a gate. Require passing tests or approval before a version is allowed to reach Staging or Production.

Quick Check

Pick the stage your serving code should load.

Recap

Stages turn a pile of versions into a clear lifecycle: None to Staging to Production to Archived. Promotion and rollback are now just safe label changes. ✅

常见问题解答

「阶段:暂存、生产、归档」课时是免费的吗?

是的 — 「阶段:暂存、生产、归档」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 MLOps Academy 课程的其余内容,请升级到 CoddyKit PRO。 MLOps Academy 课程共包含 4 节课。

「阶段:暂存、生产、归档」这节课中我会学到什么?

安全地推动模型经过各个生命周期阶段 你通过在浏览器中直接运行的动手代码来练习 MLOps Academy,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 MLOps Academy 需要有经验吗?

无需任何先前经验。CoddyKit 上的 MLOps Academy 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 2 节课,共 4 节。

「阶段:暂存、生产、归档」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 MLOps Academy 课中编写并运行代码吗?

能。每节 MLOps Academy 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. 注册您的第一个模型版本
  2. 阶段:暂存、生产、归档
  3. 为模型添加标签和描述
  4. 按名称和阶段重新加载模型
← 返回 MLOps Academy