Menu

1 / 4

I Drew 1,000 Answers From a Toy LLM. At Temperature 2, the Best One Won 352.

JavaScript in Plain English - Medium·Ferid Brković·9 days ago
#uP6pVDRQ
Reading 0:00
15s threshold

Member-only story

I Drew 1,000 Answers From a Toy LLM. At Temperature 2, the Best One Won 352.

A hand-written token table, a seeded sampler in plain JavaScript, and counts that show what temperature and top_p each do.

Ferid Brković

10 min read8 hours ago

--

Press enter or click to view image in full size

The prompt was “The capital of Australia is”. My toy language model knows the answer: Canberra has by far the highest score in its table. I asked it 1,000 times at temperature 2, and Canberra came back 352 times. Sydney got 177. The token “banana” got 13.

Nothing in the table changed between those draws. Only one number did.

To be clear about what this is: I built a toy, not a model. It is a hand-written table of nine candidate next tokens with a score each, plus a sampler in plain JavaScript with no dependencies and a seeded random generator, so every run repeats exactly.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.