The number of sets of weights (or parameters) in an LLM depends on its specific architecture, but is typically very large. Some key factors that determine an LLM's number of parameters include:
-
Size of the vocabulary. The number of unique words/tokens the LLM was trained on. More tokens require more parameters to model.
-
Number of layers. Most LLMs have multiple neural network layers (transformer layers). Each layer contains many parameters. More layers mean more parameters.
-
Hidden state size. The size of the hidden representations within each layer. Bigger hidden states require more parameters.
-
Number of attention heads. In transformer models, the number of "attention heads" in each layer also contributes many parameters. More attention heads mean more parameters.
As an example, here are the sizes of some well-known LLMs:
• BERT (2018): 110M parameters. 12 layers, 768 hidden size, 12 attention heads, 30,000 tokens.
• GPT-3 (2020): 175B parameters. 96 layers, 12288 hidden size, 12 attention heads, 50,000 tokens.
• Switch Transformer (2021): 1.6T parameters. 60 layers, 25600 hidden size, 32 attention heads, 250,000 tokens.
• Gopher (2022): 280B parameters. 64 layers, 8192 hidden size, 32 attention heads, 50,000 tokens.
So you can see these LLMs contain hundreds of millions to trillions of parameters, depending on their scale! All of these parameters must be learned from huge datasets during training.
The huge number of parameters is what allows LLMs to develop a rich, complex understanding of language with many nuanced patterns represented in their weights. But it also means they require enormous amounts of data and computing power to train effectively.
The number of parameters in LLMs will likely continue to grow over time as datasets scale up and computing power increases. But there is also interest in developing more efficient architectures that can achieve strong performance with fewer parameters.
So in summary, the number of sets of weights (parameters) in an LLM depends on its specific architecture and design choices, but is typically in the hundreds of millions to trillions. These huge numbers of parameters are what enable LLMs to learn the complexities of language, but also require enormous resources to train.