NLP Lineage

27 February 2023 · Language modelling

LLaMA

LLaMA: Open and Efficient Foundation Language Models

H. Touvron, T. Lavril, G. Izacard, et al. (14 authors)

Date
27 February 2023
What the date marks
arXiv submission
Kind
Model
Organisation
Meta AI
Access
non-commercial research
Other dates
weights leaked March 2023
Threads
In the guided tour
Chapter 8. The weights get out
Learning phases
2. How LLMs are trained; 8. Training from scratch

A turning point: 6 later milestones descend directly from it, and its descendants reach 9 of the 10 threads. How levels are decided

Drafted with Claude from the paper on 15 October 2026; reviewed by Zeeshan Arif. Read from arxiv.org (arXiv version 1 (February 2023)).

What it changed

It showed that models trained only on public data, and trained on far more tokens than usual, can match much larger closed models. Meta released the LLaMA models to researchers, and the 13-billion-parameter model, which beat GPT-3 on most tests, could run on a single GPU. Much of the open-model work of 2023 was built on them.

The problem before it

The best large language models of 2022, such as GPT-3, Chinchilla and PaLM, were not available to researchers. Most were trained on data that was not public or not documented, such as “Books – 2TB” or “Social media conversations”. The open models that existed, such as OPT and BLOOM, were not as good.

There was also a question of cost. Chinchilla had shown how to get the best model for a fixed training budget. The authors point out that this ignores the cost of running the model. For a model that many people will use, a smaller model trained for longer can be the better choice: it costs more to train but less to run. For example, Chinchilla’s analysis suggests training a 10-billion-parameter model on 200 billion tokens, but the authors found that a 7-billion-parameter model kept improving after 1 trillion tokens.

The idea

The mechanism. Train four models, of 7, 13, 33 and 65 billion parameters, on far more data than usual: 1 trillion tokens for the two smaller models and 1.4 trillion for the two larger ones.

The notation. There are no new equations. Table 2 of the paper lists the sizes: for example, the 65-billion-parameter model has 80 layers, 64 attention heads and a hidden size of 8,192.

What it showed

Reported in the paper. We read version 1 of the arXiv paper. It is a preprint. Most results are zero-shot or few-shot, with no fine-tuning.

Limits, and what came later

The limits come from the paper:

LLaMA became the base for many later models. Alpaca fine-tuned LLaMA-7B on instructions. QLoRA demonstrated cheap fine-tuning on LLaMA models. llama.cpp ported LLaMA to run on ordinary computers. LLaVA used a LLaMA-family model to read images. Position interpolation extended its context to 32,000 tokens. Llama 2 continued the series.

What to know first

How to read it

The paper is 27 pages, with 11 pages of main text. It is short and easy to read.

  1. Read section 1 for the argument about the cost of running a model.
  2. Read section 2: the data (Table 1), the architecture changes and the training.
  3. Look at Tables 3, 4 and 9 for the main comparisons.
  4. Read section 5 on bias, toxicity and truthfulness.

Expect about 1 hour for the steps above (an estimate).

In brief, from the research data

Before it

Open models were either small or, like OPT and BLOOM, expensive to run and behind the frontier.

The problem

Nobody had released a model that was both genuinely good and small enough to be useful on modest hardware.

What it introduced

Train smaller models far past compute-optimal on public data alone. LLaMA-13B outperformed GPT-3 175B.

Why it matters

The single most consequential open release. Everything in the 2023 open ecosystem is downstream of these weights.

What modern models inherit

The small-but-overtrained recipe every open model now follows.

What came next

Alpaca, llama.cpp, QLoRA and Llama 2 within months.

To understand it

Learn

  • Open weights versus open source
  • Overtraining for cheap inference
  • RoPE, SwiGLU and pre-norm in practice

Helpful first

Chinchilla scaling.

Before and after

The milestones it descends from, and the milestones that descend from it. Work developed alongside it is not counted. Weak links are left out unless you include them.

Before: where it came from

LLaMA has 20 documented ancestors across 6 chapters, reaching back to Recurrent networks in 1990. Showing its direct parents and the 9 turning points among them.

LLaMA has 20 documented ancestors across 6 chapters, reaching back to Recurrent networks in 1990. Showing all of them.

LLaMA has 28 recorded ancestors, including indirect ones, across 6 chapters, reaching back to Recurrent networks in 1990. Showing its direct parents and the 9 turning points among them.

LLaMA has 28 recorded ancestors, including indirect ones, across 6 chapters, reaching back to Recurrent networks in 1990. Showing all of them.

  1. 2023LLaMAThis milestone.
  2. 2022Chinchilla Turning pointLLaMA built directly on thisChapter 5. Scale becomes a science
  3. 2021GopherChinchilla built directly on thisChapter 5. Scale becomes a science
  4. 2021RoPE Turning pointLLaMA built directly on thisChapter 10. Reading more than you remember
  5. 2020Scaling laws Turning pointChinchilla built directly on thisChapter 5. Scale becomes a science
  6. 2019GPT-2 Turning pointScaling laws was influenced by thisChapter 4. Pretrain once, use everywhere
  7. 2019WebTextGPT-2 was influenced by thisChapter 4. Pretrain once, use everywhere
  8. 2019Transformer-XLRoPE was influenced by thisChapter 4. Pretrain once, use everywhere
  9. 2018GPT-1GPT-2 built directly on thisChapter 4. Pretrain once, use everywhere
  10. 2017Transformer Turning pointRoPE built directly on thisChapter 3. Attention, then only attention
  11. 2016Layer normTransformer built directly on thisChapter 3. Attention, then only attention
  12. 2015Residual connectionsTransformer was influenced by thisChapter 3. Attention, then only attention
  13. 2015LM pretraining Turning pointGPT-1 was influenced by thisChapter 2. Words become vectors
  14. 2015BPE tokenizationLLaMA built directly on thisChapter 2. Words become vectors
  15. 2015Luong attentionTransformer was influenced by thisChapter 3. Attention, then only attention
  16. 2014AdamTransformer was influenced by thisChapter 2. Words become vectors
  17. 2014Seq2seq Turning pointTransformer built directly on thisChapter 2. Words become vectors
  18. 2014Attention Turning pointTransformer built directly on thisChapter 3. Attention, then only attention
  19. 2014GRU / encoder-decoderAttention built directly on thisChapter 2. Words become vectors
  20. 1997LSTM Turning pointSeq2seq built directly on thisChapter 1. Language as probability
  21. 1990Recurrent networksLSTM was influenced by thisChapter 1. Language as probability
  1. 2023LLaMAThis milestone.
  2. 2022Chinchilla Turning pointLLaMA built directly on thisChapter 5. Scale becomes a science
  3. 2021GopherChinchilla built directly on thisChapter 5. Scale becomes a science
  4. 2021RoPE Turning pointLLaMA built directly on thisChapter 10. Reading more than you remember
  5. 2020Scaling laws Turning pointChinchilla built directly on thisChapter 5. Scale becomes a science
  6. 2019GPT-2 Turning pointScaling laws was influenced by thisChapter 4. Pretrain once, use everywhere
  7. 2019WebTextGPT-2 was influenced by thisChapter 4. Pretrain once, use everywhere
  8. 2019Transformer-XLRoPE was influenced by thisChapter 4. Pretrain once, use everywhere
  9. 2018GPT-1GPT-2 built directly on thisChapter 4. Pretrain once, use everywhere
  10. 2018ELMoGPT-1 was influenced by this (indirect influence)Chapter 4. Pretrain once, use everywhere
  11. 2018ULMFiTGPT-1 was influenced by this (indirect influence)Chapter 4. Pretrain once, use everywhere
  12. 2017CoVeELMo was influenced by thisChapter 3. Attention, then only attention
  13. 2017Transformer Turning pointRoPE built directly on thisChapter 3. Attention, then only attention
  14. 2017ConvS2STransformer was influenced by this (indirect influence)Chapter 3. Attention, then only attention
  15. 2016Layer normTransformer built directly on thisChapter 3. Attention, then only attention
  16. 2015Residual connectionsTransformer was influenced by thisChapter 3. Attention, then only attention
  17. 2015LM pretraining Turning pointGPT-1 was influenced by thisChapter 2. Words become vectors
  18. 2015BPE tokenizationLLaMA built directly on thisChapter 2. Words become vectors
  19. 2015Luong attentionTransformer was influenced by thisChapter 3. Attention, then only attention
  20. 2014AdamTransformer was influenced by thisChapter 2. Words become vectors
  21. 2014GloVeELMo built directly on thisChapter 2. Words become vectors
  22. 2014Seq2seq Turning pointTransformer built directly on thisChapter 2. Words become vectors
  23. 2014Attention Turning pointTransformer built directly on thisChapter 3. Attention, then only attention
  24. 2014GRU / encoder-decoderAttention built directly on thisChapter 2. Words become vectors
  25. 2013word2vecELMo was influenced by thisChapter 2. Words become vectors
  26. 2011NLP from scratchELMo was influenced by thisChapter 1. Language as probability
  27. 2003Neural LMNLP from scratch was influenced by this
    word2vec was influenced by this
    Chapter 1. Language as probability
  28. 1997LSTM Turning pointSeq2seq built directly on thisChapter 1. Language as probability
  29. 1990Recurrent networksLSTM was influenced by thisChapter 1. Language as probability

After: what it led to

LLaMA has 23 documented descendants across 5 chapters, reaching forward to Qwen3.8 in 2026. Showing its direct descendants and the 1 turning point among them.

LLaMA has 23 documented descendants across 5 chapters, reaching forward to Qwen3.8 in 2026. Showing all of them.

LLaMA has 26 recorded descendants, including indirect ones, across 5 chapters, reaching forward to Qwen3.8 in 2026. Showing its direct descendants and the 1 turning point among them.

LLaMA has 26 recorded descendants, including indirect ones, across 5 chapters, reaching forward to Qwen3.8 in 2026. Showing all of them.

  1. 2023LLaMAThis milestone.
  2. 2023llama.cppwas influenced by LLaMAChapter 9. Making it run anywhere
  3. 2023Alpacabuilt directly on LLaMAChapter 8. The weights get out
  4. 2023LLaVAbuilt directly on LLaMAChapter 11. Seeing and hearing
  5. 2023QLoRAbuilt directly on LLaMAChapter 9. Making it run anywhere
  6. 2023Position interpolationbuilt directly on LLaMAChapter 10. Reading more than you remember
  7. 2023Llama 2 Turning pointbuilt directly on LLaMAChapter 8. The weights get out
  8. 2024DeepSeek LLMwas influenced by Llama 2Chapter 8. The weights get out
  9. 2024OLMowas influenced by Llama 2Chapter 8. The weights get out
  10. 2024GRPObuilt directly on DeepSeek LLMChapter 12. Thinking longer
  11. 2024Gemmawas influenced by Llama 2Chapter 8. The weights get out
  12. 2024Llama 3built directly on Llama 2Chapter 8. The weights get out
  13. 2024Llama 3.1 405Bwas influenced by Position interpolationChapter 8. The weights get out
  14. 2024DeepSeek-V3was influenced by Llama 3.1 405BChapter 8. The weights get out
  15. 2025DeepSeek-R1built directly on GRPO
    built directly on DeepSeek-V3
    Chapter 12. Thinking longer
  16. 2025Llama 4succeeded Llama 3.1 405BChapter 8. The weights get out
  17. 2025Qwen3was influenced by DeepSeek-R1Chapter 8. The weights get out
  18. 2025Kimi K2was influenced by GRPOChapter 8. The weights get out
  19. 2025DeepSeek-V3.2built directly on DeepSeek-V3Chapter 10. Reading more than you remember
  20. 2026Qwen3.5built directly on Qwen3Chapter 8. The weights get out
  21. 2026Muse Sparksucceeded Llama 4Chapter 8. The weights get out
  22. 2026DeepSeek-V4was influenced by DeepSeek-V3Chapter 8. The weights get out
  23. 2026Kimi K3built directly on Kimi K2Chapter 8. The weights get out
  24. 2026Qwen3.8built directly on Qwen3.5Chapter 8. The weights get out
  1. 2023LLaMAThis milestone.
  2. 2023llama.cppwas influenced by LLaMAChapter 9. Making it run anywhere
  3. 2023Alpacabuilt directly on LLaMAChapter 8. The weights get out
  4. 2023LLaVAbuilt directly on LLaMAChapter 11. Seeing and hearing
  5. 2023QLoRAbuilt directly on LLaMAChapter 9. Making it run anywhere
  6. 2023Position interpolationbuilt directly on LLaMAChapter 10. Reading more than you remember
  7. 2023Llama 2 Turning pointbuilt directly on LLaMAChapter 8. The weights get out
  8. 2024DeepSeek LLMwas influenced by Llama 2Chapter 8. The weights get out
  9. 2024OLMowas influenced by Llama 2Chapter 8. The weights get out
  10. 2024GRPObuilt directly on DeepSeek LLMChapter 12. Thinking longer
  11. 2024Gemmawas influenced by Llama 2Chapter 8. The weights get out
  12. 2024Llama 3built directly on Llama 2Chapter 8. The weights get out
  13. 2024Llama 3.1 405Bwas influenced by Position interpolationChapter 8. The weights get out
  14. 2024DeepSeek-V3was influenced by Llama 3.1 405BChapter 8. The weights get out
  15. 2025DeepSeek-R1built directly on GRPO
    built directly on DeepSeek-V3
    Chapter 12. Thinking longer
  16. 2025Llama 4succeeded Llama 3.1 405BChapter 8. The weights get out
  17. 2025Qwen3was influenced by DeepSeek-R1Chapter 8. The weights get out
  18. 2025Kimi K2was influenced by DeepSeek-V3 (indirect influence)
    was influenced by GRPO
    Chapter 8. The weights get out
  19. 2025gpt-osswas influenced by DeepSeek-R1 (indirect influence)Chapter 8. The weights get out
  20. 2025GLM-4.5was influenced by DeepSeek-R1 (indirect influence)Chapter 8. The weights get out
  21. 2025DeepSeek-V3.2built directly on DeepSeek-V3Chapter 10. Reading more than you remember
  22. 2026Qwen3.5built directly on Qwen3Chapter 8. The weights get out
  23. 2026Muse Sparksucceeded Llama 4Chapter 8. The weights get out
  24. 2026DeepSeek-V4was influenced by DeepSeek-V3Chapter 8. The weights get out
  25. 2026GLM-5.2built directly on GLM-4.5Chapter 8. The weights get out
  26. 2026Kimi K3built directly on Kimi K2Chapter 8. The weights get out
  27. 2026Qwen3.8built directly on Qwen3.5Chapter 8. The weights get out

Direct links and their sources

Where it came from

Built directly on

Developed alongside

What it led to

Built on directly by

Influenced

Developed alongside

Terms