Grokking AI: 50 Questions Every Engineer Asks
Vote

0% completed

​

Why Can an LLM Write Code but Fail at Counting Letters?

Short answer: A model receives tokens and not letters. It produces its answer one token at a time, and the calculation of one token has no place to keep partial results. Code is a pattern that the model has read millions of times in its training text. Counting letters and multiplying large numbers are exact procedures, and a model that works this way does them poorly. The reliable fix is that the model writes code and a tool runs it.

Look at the two rows. The top row shows what you see, which is 10 separate letters

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content