Need help with model-card-toolkit?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

221 Stars 35 Forks Apache License 2.0 147 Commits 14 Opened issues


a tool that leverages rich metadata and lineage information in MLMD to build a model card

Services available


Need anything else?

Contributors list

Model Card Toolkit

The Model Card Toolkit (MCT) streamlines and automates generation of Model Cards [1], machine learning documents that provide context and transparency into a model's development and performance. Integrating the MCT into your ML pipeline enables the sharing model metadata and metrics with researchers, developers, reporters, and more.

Some use cases of model cards include:

  • Facilitating the exchange of information between model builders and product developers.
  • Informing users of ML models to make better-informed decisions about how to use them (or how not to use them).
  • Providing model information required for effective public oversight and accountability.

Generated model card image


The Model Card Toolkit is hosted on PyPI, and can be installed with

pip install model-card-toolkit
pip install model-card-toolkit
for versions of pip starting with 20.3). See the installation guide for more details.

Getting Started

import model_card_toolkit

Initialize the Model Card Toolkit with a path to store generate assets

model_card_output_path = ... mct = model_card_toolkit.ModelCardToolkit(model_card_output_path)

Initialize the model_card_toolkit.ModelCard, which can be freely populated

model_card = mct.scaffold_assets() = 'My Model'

Write the model card data to a JSON file


Return the model card document as an HTML page

html = mct.export_format()

Automatic Model Card Generation

If your machine learning pipeline uses the TensorFlow Extended (TFX) platform or ML Metadata, you can automate model card generation. See this demo notebook for a demonstration of how to integrate the MCT into your pipeline.


Model cards are stored in JSON as an intermediate format. You can see the model card JSON schema in the

directory. Note that this is not a finalized path and may be hosted elsewhere in the future.



We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.