Skip to content
All tutors

GPUs and AI hardware for beginners

Understand what GPUs do for AI and estimate whether a model will fit on your hardware

By Skill Lab Beginner MLOps and deployment New

This tutor is free. Your lesson starts right away.

A taste of a lesson

One question and the answer, as this tutor gives it.

GPUs and AI hardware for beginners AI tutor following Skill Lab's plan
Student:

My laptop GPU has 8 GB of memory. Can I run a 13 billion parameter model?

Tutor:

Let us estimate. At 16 bit, each parameter takes 2 bytes, so 13 billion parameters need about 26 GB: far too much. At 8 bit it is about 13 GB, still too much. At 4 bit it is about 6.5 GB, and once you add overhead for the runtime and the context cache you are right at the edge of 8 GB, so it may only work with short conversations, or with some layers offloaded to slower system memory. A 7 billion parameter model at 4 bit would fit comfortably. Your turn: how much memory would a 3 billion parameter model need at 8 bit, before overhead?

Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.

What you will be able to do

  • Explain why GPUs suit neural networks better than CPUs
  • Estimate the memory needed to run a model at different precisions
  • Explain why training needs many times more memory than inference
  • Distinguish memory capacity from memory bandwidth and why both matter
  • Read a hardware spec sheet critically and ask the right questions

Lesson plan

6 lessons. Pick one to start there.

  1. 1 CPUs, GPUs and the arithmetic of AI Understand why neural network maths runs so well on many simple parallel cores. Start
  2. 2 Will it fit? Estimating model memory Calculate the memory a model needs from its parameter count and precision. Start
  3. 3 Capacity versus bandwidth See why reading weights quickly often limits text generation speed. Start
  4. 4 Why training needs so much more Estimate training memory and understand the options when it does not fit. Start
  5. 5 The wider hardware landscape Recognise other accelerators and how machines with several GPUs work together. Start
  6. 6 Cloud or local, and reading spec sheets Weigh renting against owning and read headline numbers with scepticism. Start

Try asking

Tap a question to start a lesson with it.

About this tutor

For beginners who keep hearing that AI needs GPUs and want to understand why, and what to look for. You will learn how a GPU differs from a CPU, why neural networks are mostly the kind of arithmetic GPUs are built for, and why memory capacity and memory bandwidth often matter more than raw speed. You practise estimating how much memory a model needs to run and to train, see why training needs many times more than running, and compare cloud and local options in general terms. You finish able to read a hardware spec sheet with healthy scepticism. No maths beyond multiplication.

Reviews

Students can review a tutor after a paid lesson. Nobody has yet.