Open weightsInstruction tuning and chat

Llama 2 (2023): Meta's open weights model for commercial use

Event date

On 18 July 2023 Meta released Llama 2, pretrained and chat tuned models with up to 70 billion parameters, free for research and commercial use under a custom licence. It made capable open weights models usable by companies for the first time at scale.

Milestone 30 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

Pretraining tokens per model (Meta model card)
2 trilliongithub.com
Largest model size (Meta)
70 billion parametersarxiv.org

What was released

Meta published pretrained weights and starter code for Llama 2, plus conversational versions called Llama 2 Chat. The model card lists three sizes, 7, 13 and 70 billion parameters, each trained on 2 trillion tokens with a 4,000 token context. Pretraining data ended in September 2022, and the 70 billion model used grouped query attention.

Microsoft was named Meta's preferred partner and offered the models in the Azure AI catalogue. They were also available through Amazon Web Services and Hugging Face.

Sources: ai.meta.com, github.com

The licence

Llama 2 was free for research and commercial use, which LLaMA had not been. The licence was still a custom one, not a standard open source licence. A company whose products had more than 700 million monthly active users in the month before 18 July 2023 had to ask Meta for a licence, which Meta could refuse.

The licence also forbids using Llama materials or their outputs to improve any other large language model, apart from Llama 2 and its derivatives, and requires users to follow Meta's acceptable use policy.

Sources: ai.meta.com

The paper and its claims

The accompanying paper, posted on 18 July 2023, covers models from 7 to 70 billion parameters. The authors said Llama 2 Chat outperformed open source chat models on most benchmarks they tested, and that on human evaluations of helpfulness and safety it could be a suitable substitute for closed models. Those are the authors' own comparisons.

The paper was also notable for describing the fine tuning and safety work in detail, which gave the open community a recipe to follow.

Sources: arxiv.org

Limits and caveats

Llama 2 was open weights rather than open source in the strict sense: users received the models and code, but under conditions Meta wrote itself. The 4,000 token context was modest next to the 100,000 tokens that Anthropic offered the same week, and the model card says pretraining data stopped in September 2022. Meta's blog post names Microsoft Azure, Amazon Web Services and Hugging Face as places to get the models, so Llama 2 was usable through several clouds from day one. Meta's own chat evaluations are the main source for its safety claims; they should be read as lab reported.

Sources: ai.meta.com, github.com

Why it mattered

  • It let companies build products on strong open weights without a separate deal, which broadened the market for self hosting.
  • It gave the open community a documented recipe for chat tuning and safety work.
  • It sharpened the debate over what open source means, because the licence set conditions that standard open source licences do not.

Questions

When was Llama 2 released?
Meta released Llama 2 on 18 July 2023.
Is Llama 2 free for commercial use?
Yes, under Meta's custom licence. Companies with more than 700 million monthly active users must request a separate licence.
What sizes did Llama 2 come in?
7, 13 and 70 billion parameters, each with a pretrained and a chat version.
How much data was Llama 2 trained on?
The model card lists 2 trillion tokens for each of the 7, 13 and 70 billion parameter models.

About this page

Part of our LLM history timeline. The event happened on 18 July 2023; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Meta AI, Llama 2 announcement
  2. Touvron et al., Llama 2: Open Foundation and Fine-Tuned Chat Models (arXiv)
  3. Meta, Llama 2 model card (GitHub)
  4. Meta, Llama 2 community licence agreement

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.