0 tokens · 0 words · 0 charactersNothing fed in yet.
Chapter 1 of 7
What the model reads
You have joined the team building an AI assistant for Larkspur Supply Co., a hardware company. Before it reads any document, the team starts with what a model reads.
This chapter: When you type a sentence, what does the model receive?
About this chapter
You will learn
- Text reaches the model as a list of tokens, each one a number
- Why tokens are not words and not letters
- How to count a sentence in tokens, words and characters
Words you’ll meet
- Token
- A piece of text the model reads as one unit: a word, part of a word, a space with a word, or a single byte. Each token has a number, its id.
- Tokenizer
- The program that cuts text into tokens and turns them into ids, before the model sees anything.
- Vocabulary
- Every token a tokenizer knows, each with its id. Text can only be cut into tokens from this list.
Step 1 of 4
A cuts text into , each one a number, before the model sees anything.
Predict the count first.