Skip to content

Is my PC powerful enough for the exercises in this book? #623

Answered by casinca
IDNBC asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Imo, on CPU training with your ram, you'll have no problem, you'll be able to run all chapters smoothly without having to worry about memory. Training on CPU is a bit slow though.

If instead you want to use your Cuda GPU, some parts might lead you into OOM territory in f32, depending on the chapters, not sure.
@rasbt can give a better answer on that, I don't remember exactly. But It'll be feasible in bf16 model.to(torch.bfloat16).
You can also reduce some hyperparameters like batch_size or context_length to fit everything in VRAM. Even use Google Colab too, if needed.

Sebastian made the book with these limits and a broader audience in mind, I don't think you'll run into trouble tbh.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@IDNBC
Comment options

@rasbt
Comment options

@IDNBC
Comment options

Answer selected by IDNBC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants