A token ID is an integer assigned to a token in a vocabulary. It lets text be represented as numbers that a model can process. section 11.4 section 11.9
A token-to-ID mapping
In the example vocabulary, `th` maps to 24 and `in` maps to 8. Replacing text tokens with these IDs creates a numerical token stream. section 11.9 section 11.10
Table 11.6 The vocabulary based on the training data
|
ID |
Token |
|
ID |
Token |
|
ID |
Token |
| 0 |
a |
|
12 |
o |
|
24 |
th |
| 1 |
l |
|
13 |
v |
|
25 |
k |
| 2 |
ic |
|
14 |
er |
|
26 |
, |
| 3 |
e |
|
15 |
y |
|
27 |
: |
| 4 |
w |
|
16 |
ti |
|
28 |
c |
| 5 |
s |
|
17 |
re |
|
29 |
r |
| 6 |
b |
|
18 |
d |
|
30 |
p |
| 7 |
g |
|
19 |
f |
|
31 |
u |
| 8 |
in |
|
20 |
i |
|
32 |
" |
| 9 |
n |
|
21 |
h |
|
33 |
? |
| 10 |
ing |
|
22 |
ers |
|
|
|
| 11 |
t |
|
23 |
on |
|
|
|
Browse the vocabulary table to see token IDs paired with their tokens. section 11.9






