AI Policy Wiki
Dashboard
⚲

LLaMA: Open and Efficient Foundation Language Models (Touvron et al., Meta AI, February 2023)

high confidence · updated 2026-08-01

Meta AI's paper introducing the LLaMA family (7B–65B), trained only on publicly available data, reporting that LLaMA-13B outperforms GPT-3 (175B) on most benchmarks and LLaMA-65B is competitive with Chinchilla-70B and PaLM-540B. Argues that for a fixed inference budget the preferred model is the smaller one trained on more tokens.

"LLaMA: Open and Efficient Foundation Language Models" is a paper submitted to arXiv on February 27, 2023 (arXiv:2302.13971) by fourteen authors at Meta AI, with Hugo Touvron, Thibaut Lavril, Gautier Izacard, Edouard Grave and Guillaume Lample marked as equal contributors. It introduces a family of foundation language models ranging from 7B to 65B parameters and states two claims in its abstract: "that it is possible to train state-of-the-art models using publicly available datasets exclusively, without resorting to proprietary and inaccessible datasets," and that "LLaMA-13B outperforms GPT-3 (175B) on most benchmarks, and LLaMA-65B is competitive with the best models, Chinchilla-70B and PaLM-540B." The paper closes the abstract with "We release all our models to the research community."

The inference-budget argument

The paper's framing argument is that the scaling-law objective of Hoffmann et al. (2022) determines how to scale dataset and model size for a given training compute budget, but "disregards the inference budget, which becomes critical when serving a language model at scale." Its statement of the alternative: "given a target level of performance, the preferred model is not the fastest to train but the fastest at inference, and although it may be cheaper to train a large model to reach a certain level of performance, a smaller one trained longer will ultimately be cheaper at inference." The authors report an empirical basis for training past the Chinchilla-optimal point: "although Hoffmann et al. (2022) recommends training a 10B model on 200B tokens, we find that the performance of a 7B model continues to improve even after 1T tokens."

The stated purpose of the release is access: "We believe that this model will help democratize the access and study of LLMs, since it can be run on a single GPU."

Training data

The paper reports a training mixture drawn only from publicly available sources compatible with open-sourcing, totalling roughly 1.4T tokens after tokenization, with each token used once except for Wikipedia and Books, over which approximately two epochs are performed.

DatasetSampling proportionEpochsDisk size
CommonCrawl67.0%1.103.3 TB
C415.0%1.06783 GB
Github4.5%0.64328 GB
Wikipedia4.5%2.4583 GB
Books4.5%2.2385 GB
ArXiv2.5%1.0692 GB
StackExchange2.0%1.0378 GB

The paper describes the preprocessing for each: five CommonCrawl dumps from 2017 to 2020 through the CCNet pipeline with line-level deduplication, fastText language identification, n-gram quality filtering and a linear classifier that discards pages not classified as Wikipedia references; GitHub filtered to Apache, BSD and MIT licensed projects; Wikipedia dumps from June–August 2022 across 20 languages in Latin or Cyrillic script; and books from Project Gutenberg together with "the Books3 section of ThePile (Gao et al., 2020)," deduplicated at book level for more than 90% content overlap. The inclusion of Books3 is the detail most often cited in the later copyright litigation over training corpora; see AI Copyright. Tokenization uses byte-pair encoding via SentencePiece, splitting all numbers into individual digits and falling back to bytes for unknown UTF-8 characters.

Architecture and compute

The models are transformers with three named modifications, each attributed to prior work: pre-normalization using RMSNorm, taken from GPT-3, normalizing the input rather than the output of each sub-layer for training stability; the SwiGLU activation function from PaLM, at dimension 2/3 · 4d rather than PaLM's 4d; and rotary positional embeddings (RoPE) from GPT-Neo, replacing absolute positional embeddings at each layer. Training uses AdamW with β₁ = 0.9, β₂ = 0.95, a cosine schedule to a final rate of 10% of maximum, weight decay 0.1, gradient clipping 1.0, and 2,000 warmup steps.

ParamsDimensionHeadsLayersLearning rateBatch sizeTokens
6.7B409632323.0e−44M1.0T
13.0B512040403.0e−44M1.0T
32.5B665652601.5e−44M1.4T
65.2B819264801.5e−44M1.4T

The authors estimate they used 2,048 A100-80GB GPUs over approximately five months to develop the models, which under their assumptions would have cost around 2,638 MWh and produced a total emission of 1,015 tCO₂eq, computed using the US national average carbon-intensity factor of 0.385 kg CO₂eq/KWh rather than any particular data center's grid.

Reported results

Evaluation results the document states for which there is no separate benchmark page; results on benchmarks that have a page are recorded there and cite this page. Scores and settings are as printed in the document.

EvaluationModelScoreSettingSection
MBPP — pass@1LLaMA 7B17.73-shot prompts, temperature 0.1; developer-reportedTable 8 (§3.5)
MBPP — pass@1LLaMA 13B22.0developer-reportedTable 8 (§3.5)
MBPP — pass@1LLaMA 33B30.2developer-reportedTable 8 (§3.5)
MBPP — pass@1LLaMA 65B37.7developer-reportedTable 8 (§3.5)
MBPP — pass@1LaMDA 137B14.8reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@1PaLM 8B5.0read from figures (∗); reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@1PaLM 62B21.4reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@1PaLM 540B36.8reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@80LLaMA 7B56.2temperature 0.8; developer-reportedTable 8 (§3.5)
MBPP — pass@80LLaMA 13B64.0developer-reportedTable 8 (§3.5)
MBPP — pass@80LLaMA 33B73.4developer-reportedTable 8 (§3.5)
MBPP — pass@80LLaMA 65B76.8developer-reportedTable 8 (§3.5)
MBPP — pass@80LaMDA 137B62.4reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@80PaLM 8B35.7read from figures (∗); reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@80PaLM 62B63.2read from figures (∗); reported by Meta in the LLaMA paperTable 8 (§3.5)
MBPP — pass@80PaLM 540B75.0reported by Meta in the LLaMA paperTable 8 (§3.5)
Natural Questions — 0-shotLLaMA 7B16.8exact match, closed book; developer-reported (13B 20.1, 33B 24.9, 65B 23.8)Table 4 (§3.2)
Natural Questions — 1-shotLLaMA 65B31.0developer-reported (7B 18.7, 13B 23.4, 33B 28.3)Table 4 (§3.2)
Natural Questions — 5-shotLLaMA 65B35.0developer-reported (7B 22.0, 13B 28.1, 33B 32.9)Table 4 (§3.2)
Natural Questions — 64-shotLLaMA 65B39.9developer-reported (7B 26.1, 13B 31.9, 33B 36.0)Table 4 (§3.2)
Natural Questions — 64-shotGPT-3 175B29.90-shot 14.6, 1-shot 23.0; reported by Meta in the LLaMA paperTable 4 (§3.2)
Natural Questions — 64-shotGopher 280B28.20-shot 10.1, 5-shot 24.5; reported by Meta in the LLaMA paperTable 4 (§3.2)
Natural Questions — 64-shotChinchilla 70B35.50-shot 16.6, 5-shot 31.5; reported by Meta in the LLaMA paperTable 4 (§3.2)
Natural Questions — 64-shotPaLM 540B39.60-shot 21.2, 1-shot 29.3; PaLM 8B 14.6 and PaLM 62B 27.6 at 64-shot; reported by Meta in the LLaMA paperTable 4 (§3.2)
TriviaQA — 0-shotLLaMA 65B68.2exact match on the filtered dev set; developer-reported (7B 50.0, 13B 56.6, 33B 65.1)Table 5 (§3.2)
TriviaQA — 1-shotLLaMA 65B71.6developer-reported (7B 53.4, 13B 60.5, 33B 67.9)Table 5 (§3.2)
TriviaQA — 5-shotLLaMA 65B72.6developer-reported (7B 56.3, 13B 63.1, 33B 69.9)Table 5 (§3.2)
TriviaQA — 64-shotLLaMA 65B73.0developer-reported (7B 57.6, 13B 64.0, 33B 70.4)Table 5 (§3.2)
TriviaQA — 64-shotGopher 280B57.20-shot 43.5, 5-shot 57.0; reported by Meta in the LLaMA paperTable 5 (§3.2)
TriviaQA — 64-shotChinchilla 70B64.60-shot 55.4, 5-shot 64.1; reported by Meta in the LLaMA paperTable 5 (§3.2)

Provenance

The arXiv abstract page and the full 27-page PDF were retrieved August 1, 2026 by direct HTTPS fetch (HTTP 200); PDF text was extracted with pdfplumber. Firecrawl was out of credits during this cycle. The capture covers pages 1–12, through the main results and the responsible-AI evaluations. The extraction does not preserve inter-word spacing in the two-column body text or table layout, and omits figures; tables above were transcribed from the extracted rows. Only v1 (submitted 27 Feb 2023) is listed on the abstract page.

Relationships

  • related: Meta AI — the publisher.
  • related: LLaMA 1 (Meta AI) — the models the paper introduces.
  • depends-on: Scaling Laws — the Hoffmann et al. result the paper's framing argument modifies by adding the inference budget.
  • related: Open-Weight Frontier Models — the release practice this paper's family is the origin case for.
  • related: AI Copyright — the Books3 and CommonCrawl composition later at issue in copyright litigation.
  • related: Llama 3 (Meta) — a later generation of the same family.