Etapy: Staging, Production, Archived
Bezpiecznie przenoś modele między etapami cyklu życia
Etapy: Staging, Production, Archived to bezpłatna lekcja MLOps Academy na CoddyKit. To lekcja 2 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej MLOps Academy, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs MLOps Academy zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
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. ✅
Często zadawane pytania
Czy lekcja „Etapy: Staging, Production, Archived” jest bezpłatna?
Tak — pełny tekst „Etapy: Staging, Production, Archived” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu MLOps Academy, przejdź na CoddyKit PRO. Kurs MLOps Academy zawiera 4 lekcji w sumie.
Co nauczysz się w „Etapy: Staging, Production, Archived”?
Bezpiecznie przenoś modele między etapami cyklu życia Ćwiczysz MLOps Academy z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć MLOps Academy?
Nie wymagamy żadnego doświadczenia. MLOps Academy w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 2 z 4.
Ile czasu zajmuje lekcja „Etapy: Staging, Production, Archived”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji MLOps Academy?
Tak. Każda lekcja MLOps Academy zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Rejestrowanie pierwszej wersji modelu
- Etapy: Staging, Production, Archived
- Dodawanie tagów i opisów do modeli
- Wczytywanie modelu po nazwie i etapie