Token

  • ◷ 7 min
  • Principiante
  • 10 passi

Why models read text as numbered pieces, and why the same sentence costs more in some languages.

Questa lezione non è ancora tradotta in italiano, quindi è mostrata in inglese.

Tokens
—
Characters
—
Characters per token
—
Cost vs English
—
  • token
  • piece of a letter (byte)
  • GPT-4 tokenizer (cl100k)
  • GPT-4o tokenizer (o200k)