Technical requirements
You will need to install the libraries and software listed next. Although having the latest version is a plus, it is mandatory to install versions that are compatible with each other. For more information about the latest version installation for the Hugging Face transformer, take a look at their official web page at https://huggingface.co/docs/transformers/installation:
Anaconda
transformers 4.25.1
pytorch 1.13.1
tensorflow 2.9.2
datasets 1.4.1
Finally, all the code shown in this chapter is available in this book’s GitHub repository at https://github.com/PacktPublishing/Mastering-Transformers-Second-Edition.