Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

How we got here

TLDR

Language models are simple to explain. You describe what you want in words and “automagically” a computer can make it. This can be text, audio, or images/video. Or you just talk to a computer and it just “does a thing” You’ve seen this in movies. In Iron Man Jarvis creates all sorts of cool tech by just listening to Tony Stark.

What’s fascinating is how essentially one year, 2022, this went from a research idea to an everyday capability even though Claude Shannon was writing about this in 1948.

Most folks point to the transformer architecture to explain this but it’s not as simple as

Input string -> Transformer -> Output

There’s many other pieces such as embeddings, tokenization, training methods, but also other factors like public excitement and generally available compute that all came together to make this happen.

It’s the same for bicycles. While we take them for granted now it was hundreds of years between the first concept drawing and the bicycle most of us would recognize today.

It’s also not just one innovation that made them practical but many. For a modern bicycle to be practical, useful, and available it took many innovations. A partial list includes

All these same ideas exist for language models as well. A lot of mathematical ideas, hardware, and data had to all come together to make this possible. You can argue one component is more important than the other but the fact is without all of them the bike, or the language model, would come to a grinding halt.

If SMLs are bikes, then LLMs are .....

If you think of small language model as a bike. a large language model is like a semi truck. Both move people or cargo, but one is way bigger and complex.

In some ways the ideas are the same a gear is the same idea whether it be a bike or semi truck but the scale necessitates many differences. The brakes on a truck are much more complex than those on a bike.

So let’s go through a new set of analogies But this time let’s tie the analogy to real world to the model itself.

The structure of this section

We’re going to split this section of the guide into four distinct parts

  1. (Small) Language Model Basics

  2. Large Language Model Definition and Training

  3. Large Language Model Inference and Serving

  4. Large Language Model Tuning and Evaluation