In this notebook, we will download a model, dataset, and metric from Hugigng Face Hub and generate a interactive HTML Model Card using Intel AI Safety Model Card Generator Tool.
hugging-face-model-card
performs the following steps:
- Download and Import Dependencies
- Download Dataset from Hugging Face Datasets
- Transform Dataset
- Get ground truth label
- Download Modle and Process Outputs
- Get Bias Metric form Hugging Face
- Run Bias Metric
- Transform Output for Model Card
- Build Model Card
To run the toxicity-tfma-model-card.ipynb
, install the following dependencies:
- Intel® Explainable AI
!pip install evaluate datasets transformers[torch] scikit-learn
@article{aluru2020deep,
title={Deep Learning Models for Multilingual Hate Speech Detection},
author={Aluru, Sai Saket and Mathew, Binny and Saha, Punyajoy and Mukherjee, Animesh},
journal={arXiv preprint arXiv:2004.06465},
year={2020}
}