Skip to main content

Module staging

Module staging 

Source
Expand description

Model Staging Workflows (GH-70)

Provides a lightweight model staging registry for managing model versions through lifecycle stages: Dev -> Staging -> Production.

Transition rules enforce no skipping: a model must progress through each stage sequentially, and demotion follows the reverse path.

§Example

use entrenar::staging::{Stage, StagingRegistry};

let mut registry = StagingRegistry::new();
let mv = registry.register_model("llama-7b", "1.0.0", "/models/llama-7b-v1");
assert_eq!(mv.stage, Stage::Dev);

registry.promote("llama-7b", "1.0.0", Stage::Staging).expect("promote to staging");
registry.promote("llama-7b", "1.0.0", Stage::Production).expect("promote to production");

Structs§

ModelVersion
Metadata for a registered model version.
StagingRegistry
Registry managing model versions and their lifecycle stages.

Enums§

Stage
Model lifecycle stage.
StagingError
Errors from staging operations.

Type Aliases§

Result
Result type for staging operations.