06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · HackerNoon · 83d · 13 min read

Let's Build Our Own LLM (Part 1): Tokenization and Data Prep

A few years ago, people noticed that ChatGPT was strangely bad at counting the letters in a word, or at simple tasks like reversing a string. How could a model that writes working code fail at something a child can do? The answer is buried in a step most people never think about. The model doesn't see letters. It doesn't even see words. Before a single neuron fires, your text gets chopped into chunks called tokens, and the model only ever sees those chunks. "Unbelievable" might arrive as three pieces: un, belie, vable. "Strawberry" might arrive as str, aw, berry which is exactly why the model struggled to count its r's. It never saw individual r's in the first place. Tokenization is the

…

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 538 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks