Errata

Generative AI on AWS

Errata for Generative AI on AWS

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page Page 70
Figure 4-11 and 2nd paragraph

In the description of the three ZeRO stages, there seems to be a discrepancy between Figure 4-11 and the text immediately below the figure. For example, the figure suggests that Stage 1 involves sharding only the parameters, while the text affirms that only the optimizer states are sharded in Stage 1. The text has the correct information, but the figure seems misleading to me.

Pablo A. Sampaio  Jun 23, 2024 
Printed Page Page 85
Last paragraph and code

The paragraph says "let's demonstrate how to convert this tabular dataset into an instruction dataset using Python's f-string and .format() code". Then, it presents a Python code snippet. However, the f-string will not work as desired. A common string would work fine.

If I am correct, the text should not reference f-string, and the code could be corrected by simply using a common multiline string. This can be done by replacing the line:
> prompt_template = f"""
with the following line:
> prompt_template = """

Pablo A. Sampaio  Jun 23, 2024