Skip to main content

Registering Models at Covariant!

Instructions and Conventions for Getting Your Models to Production!
Created on August 30|Last edited on August 30



Team Priorities

  • 

Summary of Models at Covariant

The Covariant team is currently working on three primary projects:
  • Object Detection
    • PM: Carey
    • MLE: Vish
  • Depth Estimation
    • PM: Tim
    • MLE: Ken
  • Image Super-resolution
    • PM: Gourab
    • MLE: Ken

Steps to Log and Register Your Models

1. Create a Registered Model

Go the Model Registry and click "Create Registered Model". Registered Models will house pointers to your model artifact versions which you log in your projects. Think of this as a bookmark folder for the best or most interesting model versions.




2. Log Model Checkpoints as Artifacts to W&B

At Singco we use Pytorch Lightning. Logging model artifacts is really easy with the W&B integration. See this code snippet below along with some reference links:
import wandb
from pytorch_lightning.callbacks import ModelCheckpoint
from pytorch_lightning.loggers import WandbLogger
from pytorch_lightning import Trainer
from pytorch_lightning import LightningModule



wandb_logger = WandbLogger(project='MNIST', # group runs in "MNIST" project
log_model='all') # log all new checkpoints during training

checkpoint_callback = ModelCheckpoint(monitor='val_accuracy', mode='max')

trainer = Trainer(
logger=wandb_logger, # W&B integration
callbacks=[log_predictions_callback, # logging of sample predictions
checkpoint_callback], # our model checkpoint callback
max_epochs=5) # number of epochs

trainer.fit(model, training_loader, validation_loader). # model is a lightning module

After training a model, you can see all the artifact checkpoints logged under the artifacts tab of your project

Alias Conventions at Covariant

  • staging should be assigned to your best model checkpoint after training
  • production should be assigned...

4. Model Card Documentation Requirements

5. Retrieving Models from the Model Registry



6. What happens to my model after I register it?