You can try out this book. It is not specific to transformers but there are a lot of examples and code. Transformers for Natural Language Processing: Build innovative deep neural network architectures for NLP with Python, PyTorch, TensorFlow, BERT, RoBERTa, and more eBook: Rothman, Denis: Amazon.in: Kindle Store 6