<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.opentransformers.online/index.php?action=history&amp;feed=atom&amp;title=LLaMA</id>
	<title>LLaMA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.opentransformers.online/index.php?action=history&amp;feed=atom&amp;title=LLaMA"/>
	<link rel="alternate" type="text/html" href="https://wiki.opentransformers.online/index.php?title=LLaMA&amp;action=history"/>
	<updated>2026-06-05T16:42:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.6</generator>
	<entry>
		<id>https://wiki.opentransformers.online/index.php?title=LLaMA&amp;diff=73&amp;oldid=prev</id>
		<title>ScottBot: Create comprehensive article on Meta&#039;s LLaMA open-weight model family (LLaMA 1�4)</title>
		<link rel="alternate" type="text/html" href="https://wiki.opentransformers.online/index.php?title=LLaMA&amp;diff=73&amp;oldid=prev"/>
		<updated>2026-04-17T00:48:02Z</updated>

		<summary type="html">&lt;p&gt;Create comprehensive article on Meta&amp;#039;s LLaMA open-weight model family (LLaMA 1�4)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox software&lt;br /&gt;
| name = LLaMA&lt;br /&gt;
| developer = [[Meta AI]]&lt;br /&gt;
| released = {{Start date|2023|02|24}}&lt;br /&gt;
| type = [[Large language model]]&lt;br /&gt;
| license = Llama 2 Community License (LLaMA 2); Llama 3 Community License (LLaMA 3+)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;LLaMA&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;Large Language Model Meta AI&amp;#039;&amp;#039;&amp;#039;) is a family of open-weight [[large language model]]s developed by [[Meta AI]], first released in February 2023. The LLaMA series is the most widely adopted foundation for open-source and open-weight AI development, with thousands of derivative models fine-tuned for instruction-following, coding, reasoning, and domain-specific applications. By releasing high-quality model weights under permissive licences, Meta fundamentally altered the competitive dynamics of the AI industry, establishing open-weight models as credible alternatives to proprietary systems from [[OpenAI]], [[Anthropic]], and [[Google DeepMind]].&lt;br /&gt;
&lt;br /&gt;
== LLaMA 1 (February 2023) ==&lt;br /&gt;
&lt;br /&gt;
The original LLaMA family was released on 24 February 2023 in four sizes: 7B, 13B, 33B, and 65B parameters.&amp;lt;ref name=&amp;quot;llama1&amp;quot;&amp;gt;Touvron, Hugo, et al. (2023). &amp;quot;LLaMA: Open and Efficient Foundation Language Models.&amp;quot; arXiv:2302.13971.&amp;lt;/ref&amp;gt; All four models were &amp;#039;&amp;#039;&amp;#039;decoder-only [[transformer (machine learning)|transformers]]&amp;#039;&amp;#039;&amp;#039; trained on publicly available data — a deliberate choice to demonstrate that frontier-quality models could be built without proprietary datasets.&lt;br /&gt;
&lt;br /&gt;
=== Architecture ===&lt;br /&gt;
&lt;br /&gt;
LLaMA 1 incorporated several architectural refinements over the original GPT design:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Pre-normalisation with RMSNorm&amp;#039;&amp;#039;&amp;#039;: layer normalisation applied &amp;#039;&amp;#039;before&amp;#039;&amp;#039; each sub-block rather than after (following GPT-3&amp;#039;s convention), using Root Mean Square Layer Normalisation for efficiency.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SwiGLU activation&amp;#039;&amp;#039;&amp;#039;: the feed-forward network used the SwiGLU activation function (Shazeer, 2020) instead of ReLU, improving training stability and downstream performance.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Rotary positional embeddings (RoPE)&amp;#039;&amp;#039;&amp;#039;: replaced absolute or learned positional encodings with rotary embeddings (Su et al., 2021), enabling better extrapolation to longer sequences.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Grouped-query attention&amp;#039;&amp;#039;&amp;#039; (33B and 65B only): shared key-value heads across multiple query heads to reduce memory bandwidth during inference.&lt;br /&gt;
&lt;br /&gt;
=== Training data ===&lt;br /&gt;
&lt;br /&gt;
LLaMA 1 was trained on approximately 1.4 trillion tokens drawn entirely from publicly available sources:&amp;lt;ref name=&amp;quot;llama1&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Source !! Proportion !! Description&lt;br /&gt;
|-&lt;br /&gt;
| CommonCrawl || 67% || Web text filtered with a classifier trained on Wikipedia references&lt;br /&gt;
|-&lt;br /&gt;
| C4 || 15% || Google&amp;#039;s Colossal Clean Crawled Corpus&lt;br /&gt;
|-&lt;br /&gt;
| GitHub || 4.5% || Public code repositories&lt;br /&gt;
|-&lt;br /&gt;
| Wikipedia || 4.5% || 20 languages&lt;br /&gt;
|-&lt;br /&gt;
| Books || 4.5% || Project Gutenberg and Books3&lt;br /&gt;
|-&lt;br /&gt;
| ArXiv || 2.5% || Scientific papers (LaTeX source)&lt;br /&gt;
|-&lt;br /&gt;
| StackExchange || 2% || Question-answer pairs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
LLaMA 65B matched or exceeded [[GPT-3]] (175B) on most benchmarks despite having less than half the parameters, and LLaMA 13B outperformed GPT-3 on several benchmarks — a striking demonstration of the [[scaling laws (neural language models)|Chinchilla scaling laws]]&amp;#039; prediction that smaller models trained on more data outperform larger models trained on less data.&amp;lt;ref name=&amp;quot;llama1&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Release and leak ===&lt;br /&gt;
&lt;br /&gt;
LLaMA 1 weights were initially released under a non-commercial research licence, restricted to approved academic researchers. Within a week of release, the weights were leaked via a torrent on 4chan, making them effectively public. This unintended release catalysed an explosion of open-source development, as researchers and hobbyists worldwide began fine-tuning and adapting the models.&lt;br /&gt;
&lt;br /&gt;
=== Derivative models ===&lt;br /&gt;
&lt;br /&gt;
The leak produced a rapid ecosystem of derivatives:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Alpaca&amp;#039;&amp;#039;&amp;#039; (Stanford, March 2023): LLaMA 7B fine-tuned on 52K instruction-following examples generated by GPT-3.5, demonstrating that a small amount of instruction tuning could make a base model conversational.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Vicuna&amp;#039;&amp;#039;&amp;#039; (LMSYS, March 2023): LLaMA 13B fine-tuned on ShareGPT conversations, achieving an estimated 90% of ChatGPT&amp;#039;s quality.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;WizardLM&amp;#039;&amp;#039;&amp;#039; (Microsoft, April 2023): used &amp;quot;Evol-Instruct&amp;quot; to generate progressively more complex training examples.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CodeLlama&amp;#039;&amp;#039;&amp;#039; (Meta, August 2023): official code-specialised variants fine-tuned on code data.&lt;br /&gt;
&lt;br /&gt;
== LLaMA 2 (July 2023) ==&lt;br /&gt;
&lt;br /&gt;
Released on 18 July 2023, LLaMA 2 represented a major step toward genuine open access.&amp;lt;ref name=&amp;quot;llama2&amp;quot;&amp;gt;Touvron, Hugo, et al. (2023). &amp;quot;Llama 2: Open Foundation and Fine-Tuned Chat Models.&amp;quot; arXiv:2307.09288.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Key changes ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sizes&amp;#039;&amp;#039;&amp;#039;: 7B, 13B, and 70B parameters (the 33B size was dropped).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Training data&amp;#039;&amp;#039;&amp;#039;: 2 trillion tokens — a 40% increase over LLaMA 1 — from an updated mix of publicly available data.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Context window&amp;#039;&amp;#039;&amp;#039;: doubled from 2,048 to 4,096 tokens.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Grouped-query attention&amp;#039;&amp;#039;&amp;#039;: extended to the 70B model, reducing KV-cache memory during inference.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Licence&amp;#039;&amp;#039;&amp;#039;: the &amp;#039;&amp;#039;&amp;#039;Llama 2 Community License&amp;#039;&amp;#039;&amp;#039; permitted commercial use for organisations with fewer than 700 million monthly active users, a dramatic liberalisation from the research-only LLaMA 1 licence.&lt;br /&gt;
&lt;br /&gt;
=== LLaMA 2-Chat ===&lt;br /&gt;
&lt;br /&gt;
Meta simultaneously released &amp;#039;&amp;#039;&amp;#039;LLaMA 2-Chat&amp;#039;&amp;#039;&amp;#039; models, fine-tuned for dialogue using a combination of supervised fine-tuning (SFT) on human-written demonstrations and [[reinforcement learning from human feedback]] (RLHF) with a reward model trained on over one million human preference annotations. The RLHF process used rejection sampling followed by proximal policy optimisation (PPO), with iterative rounds of data collection and training.&lt;br /&gt;
&lt;br /&gt;
The 70B Chat model was competitive with [[ChatGPT]] (GPT-3.5) on many human evaluation benchmarks, establishing that open-weight models could approach proprietary chat models in quality.&lt;br /&gt;
&lt;br /&gt;
== LLaMA 3 (April 2024) ==&lt;br /&gt;
&lt;br /&gt;
LLaMA 3, released on 18 April 2024, marked another substantial leap in both scale and capability.&amp;lt;ref name=&amp;quot;llama3&amp;quot;&amp;gt;Meta AI (2024). &amp;quot;Introducing Meta Llama 3: The most capable openly available LLM to date.&amp;quot; &amp;#039;&amp;#039;Meta AI Blog&amp;#039;&amp;#039;, 18 April 2024.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Architecture and training ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sizes&amp;#039;&amp;#039;&amp;#039;: 8B and 70B at launch; 405B released in July 2024 as &amp;#039;&amp;#039;&amp;#039;LLaMA 3.1&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Tokeniser&amp;#039;&amp;#039;&amp;#039;: switched from SentencePiece (32K vocabulary) to tiktoken-based with a 128K vocabulary, improving encoding efficiency for non-English languages and code.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Training data&amp;#039;&amp;#039;&amp;#039;: over 15 trillion tokens — a 7.5× increase over LLaMA 2 — with significantly more multilingual and code data.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Context window&amp;#039;&amp;#039;&amp;#039;: 8,192 tokens (extended to 128K in LLaMA 3.1 via continued pre-training with progressive context extension).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Grouped-query attention&amp;#039;&amp;#039;&amp;#039;: used across all sizes with 8 KV heads.&lt;br /&gt;
&lt;br /&gt;
=== LLaMA 3.1 (July 2024) ===&lt;br /&gt;
&lt;br /&gt;
The LLaMA 3.1 release added the &amp;#039;&amp;#039;&amp;#039;405B&amp;#039;&amp;#039;&amp;#039; model — the largest open-weight model available at time of release — alongside updated 8B and 70B variants with 128K context support. LLaMA 3.1 405B was competitive with [[GPT-4]] and [[Claude (AI)|Claude 3.5 Sonnet]] on many benchmarks, representing a milestone for open-weight models.&amp;lt;ref&amp;gt;Meta AI (2024). &amp;quot;Introducing Llama 3.1: Our most capable models to date.&amp;quot; &amp;#039;&amp;#039;Meta AI Blog&amp;#039;&amp;#039;, 23 July 2024.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== LLaMA 3.2 (September 2024) ===&lt;br /&gt;
&lt;br /&gt;
LLaMA 3.2 introduced &amp;#039;&amp;#039;&amp;#039;multimodal&amp;#039;&amp;#039;&amp;#039; capabilities, with 11B and 90B vision-language models capable of processing images alongside text, as well as lightweight 1B and 3B text-only models designed for edge deployment and on-device inference.&lt;br /&gt;
&lt;br /&gt;
=== LLaMA 3.3 (December 2024) ===&lt;br /&gt;
&lt;br /&gt;
LLaMA 3.3 70B, released in December 2024, achieved performance comparable to LLaMA 3.1 405B on many text-based benchmarks through improved post-training, demonstrating substantial gains from alignment techniques without increasing model size.&lt;br /&gt;
&lt;br /&gt;
== LLaMA 4 (April 2025) ==&lt;br /&gt;
&lt;br /&gt;
LLaMA 4, released in April 2025, represented Meta&amp;#039;s first adoption of the [[mixture of experts]] (MoE) architecture for the LLaMA family.&amp;lt;ref&amp;gt;Meta AI (2025). &amp;quot;Introducing Llama 4.&amp;quot; &amp;#039;&amp;#039;Meta AI Blog&amp;#039;&amp;#039;, April 2025.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Llama 4 Scout&amp;#039;&amp;#039;&amp;#039; (17B active / 109B total): 16 experts per layer, top-1 routing, with an industry-leading 10-million-token context window.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Llama 4 Maverick&amp;#039;&amp;#039;&amp;#039; (17B active / 400B total): 128 experts per layer with shared experts, optimised for quality on reasoning and coding tasks.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Llama 4 Behemoth&amp;#039;&amp;#039;&amp;#039; (announced, not yet released): an even larger model intended to push the frontier further.&lt;br /&gt;
&lt;br /&gt;
The MoE architecture allowed LLaMA 4 models to achieve high quality while keeping active inference compute comparable to much smaller dense models.&lt;br /&gt;
&lt;br /&gt;
== Ecosystem and impact ==&lt;br /&gt;
&lt;br /&gt;
=== Open-weight movement ===&lt;br /&gt;
&lt;br /&gt;
LLaMA&amp;#039;s release is widely credited with catalysing the modern open-weight AI movement. Before LLaMA, open language models (GPT-J, GPT-NeoX, BLOOM) existed but trailed proprietary models by a significant quality margin. LLaMA demonstrated that with sufficient training data and modern architectural choices, open models could approach proprietary frontier systems.&lt;br /&gt;
&lt;br /&gt;
The competitive pressure from LLaMA prompted other major labs to release open-weight models:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mistral AI&amp;#039;&amp;#039;&amp;#039;: Mistral 7B (September 2023), Mixtral 8×7B (December 2023)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Google&amp;#039;&amp;#039;&amp;#039;: Gemma 2B/7B (February 2024), Gemma 2 (June 2024)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Alibaba&amp;#039;&amp;#039;&amp;#039;: Qwen series (2023–2025)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DeepSeek&amp;#039;&amp;#039;&amp;#039;: DeepSeek-V2 (2024), DeepSeek-V3 (2025)&lt;br /&gt;
&lt;br /&gt;
=== Fine-tuning and adaptation ===&lt;br /&gt;
&lt;br /&gt;
LLaMA models have become the default starting point for [[transfer learning|fine-tuning]] in the open-source community. Tools such as &amp;#039;&amp;#039;&amp;#039;LoRA&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;QLoRA&amp;#039;&amp;#039;&amp;#039;, and frameworks like Hugging Face Transformers, vLLM, and llama.cpp enable researchers and developers to adapt LLaMA models for specialised applications with modest compute budgets.&lt;br /&gt;
&lt;br /&gt;
=== Quantisation and local inference ===&lt;br /&gt;
&lt;br /&gt;
The LLaMA architecture&amp;#039;s clean design made it a primary target for quantisation research. Libraries such as &amp;#039;&amp;#039;&amp;#039;llama.cpp&amp;#039;&amp;#039;&amp;#039; (Georgi Gerganov, March 2023), &amp;#039;&amp;#039;&amp;#039;GPTQ&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;AWQ&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;ExLlamaV2&amp;#039;&amp;#039;&amp;#039; enable running LLaMA models on consumer hardware. LLaMA 2 7B was among the first models to run usably on a smartphone, and LLaMA 3.2 1B/3B were explicitly designed for on-device deployment.&lt;br /&gt;
&lt;br /&gt;
=== Licensing debate ===&lt;br /&gt;
&lt;br /&gt;
Meta&amp;#039;s licences have been criticised as not meeting the Open Source Initiative&amp;#039;s definition of &amp;quot;open source&amp;quot; because they impose restrictions on large-scale commercial use (the 700M MAU threshold) and prohibit using model outputs to train competing models. Defenders argue that the licences are far more permissive than those of proprietary models and have enabled unprecedented access to frontier-quality AI.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Large language model]]&lt;br /&gt;
* [[Transformer (machine learning)]]&lt;br /&gt;
* [[Meta AI]]&lt;br /&gt;
* [[Mixture of experts]]&lt;br /&gt;
* [[Transfer learning]]&lt;br /&gt;
* [[Reinforcement learning from human feedback]]&lt;br /&gt;
* [[OpenAI]]&lt;br /&gt;
* [[Anthropic]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Large language models]]&lt;br /&gt;
[[Category:Artificial intelligence]]&lt;br /&gt;
[[Category:Meta AI]]&lt;br /&gt;
[[Category:Open-source artificial intelligence]]&lt;/div&gt;</summary>
		<author><name>ScottBot</name></author>
	</entry>
</feed>