Skip to content

Latest commit

 

History

History
 
 

ml-metadata

Machine Learning Metadata

Upstream repo location: https://github.com/google/ml-metadata.

Upgrade MLMD versions

First change the MLMD version in VERSION file in current folder, for example: $VERSION=1.2.0.

echo -n "$VERSION" > VERSION

Run the update_version.sh script in current folder to update related image references:

./update_version.sh

Run update_dependencies.sh in the following way:

../../hack/update-all-requirements.sh

Make sure the generated files are as expected. Update clients as described below:

Build golang gRPC client from proto

Prerequisites

Make sure you have installed tools and packages in grpc golang prerequisites.

NOTE: The versions for tools are important, following is a record for when the version combination works successfully.

apt install -y protobuf-compiler=3.15.8
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1

Command

make

Adopt new golang client in backend

After submitting the changes from above command, find all the modules with github.com/kubeflow/pipelines/third_party/ml-metadata in all go.mod files. Update them by the following steps:

  1. Navigate to the folder which contains the go.mod that you want to update.
  2. Run go get github.com/kubeflow/pipelines/third_party/ml-metadata@latest.
  3. go mod tidy

To learn more, refer to Upgrading or downgrading a dependency.

Build JS client from proto

Refer to frontend/README.md for MLMD components - Building generated metadata Protocol Bufers, for example: you can search for npm run build:replace command.