Do Now · Lab Notebook · 10 minutes

Set up your notebook. You will need it at the end of class.

Terminology and Concepts to look out for

Copy these. Leave space under each one for a definition.

  • storage
  • memory (RAM)
  • processor (CPU)
  • the card (GPU and VRAM)
Relevance to Me

Think about these. Nothing to write.

  • You have downloaded something big before. How did you know it would fit?
  • Your phone says storage is almost full. What actually stops working?
  • If this file were on your own laptop, would that make it your AI?
Question of the Day

Copy this into your Lab Notebook and leave room under it. You will answer it at the end of class.

What has to fit where for a computer to run anything?

Before the reading

The words, in plain terms

None of this is about AI yet. It is what every computer is made of. The AI part comes after.

storage
Where things stay when the power is off.
Turn the machine off, come back in a year, your photos are still there. That is storage doing its job.
In a gameThe install size. A 90 GB game has to fit on the drive before you can play it.
32 GB in total. Two to four were free on the twelve we checked.
memory (RAM)
RAM — random access memory
Where work happens while it is happening.
Nothing can be worked on in storage. It has to be moved here first, and this empties completely every time the power goes off.
In a gameThe “8 GB RAM minimum” line in system requirements — what holds the game while it runs.
A Chromebook has 4 GB.
processor (CPU)
CPU — central processing unit
The part that does the arithmetic.
A few things at a time, very quickly, in order. That turns out to be the wrong shape for this job.
In a gameThe other line in system requirements. It runs the rules of the game.
the card (GPU and VRAM)
GPU — graphics processing unit · VRAM — video random access memory
A second processor with memory of its own, built to do a million small sums at once.
It was built to colour the pixels in a video game. Nobody designed it for AI; it just happens to be the same shape of problem.
In a gameThe graphics card. VRAM is what decides the texture setting you can run without stuttering.
Cards come with 8, 16 or 24 GB of VRAM.
What Fits Where

Somewhere on a computer in this building there is a file. Not a program. Not a website. A file, the same kind of thing as a photo or a song, except that this one is 6.63 gigabytes and it is an artificial intelligence.

That last part is the hard part. Most people have never thought of an AI as a thing that sits somewhere. They think of it as a place you go, the way you go to a search engine, with the answer arriving from somewhere far off that nobody has to picture. The AI running in this classroom is not a place. It is a file with a size, and everything else in this unit follows from that.

A file has to be kept somewhere. Turn a computer off, unplug it, leave it in a drawer for a year, and the files on it do not go anywhere. Photos stay. Homework stays. The part of the machine that holds things through all of that is called storage, and every device in this room has some.

Storage has a size, and that size is the first gate. A Chromebook in this class has thirty two gigabytes of it in total. That sounds like a lot until you learn what is already using it. The operating system takes a share, updates take another, and everything downloaded since the machine was assigned takes the rest. Across twelve Chromebooks checked one afternoon in August, the amount left over ranged from two to four gigabytes.

Set that beside 6.63 and the arithmetic is not close. The file will not fit. Not slowly, not with patience, not overnight. There is nowhere to put it.

Suppose it did fit. Suppose the drive were empty and the whole 6.63 gigabytes copied over without complaint. What happens next is nothing. The file sits there taking up space and answering no questions. A file of this kind is not a set of instructions the way a program is. It is a very large pile of numbers, and numbers by themselves do not do anything. What makes them do something is a separate question, and it is not this one.

Assume that question has an answer. Now a second problem appears, and it is one most people never hear about.

Work does not happen on the drive. A machine cannot reach into storage and do arithmetic there, because storage is built to hold things for a long time rather than to hand them over quickly. Before anything can be worked on, it has to be moved into a different part of the machine, one that is much faster and much smaller and that empties completely every time the power goes off. That is the machine’s working memory, and on a spec sheet it is written RAM. Everything a computer is actively doing is sitting in RAM right now. Everything it is merely keeping is sitting in storage.

The Chromebook has four gigabytes of RAM. The file is 6.63. This is the second failure and it is a different failure from the first. Clearing the drive would not help. Deleting every photo, every download, every app would free storage and would not add a single gigabyte of RAM. The machine cannot hold this file while it works on it, and no amount of tidying changes that.

So something else has to hold it. The part of a machine that does the arithmetic is called a processor, and computers have more than one kind. The one most people have heard of is written CPU on a spec sheet. It handles a few things at a time, very quickly, in order. That is the wrong shape for this job.

Running one of these files means doing an enormous number of very small multiplications that do not depend on each other. None of them has to wait for the one before it. There is another kind of processor already built for exactly that pattern, and it was not built for artificial intelligence at all. It was built to decide what color each of a million pixels on a screen should be, which is the same shape of problem. On a spec sheet it is written GPU, and it lives on a card.

The card carries working memory of its own. Not a different kind of thing from RAM, but the same idea in a second place: fast, much smaller than storage, empty every time the power goes off, and this time close enough to the GPU to be worked on. It is written VRAM.

So a machine has two of each. RAM and a CPU on one side, VRAM and a GPU on the card. Storage sits under both, holding things that are not being used at all. When people ask what a graphics card can run, the number they mean is its VRAM.

Those cards come in sizes. Eight gigabytes of VRAM. Sixteen. Twenty four. The file is 6.63.

Now the question is worth asking properly. Which machines in the world can run this thing, and is any of them yours?

Work these together
10 questions on the passage. Pick an answer, then check it. Nothing here is collected.
Question 1 of 10the passage
The passage says a file stays on a machine even after the power is cut and the machine sits unused for a year. Which part is holding it?
Question 2 of 10the passage
A Chromebook has thirty two gigabytes of storage and four gigabytes of RAM. A student deletes every photo and every download on the machine. What changes?
Question 3 of 10the passage
According to the passage, why is a GPU well suited to running a model?
Question 4 of 10the passage
The passage says the card carries working memory of its own. What is it called on a spec sheet?
Question 5 of 10the passage
The passage describes a moment where the file has been downloaded successfully and nothing happens. Why not?
Question 6 of 10the passage
Across twelve Chromebooks checked in August, free storage ranged from two to four gigabytes. The model file is 6.63 gigabytes. What does the passage conclude?
Question 7 of 10the passage
The passage says the machine fails a second time even if the drive were completely empty. Why?
Question 8 of 10the passage
Why does the passage say the card was not built for artificial intelligence?
Question 9 of 10the passage
A card carries sixteen gigabytes of VRAM. The file is 6.63 gigabytes. Based on the passage, what can you say?
Question 10 of 10the passage
Which pair of numbers decides whether a Chromebook can run this file?
The pictures
Inside the machine A machine contains two places that hold a file while it is worked on and two processors that do the work. RAM and CPU sit in the machine. VRAM and GPU sit on the card. Storage sits underneath both and holds the file at all times; RAM and VRAM hold copies of it while work is happening. IN THE MACHINE ON THE CARD The machine RAM holds the file while the CPU works on it VRAM holds the file while the GPU works on it CPU does work where each step waits on the one before it GPU does millions of small multiplications all at once Storage where the file stays, whether or not anything is using it. Nothing is ever worked on here. HOLDS IT WORKS ON IT KEEPS IT Holding and working are two different jobs. A file being worked on is in two places at once.
Inside the machine — RAM and CPU on the machine side, VRAM and GPU on the card, storage underneath both.
Read the picture

A machine has two of each, and the reason is that holding something and working on something are two different jobs.

Read the picture across, not down. The top row is the two places a file can sit while it is being used. The bottom row is the two things that can do the arithmetic. The left column is in the machine itself. The right column is on the card.

Storage runs underneath both columns because it belongs to neither. Nothing is ever worked on in storage. A file there is a file waiting.

The words in the boxes are the words you will see on a spec sheet, in a store, and in every guide about this you ever read.

Kept and being worked on Two pictures of the same machine side by side, drawn with identical geometry. On the left the file sits in storage and VRAM is empty. On the right the file is still in storage and a second copy of it now sits in VRAM. There is no arrow between them because nothing moved: loading made a copy at a second address. AT REST The machine VRAM VOLATILE Storage NON-VOLATILE the file, 6.63 GB The power can go off. It will still be here. IN USE The machine VRAM VOLATILE the file, 6.63 GB Storage NON-VOLATILE the file, 6.63 GB Cut the power and the top box empties. The bottom box does not notice. Loading is the copy being made: 6.63 GB across PCIe, a few seconds. Same file, two addresses. One of them forgets.
At rest and in use — the same file drawn in storage, then a copy in VRAM. Same file, two addresses. One of them forgets.
Read the picture

This is one machine drawn twice, at two different moments.

On the left the file is in storage. It will survive the power going off, the machine sitting in a drawer, and a year passing. Nothing is happening to it.

On the right the same file is in VRAM. Now it can be worked on. It also disappears completely the instant the power is cut, and it has to be put there again the next time.

There is deliberately no arrow between the two halves, because nothing travelled. Both pictures are true of the same machine at different times. The file did not go on a journey. It changed address.

What the word suggests, and what the machine does Two pictures of the same machine. The left one is deliberately wrong: an arrow carries the file up out of storage into VRAM, leaving an empty dashed outline behind. The right one is correct: no arrow, the file still in storage, and a second copy of it in VRAM. WHAT THE WORD SUGGESTS The machine VRAM the file, 6.63 GB Storage empty now The file left one place and arrived in another. Nothing about a computer works this way. WHAT THE MACHINE DOES The machine VRAM VOLATILE the file, 6.63 GB Storage NON-VOLATILE the file, 6.63 GB Storage still has it. VRAM has a second copy. No arrow, because nothing travelled. Load a truck and the crate leaves the warehouse. Load a file and the file stays exactly where it was.
What the word load sounds like, beside what the machine actually does. The left panel is drawn wrong on purpose.
Read the picture

Two pictures of the same machine.

The picture on the left is deliberately wrong. It shows what the word load sounds like: an arrow carries the file up out of storage into VRAM, and there is a dashed outline where the file used to be.

The picture on the right is what actually happens. The file stays in storage, at full strength. A copy of it appears in VRAM. Two addresses, one file, and one of them forgets when the power goes off.

Load means copy, not move. Placed here on purpose, in grey and dashed, so the correct picture beside it has something to be correct against.

Will it fit? The Chromebook The Chromebook holds four gigabytes of RAM and has no graphics card. The 6.63 gigabyte file is laid against it and overflows by 2.63 gigabytes. Will it fit? Four gigabytes of RAM against a 6.63 gigabyte file. 6.63 4 GB 2.63 GB over the line Chromebook RAM. No card at all. Does not fit RTX 4060 RTX 5070 Ti RTX 4090 Every bar is drawn to the same scale. The red block is the same file every time, 6.63 GB.
Will it fit? Panel 1 of the ladder — Chromebook, 4 GB RAM against a 6.63 GB file.
Read the picture

Every bar is drawn to the same scale, and the red block is the same file every time. That is what makes the four comparisons honest.

The question is the same for each machine and it is answered with subtraction. Is the number on the machine larger than 6.63, or is it not.

The first bar is different from the other three, and the difference matters. The Chromebook’s bar is RAM, the working memory in the machine itself. The other three bars are VRAM, working memory on a card. The Chromebook does not have a small card. It has no card at all, which is why its RAM is the only thing that could possibly hold the file, and why it comes up short by 2.63 gigabytes.

Notice what the question never needed. Not the speed of the machine, not the year it was made, not the price. One subtraction settled all four.

Three machines in the world can hold this file. None of them is in this room.

Will it fit? The RTX 4060 The RTX 4060 carries eight gigabytes of VRAM. The 6.63 gigabyte file fits inside it with room left over. Will it fit? Eight gigabytes of VRAM against the same file. 6.63 4 GB 2.63 GB over the line Chromebook RAM. No card at all. Does not fit 6.63 8 GB RTX 4060 VRAM on the card Fits RTX 5070 Ti RTX 4090 Every bar is drawn to the same scale. The red block is the same file every time, 6.63 GB.
Will it fit? Panel 2 — RTX 4060, 8 GB VRAM.
Read the picture

Every bar is drawn to the same scale, and the red block is the same file every time. That is what makes the four comparisons honest.

The question is the same for each machine and it is answered with subtraction. Is the number on the machine larger than 6.63, or is it not.

The first bar is different from the other three, and the difference matters. The Chromebook’s bar is RAM, the working memory in the machine itself. The other three bars are VRAM, working memory on a card. The Chromebook does not have a small card. It has no card at all, which is why its RAM is the only thing that could possibly hold the file, and why it comes up short by 2.63 gigabytes.

Notice what the question never needed. Not the speed of the machine, not the year it was made, not the price. One subtraction settled all four.

Three machines in the world can hold this file. None of them is in this room.

Will it fit? The RTX 5070 Ti The RTX 5070 Ti carries sixteen gigabytes of VRAM. The same file fits with a great deal of room left over. Will it fit? Sixteen gigabytes of VRAM against the same file. 6.63 4 GB 2.63 GB over the line Chromebook RAM. No card at all. Does not fit 6.63 8 GB RTX 4060 VRAM on the card Fits 6.63 16 GB RTX 5070 Ti VRAM on the card Fits RTX 4090 Every bar is drawn to the same scale. The red block is the same file every time, 6.63 GB.
Will it fit? Panel 3 — RTX 5070 Ti, 16 GB VRAM.
Read the picture

Every bar is drawn to the same scale, and the red block is the same file every time. That is what makes the four comparisons honest.

The question is the same for each machine and it is answered with subtraction. Is the number on the machine larger than 6.63, or is it not.

The first bar is different from the other three, and the difference matters. The Chromebook’s bar is RAM, the working memory in the machine itself. The other three bars are VRAM, working memory on a card. The Chromebook does not have a small card. It has no card at all, which is why its RAM is the only thing that could possibly hold the file, and why it comes up short by 2.63 gigabytes.

Notice what the question never needed. Not the speed of the machine, not the year it was made, not the price. One subtraction settled all four.

Three machines in the world can hold this file. None of them is in this room.

Will it fit? The RTX 4090 The RTX 4090 carries twenty four gigabytes of VRAM. The same file fits easily. Will it fit? Twenty four gigabytes of VRAM against the same file. 6.63 4 GB 2.63 GB over the line Chromebook RAM. No card at all. Does not fit 6.63 8 GB RTX 4060 VRAM on the card Fits 6.63 16 GB RTX 5070 Ti VRAM on the card Fits 6.63 24 GB RTX 4090 VRAM on the card Fits Every bar is drawn to the same scale. The red block is the same file every time, 6.63 GB.
Will it fit? Panel 4 — RTX 4090, 24 GB VRAM.
Read the picture

Every bar is drawn to the same scale, and the red block is the same file every time. That is what makes the four comparisons honest.

The question is the same for each machine and it is answered with subtraction. Is the number on the machine larger than 6.63, or is it not.

The first bar is different from the other three, and the difference matters. The Chromebook’s bar is RAM, the working memory in the machine itself. The other three bars are VRAM, working memory on a card. The Chromebook does not have a small card. It has no card at all, which is why its RAM is the only thing that could possibly hold the file, and why it comes up short by 2.63 gigabytes.

Notice what the question never needed. Not the speed of the machine, not the year it was made, not the price. One subtraction settled all four.

Three machines in the world can hold this file. None of them is in this room.

The ladder All four machines together. A Chromebook with four gigabytes of RAM and no card, then three graphics cards carrying eight, sixteen and twenty four gigabytes of VRAM. The same 6.63 gigabyte file is laid into each. It overflows the Chromebook and fits the other three. The ladder One file. Four machines. One subtraction each. 6.63 4 GB 2.63 GB over the line Chromebook RAM. No card at all. Does not fit 6.63 8 GB RTX 4060 VRAM on the card Fits 6.63 16 GB RTX 5070 Ti VRAM on the card Fits 6.63 24 GB RTX 4090 VRAM on the card Fits The first bar is RAM in a machine. The other three are VRAM on a card. The Chromebook does not have a small card. It has none.
The ladder — all four machines together, with verdicts. This is the panel students copy.
Read the picture

Every bar is drawn to the same scale, and the red block is the same file every time. That is what makes the four comparisons honest.

The question is the same for each machine and it is answered with subtraction. Is the number on the machine larger than 6.63, or is it not.

The first bar is different from the other three, and the difference matters. The Chromebook’s bar is RAM, the working memory in the machine itself. The other three bars are VRAM, working memory on a card. The Chromebook does not have a small card. It has no card at all, which is why its RAM is the only thing that could possibly hold the file, and why it comes up short by 2.63 gigabytes.

Notice what the question never needed. Not the speed of the machine, not the year it was made, not the price. One subtraction settled all four.

Three machines in the world can hold this file. None of them is in this room.

What fits where
The pictures are numbered on the left. Each question says which one it is about.
The words, in plain terms
storage
Where things stay when the power is off.
Turn the machine off, come back in a year, your photos are still there. That is storage doing its job.
In a gameThe install size. A 90 GB game has to fit on the drive before you can play it.
32 GB in total. Two to four were free on the twelve we checked.
memory (RAM)
RAM — random access memory
Where work happens while it is happening.
Nothing can be worked on in storage. It has to be moved here first, and this empties completely every time the power goes off.
In a gameThe “8 GB RAM minimum” line in system requirements — what holds the game while it runs.
A Chromebook has 4 GB.
processor (CPU)
CPU — central processing unit
The part that does the arithmetic.
A few things at a time, very quickly, in order. That turns out to be the wrong shape for this job.
In a gameThe other line in system requirements. It runs the rules of the game.
the card (GPU and VRAM)
GPU — graphics processing unit · VRAM — video random access memory
A second processor with memory of its own, built to do a million small sums at once.
It was built to colour the pixels in a video game. Nobody designed it for AI; it just happens to be the same shape of problem.
In a gameThe graphics card. VRAM is what decides the texture setting you can run without stuttering.
Cards come with 8, 16 or 24 GB of VRAM.
An AI is a file.
The model folder on screen. 6.63 GB visible in the listing. It is sitting there doing nothing.
To download it, it has to fit.
6.63 GB against 2 to 4 GB free, twelve devices audited.
Ask

Does it fit on a Chromebook?

Reveal

No. 6.63 is larger than 4, and 4 is the largest free number found in the audit. The comparison is not close.

Suppose it downloaded anyway.
It still does nothing. A file is not a program.
Open ask

So what would it take to make the file do something?

We are not answering this today. Bring it back tomorrow.

At rest is not the same as in use.
To be worked on, a copy of the file has to be in memory, not just on the drive. The Chromebook has 4 GB of RAM.
Ask

Would clearing the whole drive fix it?

Reveal

No. Deleting files frees storage and adds no RAM. This is the second failure, and it is a different failure from the first.

Load means copy, not move.
The picture on the left is what the word load sounds like — the file leaves storage, arrives in VRAM, and there is a dashed outline where it used to be. That is not what happens. The picture on the right is what actually happens: the file stays in storage, and a copy of it appears in VRAM. Same file, two addresses. One of them forgets.
What does the arithmetic.
The processor. A card built to decide the color of a million pixels turns out to be a machine for running a model, because both are piles of small multiplications that do not depend on each other. Nobody designed it that way.
Will it fit?
Four separate asks, same question, same subtraction. By the fourth panel the room answers before the teacher does.
Ask

Chromebook, 4 GB RAM against 6.63 GB. Fit?

Reveal

No. Over by 2.63 GB.

Ask

RTX 4060, 8 GB VRAM. Fit?

Reveal

Yes. Room for 1.37 GB more.

Ask

RTX 5070 Ti, 16 GB VRAM. Fit?

Reveal

Yes. Room for 9.37 GB more.

Ask

RTX 4090, 24 GB VRAM. Fit?

Reveal

Yes. Room for 17.37 GB more.

The ladder.
All four together with verdicts. This is the panel students copy into the notebook.

Three machines can run it, and none of them is in this room.

What the machine actually says.
The out of memory error, as a real screenshot from the 4060. It does not say your file is 2.63 gigabytes too large. It says out of memory, and now the room knows which memory it meant.
The rest of the block

Partner work first. Then quiet work time.

The three rules
  • No cellphones
  • No sleeping
  • No non-academic use of Chromebooks
What you get
  • A quiet room and music
  • No interruptions from the teacher
  • If you are caught up on this course's work, you may work on anything legitimate for another class
If you are picking, pick reading or writing.
Everything we build in this class, we build with words. The tools take writing as input. How well you write is the ceiling on what you can make them do.
Open this now: muggsofcompsci.net/decks/cs1-stack-day1-wedo