VKVlad KulikovPublic / lectures
Modern LLMs2 / 20

Module 2. Tokenization and Embeddings

Choose your answers and select “Check”. Numbers accept a decimal point, comma, or simple fraction. Answers and drafts are saved in this browser and shared between RU/EN.

Checked: 0 / 16 · Correct: 0

Question 2.3.1

2.3. Compressing a sequence

What does bytes/token measure for a fixed tokenizer?

One correct option

Question 2.4.1

2.4. The tokenizer as a sequence of operations

Why does byte-level BPE need no OOV token?

One correct option

Question 2.4.2

2.4. The tokenizer as a sequence of operations

When can decode(encode(s)) fail to preserve the original spelling?

One correct option

Question 2.5.1

2.5. Worked example: from UTF-8 to a compression curve

Why does BPE encoding follow learned merge ranks rather than current pair frequency?

One correct option

Question 2.5.2

2.5. Worked example: from UTF-8 to a compression curve

Comparing only RU train (6.535 bytes/token) and EN held-out (1.317), what is supported?

One correct option

Question 2.5.3

2.5. Worked example: from UTF-8 to a compression curve

What does tokenizer fertility measure?

One correct option

Question 2.8.1

2.8. Reading o200k_harmony correctly

How does the o200k_harmony vocabulary size reconcile exactly?

One correct option

Question 2.8.2

2.8. Reading o200k_harmony correctly

What does tiktoken.encode do by default when input literally contains a registered special-token spelling?

One correct option

Question 2.8.3

2.8. Reading o200k_harmony correctly

Why is a plain token-to-ID table insufficient to reproduce a deployed tokenizer?

One correct option

Question 2.9.1

2.9. Three vocabulary sizes that answer different questions

o200k_base defines 200,000 IDs and its maximum ID is 200018. What is n_vocab?

One correct option

Question 2.9.2

2.9. Three vocabulary sizes that answer different questions

Why does a larger vocab_size not guarantee better tokenization for every language?

One correct option

Question 2.10.1

2.10. Fertility, language, and domain

What is a sound claim about grouping digits into runs of one to three characters?

One correct option

Question 2.11.1

2.11. Embeddings: reading an ID and predicting the next one

E=[[1,0],[2,0],[0,1]], h=E[0], U=E.T. Which ID has the largest logit?

One correct option

Question 2.11.2

2.11. Embeddings: reading an ID and predicting the next one

A model has vocab_size=16,384 and hidden size=512. How many parameters are in one embedding matrix?

One correct option

Question 2.11.3

2.11. Embeddings: reading an ID and predicting the next one

Let E=[[1,0],[2,0],[0,1]], IDs=[0,2,0], and all targets be zero. For L=½·sum(E[ids]²), what is the gradient of row E[0]?

One correct option

Question 2.12.1

2.12. Where the token analogy extends to other modalities

Why is a vision projector only a partial analogue of text tokenization?

One correct option