A library for maintaining metadata for artifacts.
Project description
ML Metadata
ML Metadata (MLMD) is a library for recording and retrieving metadata associated with ML developer and data scientist workflows.
NOTE: ML Metadata may be backwards incompatible before version 1.0.
Getting Started
For more background on MLMD and instructions on using it, see the getting started guide
Installing from PyPI
The recommended way to install ML Metadata is to use the PyPI package:
pip install ml-metadata
Then import the relevant packages:
from ml_metadata import metadata_store
from ml_metadata.proto import metadata_store_pb2
Nightly Packages
ML Metadata (MLMD) also hosts nightly packages at https://pypi-nightly.tensorflow.org on Google Cloud. To install the latest nightly package, please use the following command:
pip install -i https://pypi-nightly.tensorflow.org/simple ml-metadata
Installing with Docker
This is the recommended way to build ML Metadata under Linux, and is continuously tested at Google.
Please first install docker
and docker-compose
by following the directions:
docker;
docker-compose.
Then, run the following at the project root:
DOCKER_SERVICE=manylinux-python${PY_VERSION}
sudo docker-compose build ${DOCKER_SERVICE}
sudo docker-compose run ${DOCKER_SERVICE}
where PY_VERSION
is one of {36, 37, 38}
.
A wheel will be produced under dist/
, and installed as follows:
pip install dist/*.whl
Installing from source
1. Prerequisites
To compile and use ML Metadata, you need to set up some prerequisites.
Install Bazel
If Bazel is not installed on your system, install it now by following these directions.
Install cmake
If cmake is not installed on your system, install it now by following these directions.
2. Clone ML Metadata repository
git clone https://github.com/google/ml-metadata
cd ml-metadata
Note that these instructions will install the latest master branch of ML
Metadata. If you want to install a specific branch (such as a release branch),
pass -b <branchname>
to the git clone
command.
3. Build the pip package
ML Metadata uses Bazel to build the pip package from source:
python setup.py bdist_wheel
You can find the generated .whl
file in the dist
subdirectory.
4. Install the pip package
pip install dist/*.whl
5.(Optional) Build the grpc server
ML Metadata uses Bazel to build the c++ binary from source:
bazel build -c opt --define grpc_no_ares=true //ml_metadata/metadata_store:metadata_store_server
Supported platforms
MLMD is built and tested on the following 64-bit operating systems:
- macOS 10.14.6 (Mojave) or later.
- Ubuntu 16.04 or later.
- Windows 7 or later.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for ml_metadata-1.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f69398d764ff570df30c294620581a3afeb2ed906cb7980442e4d1c6f6d3fc33 |
|
MD5 | 3b3a260e0012e19472794a95e6c1f6aa |
|
BLAKE2b-256 | 4df3d4d357d8126c9d38d851ade5a59c150bbcd6006774d91aa5aeb9e861ac5c |
Hashes for ml_metadata-1.1.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9518061cbce7fa69c7c0583e717882b16567d4ec2803059d4de8de80d1d5189 |
|
MD5 | 7c0f2b6f16a08a3dfb747b6fe37acfbb |
|
BLAKE2b-256 | 54c39a707cb29df6a72b9f48688c846eda97ea42613ebf91bc5bb183d1350c10 |
Hashes for ml_metadata-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a37044991defd0b72d582a01721d1cb1228864478101af0ee57c9600187e197 |
|
MD5 | 0ea3a4b9f21aea06c5ea2b19539e6db9 |
|
BLAKE2b-256 | f09d2981ed190098fb020bf06e224327b17b5985c3f65ed2a2283016dbedc200 |
Hashes for ml_metadata-1.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1141f58ce253ca8988e572e1cb25252e24a81775ea786bdb3648af9f117ef4f6 |
|
MD5 | afdba6f248691d3aaa3d0bb4ae93508f |
|
BLAKE2b-256 | d0544de20f561f0e7a7371f650d4bc1f343df163fbc430ac45e80e89fe4ef95f |
Hashes for ml_metadata-1.1.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c1c0372c14d5bc6ee9e390160c02c4debe736fb3595f1473c4aeb1555f6e01 |
|
MD5 | 64b92e3828aca0ae4cffb6e350d3dd2a |
|
BLAKE2b-256 | 1ee503181498dfe63d4b315e13faa21fed1161113783ebdf005b4470da578ba8 |
Hashes for ml_metadata-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c5d445989f83e9db139a81125243d89f03fd6a2a2334d71cce8283c9ad117a |
|
MD5 | 51c5d6023790c82786d128eb8343d694 |
|
BLAKE2b-256 | da0cb8f7cbe2d44e6c54eb2cc1f0272dd60a4004518dfe7c0e9591a0871132b3 |
Hashes for ml_metadata-1.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7145d15c7856cbeb50858e3c92071b9c389c41c7aaadfc76e22f5a0976f82b |
|
MD5 | dd6e16089a83534ecae927cb8162392a |
|
BLAKE2b-256 | bcda55677f153260ee6bc9ac52d22658250225e0c50f939ddc83509f6c06dfa5 |
Hashes for ml_metadata-1.1.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbe2296b731f01c706c734386f36af4afd5f2c27f5651e69878e6a7568d5a9e4 |
|
MD5 | 7a5ec270a95a81b88361a8bff7f948de |
|
BLAKE2b-256 | 3969b6e1ecd6d2fd2c71a02b9c8e97abb16284b9ae1ddc74e92a9a60c7f86389 |
Hashes for ml_metadata-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aad87ca919ce4b1eccbc3df67075bceab0371fbc73c948c258ebc48fe884f28e |
|
MD5 | 3d445cbaf8c3e69f52bd6c159769aa70 |
|
BLAKE2b-256 | c0d4277c7cb9edb3d748cdec6e29471697921e16aa36d2fbf8db1413d4c7552e |