Papers › LLaMA: Open and Efficient Foundation Language Models
LLaMA: Open and Efficient Foundation Language Models
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, Guillaume Lample
We introduce LLaMA, a collection of foundation language models ranging from 7B to 65B parameters. We train our models on trillions of tokens, and show that it is possible to train state-of-the-art models using publicly available datasets exclusively, without resorting to proprietary and inaccessible datasets. In particular, LLaMA-13B outperforms GPT-3 (175B) on most benchmarks, and LLaMA-65B is competitive with the best models, Chinchilla-70B and PaLM-540B. We release all our models to the research community.
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="2302.13971")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2302.13971", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2302.13971")
Code
No sample from the archive's official repository (facebookresearch/llama) is linked to this paper; the 56 samples below come from 15 community repositories, and 2 more are identical to code Syntology harvested from another paper's repository. Syntology harvested code from facebookresearch/llama for another paper.
facebookresearch/llama: Syntology's graph links these samples to On the Influence of Gender and Race in Romantic Relationship Prediction from Large... (arXiv:2410.03996; that paper's own run record: 4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 1 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method.
Syntology 58 code samples: 56 from 15 repositories linked to this paper, 2 identical to code harvested from another paper's repository. Across all 58: 37 ran (of which 9 constructed an object rather than computing a result; 25 with no instrument failure: 3 honoured, 0 violated, 22 with no contract checked; 12 where Syntology's instrument failed) · 21 unverified. Where Syntology's instrument failed: 11 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: community (archive-listed): 56 samples from 15 repositories, 35 ran (24 with no instrument failure; 11 where Syntology's instrument failed); 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
No sample is linked to this paper from 26 of its repositories that Syntology harvested for other papers:
- facebookresearch/llama, official repository: harvested for another paper, listed under the repository
- batsresearch/alfred, community (archive-listed): harvested for another paper, listed under the repository
- chaoyi-wu/pmc-llama, community (archive-listed): harvested for another paper, listed under the repository
- ecolab-postech/owq, community (archive-listed): harvested for 2 other papers, listed under the repository
- facebookresearch/chai, community (archive-listed): harvested for another paper, listed under the repository
- facico/chinese-vicuna, community (archive-listed): harvested for another paper, listed under the repository
- fajri91/indommlu, community (archive-listed): harvested for another paper, listed under the repository
- freedomintelligence/huatuogpt, community (archive-listed): harvested for another paper, listed under the repository
- ganjinzero/rrhf, community (archive-listed): harvested for another paper, listed under the repository
- ggerganov/llama.cpp, community (archive-listed): harvested for another paper, listed under the repository
- ggml-org/llama.cpp, community (archive-listed): harvested for another paper, listed under the repository
- greenbitai/low_bit_llama, community (archive-listed): harvested for another paper, listed under the repository
- hamishivi/easylm, community (archive-listed): harvested for another paper, listed under the repository
- huggingface/transformers, community (archive-listed): harvested for 4 other papers, listed under the repository
- icalk-nlp/educhat, community (archive-listed): harvested for another paper, listed under the repository
- ohadrubin/rpt, community (archive-listed): harvested for another paper, listed under the repository
- phoebussi/alpaca-cot, community (archive-listed): harvested for 2 other papers, listed under the repository
- qwopqwop200/GPTQ-for-LLaMa, community (archive-listed): harvested for another paper, listed under the repository
- squeezeailab/squeezellm, community (archive-listed): harvested for 2 other papers, listed under the repository
- tatsu-lab/stanford_alpaca, community (archive-listed): harvested for 2 other papers, listed under the repository
- xiaoman-zhang/PMC-VQA, community (archive-listed): harvested for another paper, listed under the repository
- xusenlinzy/api-for-open-llm, community (archive-listed): harvested for another paper, listed under the repository
- xvyaward/owq, community (archive-listed): harvested for another paper, listed under the repository
- xzhang97666/alpacare, community (archive-listed): harvested for another paper, listed under the repository
- yuanmu97/secure-transformer-inference, community (archive-listed): harvested for another paper, listed under the repository
- MS-P3/code5, community (archive-listed): harvested for another paper, listed under the repository
Levels written between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 4 of the 37 samples that ran have no recorded date.
57 repositories listed; official and paper-mentioned ones first.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.
Code Syntology ran Syntology
58 samples harvested: 37 ran (of which 9 constructed an object rather than computing a result; 25 with no instrument failure: 3 honoured, 0 violated, 22 with no contract checked; 12 where Syntology's instrument failed) · 21 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 4 of the 58 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 15 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. 1 sample whose link to this paper records no repository is listed under one of this paper's own repositories, because identical code was harvested from it for another paper. 2 samples are listed last, in a group without a repository. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 3 samples that ran, the graph records a signature this page does not show, each row saying why in its tooltip: for 2, for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments; for 1, an argument's recorded type or element kind is a printout of an object in Syntology's harness (such as a mock object, a class or a pandas printout), not the type of an input, so it does not describe the call's shape. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.
96db588eb784d7e4 · report
fixture: signature instruction:str/0/str, input:str/0/str · returned str · level recorded 2026-09-25 d07d04439cd1d44f · report
fixture: signature f:str/0/str, mode:str/0/str · returned dict · level recorded, date not recorded 614f3f063d0ec7f0 · report
8a49f06400cfa533 · report
9b2dd0265fc6e6b6 · report
fixture: signature prompt_instructions:list/1/dict · returned str · level recorded, date not recorded 8ca6a5f9f77053c2 · report
fixture: signature w:str/0/str, s:str/0/str · returned Match · level recorded, date not recorded a5e4ad4e11cf2143 · report
fixture: signature num_prompt_instructions:int/0/int, response:dict/0/? · returned list · level recorded, date not recorded 50924ee98cd1539e · report
bb9d66258a238b9c · report
3af74b5c95d41acd · report
fixture: signature bf16_arr:ndarray/1/int · returned ndarray · level recorded 2026-09-25 e1e39d01d0f3f81a · report
fixture: signature parser:callable/0/? · returned function · level recorded 2026-09-25 24f233cbf074bc95 · report
fixture: signature chars:str/0/str · returned function · level recorded 2026-09-25 42cd9e49542e405f · report
fixture: signature chars:str/0/str · returned function · level recorded 2026-09-25 17761b6cb6d0876d · report
fixture: signature t:str/0/str · returned str · level recorded 2026-09-25 6f0f4989a4b70aeb · report
fixture: returned tuple · level recorded 2026-09-25 911a8a5064b9a121 · report
fixture: signature data_point:dict/0/? · returned str · level recorded 2026-09-25 d7d073a5b1729e58 · report
fixture: signature instruction:str/0/str, input:str/0/str · returned str · level recorded 2026-09-25 ec1a43f948c4bfb1 · report
f54de390493549bb · report
d06d467f98e77d68 · report
fixture: signature module:callable/0/?, op_name:str/0/str · returned SimpleSubModule · level recorded 2026-09-25 efa79bea90c5fd5a · report
fixture: signature instruction:str/0/str, input:str/0/str · returned str · level recorded 2026-09-25 a066e3b4457453fd · report
fixture: returned Carry · level recorded 2026-09-22 2b160cc445933c46 · report
fixture: returned FlaxLLaMABlockCollection · level recorded 2026-09-22 a4fb09d490cd772f · report
fixture: returned FlaxLLaMAMLP · level recorded 2026-09-22 aaa8a447973c0f68 · report
fixture: returned RMSNorm · level recorded 2026-09-22 d81e74d07a61f182 · report
fixture: signature query_chunk_size:int/0/int, key_chunk_size:int/0/int, bias:ArrayImpl/4/float, deterministic:bool/0/bool, attn_dropout:ArrayImpl/4/float, attn_pdrop:float/0/float, causal:bool/0/bool, dtype:callable/0/?, query_chunk_idx:int/0/int, key_chunk_idx:int/0/int · returned ArrayImpl · level recorded 2026-09-22 4932ae36f745aea2 · report
fixture: signature query:ArrayImpl/4/float, key:ArrayImpl/4/float, value:ArrayImpl/4/float, bias:ArrayImpl/4/float, deterministic:bool/0/bool, dropout_rng:ArrayImpl/1/int, attn_pdrop:float/0/float, causal:bool/0/bool, query_chunk_size:int/0/int, key_chunk_size:int/0/int, dtype:callable/0/?, policy:bool/0/bool, precision:NoneType/0/?, float32_logits:bool/0/bool, prevent_cse:bool/0/bool · returned ArrayImpl · level recorded 2026-09-22 a9b09c32ed58621c · report
fixture: signature name:str/0/str · returned function · level recorded 2026-09-22 dad72196bdb2301a · report
fixture: signature partition_specs:list/1/str · returned list · level recorded 2026-09-22 6c8893718b619284 · report
fixture: signature x:ArrayImpl/2/float, partition_specs:str/0/str · returned ArrayImpl · level recorded 2026-09-22 733d82a9306baa8b · report
7e8dcebe492702bb · report
9238f425f871bc11 · report
f280056a639ae634 · report
4833ab3506125762 · report
a8530c4a22be1de7 · report
0d0deeba6c2a15d7 · report
fixture: returned LLaMAConfig · level recorded 2026-09-22 76a887e44ebc75d5 · report
fixture: returned MLP · level recorded 2026-09-22 133fab2290f71687 · report
fixture: returned RMSNorm · level recorded 2026-09-22 8a187cb05b43141d · report
fixture: signature seq_len:int/0/int, n_elem:int/0/int, dtype:dtype/0/?, device:device/0/?, base:int/0/int · returned Tensor · level recorded 2026-09-22 census: 5 implementations from 5 papers, 3 distinct outputs across 2 buckets, one shared input per bucket lit_llama/model.py unverified Apache-2.0 (permissive) ·
d24315a7d247960d · report
5a58d3796ebd39f1 · report
census: 3 implementations from 8 papers, 2 distinct outputs across 2 buckets, one shared input per bucket lit_llama/model.py unverified Apache-2.0 (permissive) ·
7137105772c52074 · report
ebfbcce998fad801 · report
fixture: returned GPT · level recorded 2026-09-22 6efcd693d3b4dc58 · report
fixture: signature x:Tensor/3/float · returned Tensor · level recorded 2026-09-24 0ea811a4ad9027b8 · report
fixture: signature hidden_states:Tensor/3/float · returned Tensor · level recorded 2026-09-22 fd513b4604a55972 · report
fixture: returned RotaryEmbedding · level recorded 2026-09-22 census: 14 implementations from 15 papers, 8 distinct outputs across 7 buckets, one shared input per bucket model.py ran · our draft was wrong fingerprinted MIT (permissive) ·
705bfc1394637339 · report
fixture: signature q:Tensor/3/float, k:Tensor/3/float, cos:Tensor/2/float, sin:Tensor/2/float, position_ids:Tensor/2/int, unsqueeze_dim:int/0/int · returned tuple · level recorded 2026-09-22 31c156187744eaa5 · report
fixture: signature inp:Tensor/2/int, device:NoneType/0/? · returned Tensor · level recorded 2026-09-22 census: 15 implementations from 60 papers, 2 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32 model.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) ·
31333a36df31a820 · report
fixture: signature hidden_states:Tensor/4/float, n_rep:int/0/int · returned Tensor · level recorded 2026-09-22 census: 13 implementations from 12 papers, 10 distinct outputs across 4 buckets, one shared input per bucket model.py unverified MIT (permissive) ·
00a9dc7ef03e2fcc · report
2 samples are identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
aba86ffbed27ba65 · report
fixture: signature n:int/0/int, k:int/0/int · returned int · level recorded 2026-09-22 Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.
9 assemblies on this paper: 9 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).
9 sibling assemblies for LLaMA (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.
harvested Assembly for LLaMA (graph method: LLaMA). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- gen entry · level 0 · unverified ·
ef609b4fb59efa8a
harvested Assembly for LLaMA (graph method: LLaMA). 10 bricks; individually on a fixture: 7 ran (of which 1 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 4 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- LLAMA entry · level 0 · unverified ·
10092db6d72af6ab - DecoderBlock model · level 0 · unverified ·
dba8af448d5b7b39 - RMSNorm helper · level 1 · ran ·
0ea811a4ad9027b8 - create_masks helper · level 1 · ran · our draft was wrong ·
31c156187744eaa5 - Attention model · level 0 · unverified ·
00a9dc7ef03e2fcc - FeedForward model · level 1 · ran ·
6efcd693d3b4dc58 - RotaryEmbedding helper · level 1 · ran ·
fd513b4604a55972 - apply_rotary_pos_emb helper · level 1 · ran · our draft was wrong ·
705bfc1394637339 - repeat_kv helper · level 1 · ran; the contract check could not run (RAISES) ·
31333a36df31a820 - rotate_half helper · level 1 · ran · our draft was wrong ·
e03d53ba9d4f9ae5
harvested Assembly for LLaMA (graph method: LLaMA). 15 bricks; individually on a fixture: 9 ran (of which 4 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 5 where Syntology's instrument failed) · 6 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- FlaxLLaMAModule entry · level 0 · unverified ·
9238f425f871bc11 - FlaxLLaMABlockCollection model · level 1 · ran ·
2b160cc445933c46 - RMSNorm model · level 1 · ran ·
aaa8a447973c0f68 - FlaxLLaMABlock model · level 0 · unverified ·
7e8dcebe492702bb - get_gradient_checkpoint_policy helper · level 1 · ran · our draft was wrong ·
a9b09c32ed58621c - FlaxLLaMAAttention model · level 0 · unverified ·
733d82a9306baa8b - FlaxLLaMAMLP model · level 1 · ran ·
a4fb09d490cd772f - blockwise_ffn helper · level 0 · unverified ·
4833ab3506125762 - with_sharding_constraint helper · level 1 · ran · our draft was wrong ·
6c8893718b619284 - apply_rotary_emb model · level 0 · unverified ·
f280056a639ae634 - blockwise_attn helper · level 1 · ran · our draft was wrong ·
4932ae36f745aea2 - get_names_from_parition_spec helper · level 1 · ran · our draft was wrong ·
dad72196bdb2301a - names_in_current_mesh helper · level 0 · unverified ·
a8530c4a22be1de7 - Carry helper · level 1 · ran ·
a066e3b4457453fd - _chunk_attention_bias helper · level 1 · ran · our draft was wrong ·
d81e74d07a61f182
harvested Assembly for LLaMA (graph method: LLaMA). 1 brick; individually on a fixture: 1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 9 siblings
- GPT entry · level 1 · ran ·
ebfbcce998fad801
harvested Assembly for LLaMA (graph method: LLaMA). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- llama_sequential entry · level 0 · unverified ·
8a49f06400cfa533
harvested Assembly for LLaMA (graph method: LLaMA). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- get_llama entry · level 1 · ran · our draft was wrong ·
2c201f017173954b
harvested Assembly for LLaMA (graph method: LLaMA). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- initialize_model_and_tokenizer entry · level 0 · unverified ·
50924ee98cd1539e
harvested Assembly for LLaMA (graph method: LLaMA). 9 bricks; individually on a fixture: 5 ran (of which 3 constructed an object rather than computing a result; 5 with no instrument failure: 2 honoured, 0 violated, 3 with no contract checked; 0 where Syntology's instrument failed) · 4 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- LLaMA entry · level 0 · unverified ·
cad096e5b0761afb - Block model · level 0 · unverified ·
d24315a7d247960d - LLaMAConfig helper · level 1 · ran ·
0d0deeba6c2a15d7 - RMSNorm model · level 1 · ran ·
133fab2290f71687 - build_rope_cache helper · level 1 · ran · honoured contract ·
8a187cb05b43141d - CausalSelfAttention model · level 0 · unverified ·
5a58d3796ebd39f1 - MLP model · level 1 · ran ·
76a887e44ebc75d5 - find_multiple helper · level 1 · ran · honoured contract ·
aba86ffbed27ba65 - apply_rope helper · level 0 · unverified ·
7137105772c52074
harvested Assembly for LLaMA (graph method: LLaMA). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 9 siblings
- load_model entry · level 0 · unverified ·
bb9d66258a238b9c
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2302.13971") returns these assemblies with each brick's role and wiring (how to connect).
Tasks
Results from the paper archive 2025-07-28
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Methods
Introduced by this paper: LLaMA
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections