Chapter 3 questions

AndyZAnderson
Fri, 11 Apr 2025 03:03:42 +0000

John6666:

Chapter 3 (Processing the Data) imports AdamW from transformers, but it was removed in v4.5.0 · Issue #860 · huggingface/course · GitHub

The AdamW function has moved from the transformers library, it now needs to be imported as follows:
from torch.optim import AdamW