How Do LLMs Work Welcome Activity
Introduce yourself in chat: Name, Location, Connection to K-12 CSEd, and answer the question What’s your favorite chatbot?
Slides: tinyurl.com/cstaca260122slides
Tech Norms
How Do Large Language Models Work?
Vicky Sedgwick
Retired Elem CS Teacher
AI4K12 K-2 Grade Band Lead
CSTA GLA Chapter President
Both
Agenda
Slides: tinyurl.com/cstaca260122slides
AI
LLM
Vicky
Unplugged Introductions to
Generative AI Language Models
How Do LLMs Work?
Vicky
Questions to Be Pondering
How can AI be wrong?
Is AI intelligent?
Where does AI bias come from?
Vicky
??
🤔
Define: "Generative AI Model?"
David
“AI”
Generative AI Model
In the chat…
How do you respond to a student that asks: What is AI?
David
Generative AI Model
David
Generative AI Model
Generative AI caught the world’s attention because the output appeared to demonstrate human-like ability.
David
Generative AI Model
“A simplified representation of a system, process, or concept.”
Some models can help us…
David
Some Models of�“Green Eggs & Ham”
Vicky
Vicky
Vicky
Some Popular Large Language Models
Vicky
Let’s Look at Some Unplugged “Green Eggs & Ham” Language Models
Vicky
A Story with Only 50 Vocab Words
a
am
and
anywhere
are
be
boat
box
car
could
dark
do
eat
eggs
fox
goat
good
green
ham
here
house
I
if
in
let
like
may
me
mouse
not
on
or
rain
Sam
say
see
so
thank
that
the
them
there
they
train
tree
try
will
with
would
you
Vicky
Language
Our Language Models
Dr Seuss’ “Green Eggs & Ham”
Vicky
Model #1: Sentence Strips
Vicky
Model #1: 5 Containers & Sentence Strips
21
1
2
3
4
5
Vicky
22
I
do not
Sam-I-am.
that
I do not like that Sam-I-am.
like
1
2
3
4
5
Vicky
23
I
do not
Sam-I-am.
that
I do not like them Sam-I-am.
like
them
1
2
3
4
5
Vicky
24
I
do not
Sam-I-am.
that
I do not like green eggs and ham.
like
them
green eggs and ham.
1
2
3
4
5
Vicky
25
I
do not
Sam-I-am.
that
I would not like them here or there.
like
them
green eggs and ham.
would not
here or there.
1
2
3
4
5
Vicky
26
I
do not
Sam-I-am.
that
I would not like them anywhere.
like
them
green eggs and ham.
would not
here or there.
anywhere.
1
2
3
4
5
Vicky
27
I
do not
Sam-I-am.
that
I will eat them anywhere.
like
them
green eggs and ham.
would not
here or there.
anywhere.
will
eat
1
2
3
4
5
Vicky
28
I
do not
Sam-I-am.
that
like
them
green eggs and ham.
would not
here or there.
anywhere.
will
eat
I do like green eggs and ham.
do
1
2
3
4
5
Vicky
Sentence Strips
Share the sentence generated for you in chat
Vicky
Model #2: Deck of Cards
David
Model #2: Deck of Cards
50 Unique Words
3 Punctuation Marks
1 Per Card
like
David
Generating a Sentence with Model #2
Randomly draw 1 card at a time.
Stop when a punctuation mark is drawn (. ! ?).
Don’t use any of your intelligence to reject words, change the order, or stop early.
TRAIN
IF
EGGS
THAT
David
Deck of Cards
Hands-On
David
Model #2 Example Sentences
IN WOULD BE LET ON DARK GOOD WILL DO MOUSE ANYWHERE DO !
IN THEM TREE GOOD YOU MOUSE SAY TREE FOX OR WOULD ?
NOT DARK SEE SAY FOX A LIKE IF BOAT ME SO TRAIN GREEN THANK I A HAM TRY MAY SEE BE AND LIKE ?
Gibberish Sentences.
Model #3: 927 Cards
David
Model #3: 927 Cards
One card for each word/punc in the book.
David
Generating a Sentence with Model #3
Randomly draw 1 card at a time.
Stop when punctuation is drawn.
(Don’t use your intelligence to reject any words, or change the order, or stop.)
NOT
EGGS
THAT
David
927 Cards
Hands-On
David
927 Cards
Sentence Generation Improvements
In the chat…
What is different about the sentences that are generated by this model?
David
Model #2 Example Sentences
TRAIN AND NOT I !
SEE NOT IN ON !
LIKE THEM EAT HAM THEM .
Still Gibberish.
Generated Sentences from Model #3
Some observations…
NOT
EGGS
THAT
David
Model #4: ‘Markov Chain’ Decks
David
Model #4: Markov Chain Decks
50 Decks
927 Cards
Collection of “Next Words”
NOT
David
Model #4: Markov Chain Decks
Example “You” Deck (34 cards):
LIKE, LIKE, LIKE, LIKE, EAT, EAT, ?, ?, MAY, WILL, MAY, LET, WOULD, ON, COULD, IN, COULD, IN, SEE, DO, WOULD, WITH, COULD, ON, LET, DO, SAY, MAY, MAY, WILL, WILL, SEE, !, SAM
YOU
David
Model #4: Markov Chain Decks
David
Generating Sentences with Model #4
GREEN
EGGS
AND
GREEN
EGGS
Start
David
Markov Chain Decks
Hands-On
David
Model #3 Example Sentences
IN A BOX.
COULD NOT WITH A BOAT.
LET ME BE!
Markov Chains
Andrey Markov (1856-1922)
Modeled processes as sequences of steps.
Probabilities assigned to the chance of each possible next step.
Studied letter sequences in Russian Poetry
David
Generative AI Language Models
David
“Corpus”
How much more complete would this language model be with all this data?
How might sentence generation improve?
1 Book
927 words
3
David
“Training”
What happens to the effort needed for building a model as sophistication increases?
LLMs are not training while being used.
David
“Tokens”
How many more language patterns might be detectable if word roots were analyzed, not just whole words?
TRAIN
EAT
S
ING
EN
David
Resources To Use & Share
Vicky
Join us on 12 March 2026 from 5:00-6:30pm PT for …
PLUG IN. UNPLUG. POWER UP LEARNING!
Register: tinyurl.com/cstaca260312
Credits
Many of the images were generated by ChatGPT 4o with prompts like: "Generate an illustration in the style of Dr Seuss of a creature with a hand puppet with a puppet holding a puppet."
Model #1 resources originally created for AI for CA by Vicky Sedgwick with feedback from Mark Loundy and Katherine Goyette. Thanks to Dr. Emily Thomforde for her idea of Sentence Maps of Green Eggs and Ham.