~/talk

A Very Small Language Model

Talkat ACCU 2025 · 2025-04-01..04-04· [large-language-models]
slides:none on file

A working tiny language model gets built in about an hour using a JavaScript Markov chain implementation: a tokenizer generator, a Chain class that records follower counts and simple weighted sampling. Trained on a personal Mastodon dump (~46,576 words corpus) plus novels, it yields plausible single sentences; adding start/end sentence markers improves coherence, widening the n‑gram window to two helps, but widening further collapses into regurgitating training text. Runtime training, POS tags and recency weighting are viable extensions.

AI-written summary · about

  1. 0:00Introduction
  2. 10:10Next word prediction limits
  3. 13:20Markov chains basics
  4. 22:32Text generator in JS
  5. 30:12Training with text corpus
  6. 38:09Output with sentence markers
  7. 43:49Advanced text enhancements
  8. 53:04Combining text sources
  9. 58:42Window size for coherence
  10. 1:00:08Small systems and risks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.