ระยะ: Staging, Production, Archived
เลื่อนโมเดลผ่านระยะต่าง ๆ ของวงจรชีวิตอย่างปลอดภัย
ระยะ: Staging, Production, Archived เป็นบทเรียน MLOps Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 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” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส MLOps Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส MLOps Academy มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “ระยะ: Staging, Production, Archived”
เลื่อนโมเดลผ่านระยะต่าง ๆ ของวงจรชีวิตอย่างปลอดภัย คุณปฏิบัติ MLOps Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน MLOps Academy หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน MLOps Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน
บทเรียน “ระยะ: Staging, Production, Archived” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน MLOps Academy นี้ได้ไหม
ได้ บทเรียน MLOps Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- ลงทะเบียนโมเดลเวอร์ชันแรกของคุณ
- ระยะ: Staging, Production, Archived
- เพิ่มแท็กและคำอธิบายให้โมเดล
- โหลดโมเดลกลับมาตามชื่อและระยะ