Production model

Llama 1 65B

Architecture

Positional encoding RoPE (base 10000)
Norm placement Pre-Norm
Norm type RMSNorm
QK-Norm no
Activation SwiGLU
Attention MHA (64 query heads = 64 KV heads)
MoE
Other 80 layers, First open-weights model to combine RMSNorm + RoPE + SwiGLU as a deliberate stack, Non-commercial research license (restrictions later relaxed in Llama 2)

Techniques used

Llama 1 65B (February 2023) is the original Llama and the model that established the Pre-Norm RMSNorm + RoPE + SwiGLU triple as the open-weights consensus stack. Per the Llama 1 paper’s Table 2, each of those choices was justified empirically against the alternatives available at the time:

Attention is still MHA — 64 query heads, 64 KV heads, head dim 128. The decision to move to GQA came with Llama 2; the uptraining technique that made the switch cheap was from Ainslie et al. 2023, published a few months later.

Base context length is 2K. Subsequent extension to 32K and beyond came post-release via fine-tuning recipes like PI and YaRN.

For the GQA-era Llama, see Llama 2 70B and Llama 3.1 70B.

Sources

Export

BibTeX
@article{arxiv_2302_13971,
  title         = {Llama 1 65B},
  author        = {Meta},
  year          = {2023},
  eprint        = {2302.13971},
  archivePrefix = {arXiv},
  url           = {https://arxiv.org/abs/2302.13971}
}
CSL JSON
{
  "id": "arxiv_2302_13971",
  "type": "article-journal",
  "title": "Llama 1 65B",
  "author": [
    {
      "literal": "Meta"
    }
  ],
  "issued": {
    "date-parts": [
      [
        2023
      ]
    ]
  },
  "URL": "https://arxiv.org/abs/2302.13971",
  "number": "2302.13971",
  "source": "arXiv"
}
RIS
TY  - JOUR
TI  - Llama 1 65B
AU  - Meta
PY  - 2023
JO  - arXiv
AN  - arXiv:2302.13971
UR  - https://arxiv.org/abs/2302.13971
ER  - 

Models like this