skorotkiewicz/TinyLLM

Rust

0

2 commits

updated Sep 20, 2026

See the code

See what people are saying (1)

SourceMessageScoreDate

Show HN: The Smallest LLM

https://github.com/skorotkiewicz/TinyLLM

0

Sep 20, 2026

README

TinyLLM — the world's smallest language model family 🦡

The same bigram Markov chain, ported to three languages (original: JS by hand, Rust + Odin: with love). Training corpus: "mama dad mama cat dad mama dog".

Run

Rust (needs cargo):

python3 TinyLLM.py && node TinyLLM.js
cd rust && cargo run

Odin (needs odin compiler):

odin run odin/

Ladder to god (next rungs)

  • v1: uniform random chars ← GPT's joke version
  • v2: bigram Markov (THIS) ← learns real transitions
  • v3: trigram / n-gram ← more context, spookier output
  • v4: attention + training ← congratulations, you're building an LLM

Contributors

skorotkiewicz

2 commits

skorotkiewicz/TinyLLM

Rust

0

2 commits

updated Sep 20, 2026

See the code

See what people are saying (1)

SourceMessageScoreDate

Show HN: The Smallest LLM

https://github.com/skorotkiewicz/TinyLLM

0

Sep 20, 2026

README

TinyLLM — the world's smallest language model family 🦡

The same bigram Markov chain, ported to three languages (original: JS by hand, Rust + Odin: with love). Training corpus: "mama dad mama cat dad mama dog".

Run

Rust (needs cargo):

python3 TinyLLM.py && node TinyLLM.js
cd rust && cargo run

Odin (needs odin compiler):

odin run odin/

Ladder to god (next rungs)

  • v1: uniform random chars ← GPT's joke version
  • v2: bigram Markov (THIS) ← learns real transitions
  • v3: trigram / n-gram ← more context, spookier output
  • v4: attention + training ← congratulations, you're building an LLM

Contributors

skorotkiewicz

2 commits

Languages

Rust

35.6%

Odin

30.7%

JavaScript

22.5%

Python

11.2%