metadata icon indicating copy to clipboard operation
metadata copied to clipboard

[Question] How to store arbitrary values in MLMD?

Open gabrielwen opened this issue 6 years ago • 3 comments

Users need to pass configurations between training and serving, e.g. feature set used for training should also be used for serving. How do we do it? Should we use values or is there a place for us to store free form JSON?

gabrielwen avatar Oct 07 '19 17:10 gabrielwen

The type system of underlying MLMD server is extensible. You can

  1. register the custom type for the configurations via POST /api/v1alpha1/artifact_types
  2. Read and write the config as an artifact: Read GET /api/v1alpha1/artifact_types/{name}/artifacts/{id} Write POST /api/v1alpha1/artifact_types/{parent}/artifacts

The values is for metrics only not for any custom data.

zhenghuiwang avatar Oct 07 '19 22:10 zhenghuiwang

/kind feature /priority p2

jtfogarty avatar Jan 08 '20 16:01 jtfogarty

/area engprod

jtfogarty avatar Jan 14 '20 21:01 jtfogarty