A detailed walk-through of using pytorch-transformers and BERT for text classification.
These notes will show you how to use BERT for text-classification. Some highlights:
- dataloaders in pytorch,
- BERT from pytorch-transformers,
- freezing layers,
- learning rate schedulers, optimizers and gradient clipping,
- mixed precision training,
- logging your training.
Resources: