27/29
Part 5 of 5 · How big is itLearn and do

What interviewers ask next

Write generate. Cut to the last block_size tokens, run the model, keep only the last position's scores, pick one token, add it, repeat. Each step reruns the whole sequence. The KV cache lesson removes that waste, and the decoding lesson covers how to pick the token: temperature, top-k and top-p.

Predict

Learned positions stop at block_size. Rotary embeddings, RoPE, rotate each query and key by an angle set by its position. What does the score between two tokens then depend on?

Pick an answer above to see the rest