Llama 3's Core Architectural Advancements

Llama 3 achieves its performance edge through training on over 15 trillion tokens, an optimized 128K-token vocabulary for better compression, and a doubled context length of 8,192 tokens. It also incorporates Grouped-Query Attention for efficiency.

The top 3

  1. Universal Grouped-Query Attention for Faster Inference: Llama 3 integrates Grouped-Query Attention (GQA) across all its model sizes (8B and 70B), a significant upgrade from Llama 2, where GQA was only applied to larger variants. This architectural enhancement drastically reduces KV cache memory usage and improves inference efficiency, enabling faster processing and longer context windows.
  2. Expanded 128K-Token Vocabulary for Enhanced Language Processing: Llama 3 utilizes a new tokenizer with a 128,000-token vocabulary, a substantial increase from Llama 2's 32,000, leading to more efficient text encoding and improved multilingual capabilities.
  3. Massive 15 Trillion Token Training Dataset: Llama 3 was pre-trained on over 15 trillion tokens from publicly available data, a seven-fold increase over Llama 2, incorporating rigorous filtering for quality and diversity, including 4x more code and over 30 non-English languages.

Sources

Open the full topic