-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Generative AI with Python and PyTorch - Second Edition
By :
Before diving into the chapters, it’s essential to ensure you have the right setup and foundational knowledge to make the most of this book. Here’s what you’ll need.
Basic understanding of Python syntax and programming experience will help you understand the majority of the code base. Additionally, an intermediate-level understanding of concepts related to machine learning and deep learning would enable you to appreciate and understand complex generative models and techniques discussed throughout the book. A quick setup guide is as follows:
Chapter-specific dependencies are mentioned within the respective chapters, along with the associated Jupyter Notebooks and GitHub repository.
The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/Generative-AI-with-Python-and-PyTorch-Second-Edition. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/gbp/9781835884447.
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example; “The --name option will set the name of the cluster to cluster01, and --config tells the installer to use the cluster01-kind.yaml config file.”
A block of code is set as follows:
datafile_path = ./metamorphosis_franz_kafka.txt'
# Load the text file
text = open(datafile_path, 'rb').read().decode(encoding='utf-8')
print ('Book contains a total of {} characters'.format(len(text)))
Any command-line input or output is written as follows:
PS C:\Users\mlb> kubectl create ns not-going-to-work
namespace/not-going-to-work created
Bold: Indicates a new term, an important word, or words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this. For example: “Hit the Finish Login button at the bottom of the screen.”
Warnings or important notes appear like this.
Tips and tricks appear like this.