Hacker GitHub

← All repos

karpathy/minGPT

View on GitHub ↗ ★ 24,994 Python

A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training

21 mentions on Hacker News by 20 people: 3 stories, 18 comments · first 2020-08-17 · latest 2026-04-06

Mentions per year 21 mentions · busiest year 2023 (8)
20082026
  1. …to Andrej Karpathy's microgpt ( https://karpathy.github.io/2026/02/12/microgpt/ ) or minGPT ( https://github.com/karpathy/minGPT )?
  2. ▲ 1
    Tell HN: Karpathy's MinGPT Works on Windows and AMD (Ryzen Max)
    story by lostmsu · 2025-11-26 · 0 comments
  3. …from weight decay as standard practice. Is this no longer true? E.g., they exclude them in minGPT: https://github.com/karpathy/minGPT/blob/37baab71b9abea1b76ab...
  4. …to deal with that. That said I strongly suggest everyone follow along with a GPT2 tutorial like: https://github.com/karpathy/minGPT to get a feel for what the big boys have to deal with. Any $100,000 training run can end in failure for no…
    comment by noosphr · 2025-03-24 · in Bitter Lesson is about AI agents
  5. nanoGPT contains some new ideas. https://github.com/karpathy/minGPT is more plain
  6. …Transformer visualization: https://bbycroft.net/llm minGPT (Karpathy): https://github.com/karpathy/minGPT --- Next, some foundational textbooks for general ML and deep learning: Elements of Statistical Learning (aka the bible): h
  7. …to 48? That also seems to correspond to the Channel size C referenced in the explanation text? https://github.com/karpathy/minGPT/blob/master/mingpt/model....
    comment by riemannzeta · 2023-12-03 · in LLM Visualization
  8. …it will be great to mention in the article since people without too much context might lose it [1] https://github.com/karpathy/minGPT/blob/master/mingpt/model....
    comment by warkanlock · 2023-12-03 · in LLM Visualization
  9. https://github.com/karpathy/minGPT
    comment by supriyo-biswas · 2023-11-24 · in Learn Machine Learning
  10. …for Facebook's original use case. We ran it on such a dataset and found out that directly using https://github.com/karpathy/minGPT consistently gives a better result. So we ended up using the output of Prophet as an input feature to a…
  11. …slowdowns, what you're seeing is literally what it's spitting out in real time Here's an example https://github.com/karpathy/minGPT/blob/master/mingpt/model.... [1] Some things can be cached such as kv, but still
    comment by redox99 · 2023-02-17 · in We Found an Neuron in GPT-2
  12. Karpathy has a bunch of great resources on this front! His minGPT writeup is excellent https://github.com/karpathy/minGPT His more recent project nanoGPT which references this video is a much more capable, but still learning friendly,…
    comment by azath92 · 2023-02-09 · in A GPT in 60 Lines of NumPy
  13. …he is the person that's made a lot of cool things recently, including his own minimal GPT ( https://github.com/karpathy/minGPT ), and the much smaller version of it ( https://github.com/karpathy/nanoGPT ). But of course, since we are in…
    comment by tysam_and · 2023-02-09 · in A GPT in 60 Lines of NumPy
  14. …exactly, if there would be more to it I think he would be the kind of person to point it out. [0] https://github.com/karpathy/minGPT/tree/master/mingpt
    comment by quonn · 2022-12-11 · in The GPT Architecture, on a Napkin
  15. A small, very clearly written and well commented implementation: https://github.com/karpathy/minGPT
    comment by macleginn · 2022-12-11 · in The GPT Architecture, on a Napkin
  16. ▲ 223
    MinGPT: Minimal PyTorch re-implementation of GPT
    story by memorable · 2022-09-06 · 24 comments
  17. He contributed some commits to his excellent https://github.com/karpathy/minGPT during that time. BTW, Andrej, if you're reading this, it is not just excellent it is beyond excellent. I do a lot of tinkering with transformers and other…
    comment by lostmsu · 2022-07-14 · in Andrej Karpathy leaves Tesla
  18. …someone at Anthropic [4]. [1] https://www.oreilly.com/library/view/natural-language-proces... [2] https://github.com/karpathy/minGPT [3] https://jalammar.github.io/illustrated-transformer/ [4] https://blog.nelhage.com/post/transformers-for-…
    comment by moyix · 2022-04-16 · in The Principles of Deep Learning Theory
  19. Here's another simple implementation: https://github.com/karpathy/minGPT
  20. …) And here's a super simple implementation of GPT by Andrej Karpathy. [link]( https://github.com/karpathy/minGPT/blob/master/mingpt/model.... )
    comment by silveraxe93 · 2020-10-26 · in Rethinking Attention with Performers
  21. ▲ 374
    Karpathy's MinGPT
    story by aliabd · 2020-08-17 · 102 comments