Post

Lil' gallery of some of the visuals to entice you to click and justify my continued employment. The post starts by introducing what models actually _are_ under the hood, and what leads them to become so large they can't fit in your laptop's RAM.

Then I talk about how computers represent floating point numbers, the trade-offs involved, and how LLMs kinda don't care that much about precision (but not in that way.)

As part of the work on this post, I opened up 6 popular open models and analysed their parameters. This is a histogram that shows that model parameter values cluster close to 0, with the vast majority of values being very small.

There were a tonne of fun ways to visualise the precision of floats as you use fewer bits to represent them. This one shows the round-to-nearest behaviour between 16-, 8-, and 4-bit floats.

0 reposts5 likes

This diagram seems a bit slow on my system (moving the slider is rather laggy). Not a deal breaker at all, the article is a delight, but maybe something you might consider (my PC is rather beefy, or well, it was 3 years ago I guess :D) btw I'm running Firefox.

I suspect it was the large number of small draw calls. I split the canvas into 2, one underneath that just draws all the little ticks, and one on top for the movable bar and the coloured ticks.

Huh, it is. It's sluggish for me on Firefox but not on Chrome. I'll take a look! Thanks for letting me know.

I also had a lot of fun learning the different ways that LLM degradation is measured after they've been compressed to a quarter or even an eighth of their original size. One of these measures, KL divergence, is all about how well 2 probability distributions overlap.

If you read it, I'd love your feedback! I'm always trying to improve along all vectors: writing, visuals, accessibility, depth, story arc. ❤️

It's great! I was planning to start writing a series on quantization for my blog but this is so much better 😅 Now I don't need to write anything, I can just link to this.

There’s so much stuff in the quantisation field that you could talk about, plenty of room for a series!

This is AWESOME ❤️👌🏻👍🏻 and would probably be super helpful in explaining how a number can be represented in different bases.