1 of 56

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

2 of 56

Tech Norms

  • Mute and unmute strategically. During discussions, it is OK to stay off mute to allow for more natural discussions, but please mute yourself if there is a lot of background noise.
  • Check your display name (Susie Smith - Location)
  • Show your video, if able.
  • Participate! Use the chat to ask questions.
  • If you take a break, don’t forget to mute yourself and turn off your video.
  • Have water and snacks handy. It is okay to drink and munch while in the session.

3 of 56

How Do Large Language Models Work?

4 of 56

David Czechowski

CS/Technology Teacher

CSTA-New York

davidczechowski@hpcsd.org

www.TeachingIsSTEM.com

Vicky Sedgwick

Retired Elem CS Teacher

AI4K12 K-2 Grade Band Lead

CSTA GLA Chapter President

visionsbyvicky.com

Both

5 of 56

Agenda

  1. Welcome and Introductions
  2. What is a “Generative AI Model”?
  3. Some Seuss-Inspired Models
  4. Connect to current LLMs
  5. Resources and Q & A
  6. Chapter Breakouts�

Slides: tinyurl.com/cstaca260122slides

AI

LLM

Vicky

6 of 56

Unplugged Introductions to

Generative AI Language Models

How Do LLMs Work?

Vicky

7 of 56

Questions to Be Pondering

How can AI be wrong?

Is AI intelligent?

Where does AI bias come from?

Vicky

??

🤔

8 of 56

Define: "Generative AI Model?"

David

9 of 56

“AI”

Generative AI Model

In the chat…

How do you respond to a student that asks: What is AI?

David

10 of 56

Generative AI Model

David

11 of 56

Generative AI Model

Generative AI caught the world’s attention because the output appeared to demonstrate human-like ability.

  • Output is more than just pre-planned responses.
  • Patterns are used to produce content.
  • Text, images, sounds, video, code, etc.

David

12 of 56

Generative AI Model

“A simplified representation of a system, process, or concept.”

Some models can help us…

  • Communicate about a thing
  • Understand how a thing works
  • Predict how a thing might behave

David

13 of 56

Some Models of�“Green Eggs & Ham”

Vicky

14 of 56

Vicky

15 of 56

Vicky

16 of 56

Some Popular Large Language Models

Vicky

17 of 56

Let’s Look at Some Unplugged “Green Eggs & Ham” Language Models

Vicky

18 of 56

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

19 of 56

Language

Our Language Models

Dr Seuss’ “Green Eggs & Ham”

  1. Sentence Strips from Green Eggs & Ham
  2. A Deck of Cards
  3. A Stack of 927 Cards
  4. Markov Chain Card Decks

Vicky

20 of 56

Model #1: Sentence Strips

Vicky

21 of 56

Model #1: 5 Containers & Sentence Strips

21

1

2

3

4

5

Vicky

22 of 56

22

I

do not

Sam-I-am.

that

I do not like that Sam-I-am.

like

1

2

3

4

5

Vicky

23 of 56

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 of 56

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 of 56

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 of 56

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 of 56

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 of 56

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

29 of 56

Sentence Strips

Share the sentence generated for you in chat

Vicky

30 of 56

Model #2: Deck of Cards

David

31 of 56

Model #2: Deck of Cards

50 Unique Words

3 Punctuation Marks

1 Per Card

like

David

32 of 56

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

33 of 56

Deck of Cards

Hands-On

David

34 of 56

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.

35 of 56

Model #3: 927 Cards

David

36 of 56

Model #3: 927 Cards

One card for each word/punc in the book.

David

37 of 56

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

38 of 56

927 Cards

Hands-On

David

39 of 56

927 Cards

Sentence Generation Improvements

In the chat…

What is different about the sentences that are generated by this model?

David

40 of 56

Model #2 Example Sentences

TRAIN AND NOT I !

SEE NOT IN ON !

LIKE THEM EAT HAM THEM .

Still Gibberish.

41 of 56

Generated Sentences from Model #3

Some observations…

  • Common book words appear more often.
  • Sentences are more similar in length to those in the book.
  • Still gibberish.

NOT

EGGS

THAT

David

42 of 56

Model #4: ‘Markov Chain’ Decks

David

43 of 56

Model #4: Markov Chain Decks

50 Decks

  • One for each of the unique words in “Green Eggs & Ham”

927 Cards

  • Each card is put into the deck corresponding to the word that preceded it in the book.

Collection of “Next Words”

NOT

David

44 of 56

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

45 of 56

Model #4: Markov Chain Decks

David

46 of 56

Generating Sentences with Model #4

  • Randomly draw a ‘Starting Word’
  • Use that word’s deck to randomly draw the next word.
  • Keep repeating with each new word’s deck.
  • Stop when a punctuation mark is drawn (. ! ?).

GREEN

EGGS

AND

GREEN

EGGS

Start

David

47 of 56

Markov Chain Decks

Hands-On

David

48 of 56

Model #3 Example Sentences

IN A BOX.

COULD NOT WITH A BOAT.

LET ME BE!

49 of 56

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

50 of 56

Generative AI Language Models

David

51 of 56

“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

52 of 56

“Training”

What happens to the effort needed for building a model as sophistication increases?

LLMs are not training while being used.

David

53 of 56

“Tokens”

How many more language patterns might be detectable if word roots were analyzed, not just whole words?

TRAIN

EAT

S

ING

EN

David

54 of 56

Resources To Use & Share

Vicky

55 of 56

Join us on 12 March 2026 from 5:00-6:30pm PT for …

PLUG IN. UNPLUG. POWER UP LEARNING!

Register: tinyurl.com/cstaca260312

56 of 56

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.