Skip to content

[RMP] Establish a metadata standard for serializing information about Merlin components #489

@nv-alaiacano

Description

@nv-alaiacano

Problem:

In Systems, we need to know information about the various ops that go into an Ensemble. The primary one is the input/output schemas for the data and models that make up the ensemble.

We are able to infer some of this from eg the Tensorflow model, but are not able to do so from more flexible frameworks like pytorch or xgboost.

Saving an NVTabular workflow produces a small amount of info in metadata.json, and I propose we expand that concept to record any expected metadata about models, nvt workflows, and other components that we expect to load in a Systems ensemble.

Goal:

  • Systems can load any model produced by Models and know the input/output schema information and any additional critical metadata TBD.
  • Systems can load any workflow produced by NVTabular and know the input/output schema information and any additional critical metadata TBD.

Constraints:

  • This information should be serialized to disk along with the artifact (model, workflow). We should not rely on any kind of service for keeping track of this information. (yet??)
  • The metadata format should be consistent with some standard fields (library versions, input_schema, output_schema)
  • Input/output schemas should ser/deser into the Schema python class
  • It should also be extensible in order to provide optional information about the artifact.

Starting Point:

Core repo:

  • Define a metadata format and schema that will be shared among all of the Merlin libraries (live in core).

Models repo:

  • Override the Model.save method in Models to include a metadata file including the required fields.

Systems repo:

  • Begin using the

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions