To get the most out of this book
Many code examples in the book require the presence of a GPU. Don’t worry if you don’t have one. To avoid any hardware limitations, all code examples are available as Jupyter notebooks, executed on Google Colab. So, even if your hardware is not sufficient to run the examples, you can still run them under Colab.
Software/hardware covered in the book |
Operating system requirements |
PyTorch 2.0.1 |
Windows, macOS, or Linux |
TensorFlow 2.13 |
Windows (legacy support), macOS, or Linux |
Hugging Face Transformers 4.33 |
Windows, macOS, or Linux |
Some code examples in the book may use additional packages not listed in the table. You can see the full list (with versions) in the requirements.txt file in the book’s GitHub repo.
If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.