Hello everyone
I recently wrote a medium article on the integration of Fastai with BERT (huggingface’s pretrained pytorch models for NLP) on a multi-label text classification task. After that I compared the performances of BERT and ULMFiT.
Here are few things which I did to integrate Fastai with BERT:
- Using BERT’s tokens and vocab
- Some modifications in BERT’s tokens for eos and bos parts
- Splitting the model for discriminative learning techniques
Here is the link:
I was amazed by the level of accuracy using just 2 epochs:
- BERT - 98% accuracy
- ULMFiT - 97% accuracy
I would be glad if you have any feedbacks or comments on this.
BR
Abhik