Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sayakpaul/bert-for-mobile
Compares the DistilBERT and MobileBERT architectures for mobile deployments.
https://github.com/sayakpaul/bert-for-mobile
bert distilbert mobile mobile-bert nlp tensorflow-lite
Last synced: 24 days ago
JSON representation
Compares the DistilBERT and MobileBERT architectures for mobile deployments.
- Host: GitHub
- URL: https://github.com/sayakpaul/bert-for-mobile
- Owner: sayakpaul
- Created: 2020-09-27T01:40:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T03:48:24.000Z (about 4 years ago)
- Last Synced: 2024-10-04T13:18:23.798Z (about 1 month ago)
- Topics: bert, distilbert, mobile, mobile-bert, nlp, tensorflow-lite
- Language: Jupyter Notebook
- Homepage:
- Size: 414 KB
- Stars: 33
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BERT-for-Mobile
Compares the [DistilBERT](https://arxiv.org/abs/1910.01108) and [MobileBERT](https://arxiv.org/abs/2004.02984) architectures for mobile deployments. It is a part of the [End-To-End TFLite Tutorials](https://github.com/ml-gde/e2e-tflite-tutorials) project. Here's blog post (TODO: link) that presents this comparison in a comprehensive manner.The notebooks included in this repository show how to use the DistilBERT model with the **SST-2 dataset** for text classification. The notebooks also include the code for TensorFlow Lite model conversion and evaluation. In the future, I also plan to cover question-answering with DistilBERT.
**Note** that this repository does not contain the model training and model conversion code for MobileBERT since TensorFlow Lite has got a pretty [straightforward guide](https://www.tensorflow.org/lite/tutorials/model_maker_text_classification) already available. A similar guide is also available [here](https://www.tensorflow.org/lite/tutorials/model_maker_question_answer) for question-answering.
## TensorFlow Lite model files and fine-tuned weights
* [ALBERT](https://github.com/sayakpaul/BERT-for-Mobile/releases/tag/v0.5.0)
* [DistilBERT](https://github.com/sayakpaul/BERT-for-Mobile/releases/tag/v0.4.0)
* [MobileBERT](https://github.com/sayakpaul/BERT-for-Mobile/releases/tag/v0.3.0)## Benchmarks
## Acknowledgements
Thanks to the [ML-GDE program](https://developers.google.com/community/experts) for providing GCP credits that were used in order to spin up an AI Platform Notebook. Thanks to [Khanh LeViet](https://twitter.com/khanhlvg) for his guidance.