Access production-ready models from model registry#
Model registry is deprecated
The model registry feature is deprecated. This includes:
- The Models section in the web app.
- The
Model
andModelVersion
objects of the API.
The feature will be deactivated on 2025-04-01.
For examples of model lifecycle management using experiments, see:
- How-to: Log model metadata
- Tutorial: Tracking models end-to-end
For how to migrate your models, see Migrate from model registry to experiments.
The following examples illustrate how to download production-stage model files.
This example assumes the following:
- There exists a model with the ID
CLS-PRE
, which has at least one version with the stage set to"production"
. - There are model binaries stored in the
"model/binary"
field of the model version.
To access and download model files based on their stage:
-
Initialize a registered model and fetch its versions:
model = neptune.init_model( with_id="CLS-PRE", # (1)! ) model_versions_df = model.fetch_model_versions_table().to_pandas()
- The Neptune ID of the model
-
Filter the pandas DataFrame for model versions with the stage set to "production":
-
Initialize each model version and download the files from the
model/binary
field: