0Pricing
MLOps Academy · درس

المراحل: Staging وProduction وArchived

انقل النماذج بأمان بين مراحل دورة الحياة.

المراحل: Staging وProduction وArchived درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في 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. ✅

الأسئلة الشائعة

هل درس «المراحل: Staging وProduction وArchived» مجاني؟

نعم — نص درس «المراحل: Staging وProduction وArchived» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MLOps Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MLOps Academy 4 دروس في المجموع.

ماذا ستتعلم في «المراحل: Staging وProduction وArchived»؟

انقل النماذج بأمان بين مراحل دورة الحياة. تتمرن على MLOps Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ MLOps Academy؟

لا تُشترط خبرة سابقة. MLOps Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «المراحل: Staging وProduction وArchived»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس MLOps Academy هذا؟

نعم. كل درس في MLOps Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. تسجيل إصدار النموذج الأول
  2. المراحل: Staging وProduction وArchived
  3. إضافة الوسوم والأوصاف إلى النماذج
  4. تحميل نموذج بالاسم والمرحلة
← العودة إلى MLOps Academy