LLaMA

38 beliefs (38 IN, 0 OUT)

This topic covers Meta's Llama family of large language models, tracing their development from the original 65B-parameter LLaMA announced on 24 February 2023 (llama-first-release-24-feb-2023-65b) through six successive generations to Llama 4 in April 2025 (llama-timeline-six-generations-feb-2023-apr-2025), with a successor, Muse Spark, released by Meta Superintelligence Labs in April 2026 (muse-spark-llama-successor-april-2026). The family matters as the most widely studied open-weight model line in the NLP literature, serving as a substrate for interpretability work, deployment research, and licensing debate. Architectural scale grew steadily: training tokens went from 1.4T in Llama 1 to 15T in Llama 3 to 40T in Llama 4 Scout (llama-training-data-sizes-progression), context windows expanded from 2K to 10M tokens (llama-context-window-progression), and Llama 4 introduced Mixture-of-Experts with 17B active parameters spread across 16 (Scout) or 128 (Maverick) experts (llama4-moe-scout-maverick-params). Llama 4 also became the first natively multimodal entry in the line, whereas Llama 3.2 had bolted on a separate vision encoder (llama-4-first-natively-multimodal-in-line). Code Llama, a fine-tuned variant, was trained on 500B general code tokens plus 20B long-context tokens, with a Python-specialized branch on 100B Python-only tokens (code-llama-training-token-recipe).

On the technical side, the beliefs capture several design choices that distinguish Llama from earlier transformer families: RMSNorm replaces LayerNorm for computational simplicity (rmsnorm-llama-alternative-to-layernorm), RoPE with theta=500,000 handles positional encoding in Llama 3 (llama3-rope-theta-500k-vocab-128k), and the vocabulary expanded from 32K SentencePiece tokens in Llama 2 (llama2-7b-architecture-specs) to 128K in Llama 3 (llama3-rope-theta-500k-vocab-128k). Llama 3.1 introduced a 400B MoE model (llama-3-1-400b-moe-model-jul-2024), and Llama 4's MoE design is further contextualized by the claim that compute routing operates at both intra-model (expert activation per token) and inter-model (task-level model selection) granularities (compute-routing-operates-at-multiple-architectural-granularities). Deployment research builds on this: frontier-model serving benefits from a stacked optimization approach combining MoE sparsity, speculative decoding, PagedAttention KV-cache management, and Flash Attention tiling (production-deployment-requires-full-optimization-stack), while llama.cpp provides a CPU-only inference path with the GGUF quantization format (llama-cpp-gguf-cpu-inference). Llama also appears as an experimental substrate in cognitive and interpretability studies, including bilingual-pair filtering constrained to single LLaMA-2 BPE tokens for translation measurement (bilingual-pair-single-token-filter-llama2-vocab), single-layer cGD simulations in Shen et al. (cgd-single-random-middle-layer), validation of the Linear Representation Hypothesis across 27 concepts on LLaMA-2 7B (lrh-validated-on-llama2-7b-27-concepts), and a finding that primacy bias in list processing emerges only at around 13B parameters (llama2-primacy-bias-threshold-13b).

The licensing and distribution story is a recurring thread. Llama 2 (July 2023) was the first generation to permit commercial use, but only for entities under 700 million daily active users and under an acceptable-use policy (llama-2-first-commercial-use-jul-2023, llama2-license-700m-dau-restriction). Llama 3.1 formalized a two-document model pairing a Community License Agreement with a separate Acceptable Use Policy (llama-3-1-two-document-licensing-model). The Free Software Foundation classified Llama 3.1 as nonfree software in January 2025, citing jurisdictional trade-regulation enforcement and restrictions on popular applications (fsf-classified-llama31-nonfree-jan-2025), and the Open Source Initiative's October 2024 AI definition requires training-data disclosure that Meta does not provide (osi-ai-definition-requires-training-data-disclosure). The consensus across these beliefs is that Llama is best described as "source-available" or "open-weight" rather than open-source in the OSI or FSF sense (llama-not-open-source-osi-fsf). Distribution runs through the official site at llama.com and the meta-llama Hugging Face organization (llama-official-site-and-distribution-channels). The March 2023 BitTorrent leak of Llama 1 weights via 4chan, followed by a GitHub DMCA takedown at Meta's request, is recorded across three beliefs (llama-march-2023-4chan-leak-dmca-takedown, llama1-4chan-leak-github-dmca, llama1-weights-leaked-bittorrent-march-2023) and is noted as a catalyst for widespread adoption that Simon Willison called the LLM "Stable Diffusion moment." All beliefs in this topic are currently IN; none have been retracted.