Search⌘ K

The Life of a Prompt, End to End

Summarize the complete journey of the input prompt in this lesson.

We have reached the end of our inference journey. Over the last few lessons, we have built every single component of a modern transformer decoder.

Let’s watch our simple prompt, "Twinkle, twinkle, little", complete its incredible journey from human language to a final, creative prediction.

Phase 1: Input preparation

The journey begins by translating our prompt into a format the machine can understand. This is a three-step process to create a matrix rich with both meaning and order.

  1. Tokenization: First, the raw string is broken down into a standardized list of tokens, each of which is assigned a unique integer ...