Live data from Hacker News

Show HN: Microgpt is a GPT you can visualize in the browser

microgpt.boratto.ca

11–20 of 27 posts

Re: Show HN: Microgpt is a GPT you can visualize in the browser

#11
post #10

I'd love to understand how LLMs work, but this site assumed a bit too much knowledge for me to get much from it. Looks cool though.

This is the best content I’ve found to to learn how LLMs really work : https://youtu.be/7xTGNNLPyMI?si=Gk0u4suz8pv39tP4

Re: Show HN: Microgpt is a GPT you can visualize in the browser

#14
post #12

Wtok and Wpos should be 26-dim along one of the axis but it shows a 16x16 matrix be default, fc1 instead 16x64 with the default settings (not 16x16).

good catch - i intentionally cap node visualizations at 16 so it doesn't get super long, but the sidebar shouldn't have that

Re: Show HN: Microgpt is a GPT you can visualize in the browser

#15
Amazing work! Reminded me of LLM Visualization (https://bbycroft.net/llm) except this is a lot easier to wrap my head around and that I can actually run the training loops, which makes sense given the simplicity of the original microgpt.

To give a sense of what the loss value means, maybe you can add a small explainer section as a question and add this explanation from Karpathy’s blog:

> Over 1,000 steps the loss decreases from around 3.3 (random guessing among 27 tokens: −log(1/27)≈3.3) down to around 2.37.

to reiterate that the model is being trained to predict the next token out of 27 possible tokens and is now doing better than the baseline of random guess.

Re: Show HN: Microgpt is a GPT you can visualize in the browser

#19
post #10

I'd love to understand how LLMs work, but this site assumed a bit too much knowledge for me to get much from it. Looks cool though.

I think this blog post in particular might be helpful here https://sebastianraschka.com/blog/2023/self-attention-from-s...
Post reply on HN