This notebook demonstrates fine tuning using various BERT models from TF Hub using Intel® Optimization for TensorFlow with the SQuAD dataset.
The notebook performs the following steps:
- Import dependencies and setup parameters
- Prepare the dataset
- Fine tuning and evaluation
- Export the saved model
To run the notebook, follow the instructions to setup the TensorFlow notebook environment.
Dataset citations:
@article{2016arXiv160605250R,
author = { {Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev},
Konstantin and {Liang}, Percy},
title = "{SQuAD: 100,000+ Questions for Machine Comprehension of Text}",
journal = {arXiv e-prints},
year = 2016,
eid = {arXiv:1606.05250},
pages = {arXiv:1606.05250},
archivePrefix = {arXiv},
eprint = {1606.05250},
}
TensorFlow Model Garden citation:
@misc{tensorflowmodelgarden2020,
author = {Hongkun Yu and Chen Chen and Xianzhi Du and Yeqing Li and
Abdullah Rashwan and Le Hou and Pengchong Jin and Fan Yang and
Frederick Liu and Jaeyoun Kim and Jing Li},
title = {{TensorFlow Model Garden}},
howpublished = {\url{https://github.com/tensorflow/models}},
year = {2020}
}