Skip to content

sueszli/microgpt-benchmarks-game

Repository files navigation

░█▄█░▀█▀░█▀▀░█▀▄░█▀█░█▀▀░█▀█░▀█▀░░░█▀▄░█▀▀░█▀█░█▀▀░█░█░█▄█░█▀█░█▀▄░█░█░█▀▀░░░█▀▀░█▀█░█▄█░█▀▀
░█░█░░█░░█░░░█▀▄░█░█░█░█░█▀▀░░█░░░░█▀▄░█▀▀░█░█░█░░░█▀█░█░█░█▀█░█▀▄░█▀▄░▀▀█░░░█░█░█▀█░█░█░█▀▀
░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░░░░▀░░░░▀▀░░▀▀▀░▀░▀░▀▀▀░▀░▀░▀░▀░▀░▀░▀░▀░▀░▀░▀▀▀░░░▀▀▀░▀░▀░▀░▀░▀▀▀


community inference benchmarks game for karpathy's microgpt.
a minimal gpt trained on a names dataset: https://karpathy.github.io/2026/02/12/microgpt/

can you beat me? to submit: add a .py file prefixed with your username and open a pr.
any python library is welcome, but no other language embedded within the file.


# speedup over original version

  sueszli_exojit  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 1903x
  sueszli_numpy   ▇▇▇▇▇▇▇▇▇▇▇▇ 378x
  sueszli_torch   ▇▇▇▇▇▇▇▇▇▇▇ 360x
  sueszli_jax     ▇▇▇▇ 132x
  sueszli_plain   ▏ 9x
  original        ▏ 1x


# leaderboard

  name            mean μs  ±σ     min    max   
  ──────────────  ───────  ─────  ─────  ──────
  sueszli_exojit       35      0     35      35
  sueszli_numpy       176    133    140    3011
  sueszli_torch       185     25    165     391
  sueszli_jax         503      0    503     503
  sueszli_plain      7042    720   6670   18530
  original          66601  20604  20522  179583

About

gpt inference optimization game

Topics

Resources

License

Stars

Watchers

Forks

Contributors