SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.15556 · 2022

Training Compute-Optimal Large Language Models

Erich Elsen, Karen Simonyan, Oriol Vinyals, Sebastian Borgeaud, Simon Osindero, Arthur Mensch, Katie Millican, Eliza Rutherford, Laurent Sifre, Johannes Welbl, Jack Rae, Las Casas, and 11 more

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2203.15556.json · badge: /api/ran/2203.15556.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
copy not recorded community
not in the paper's declared repositories
4 ran · 0 no recorded run
karpathy/llama2.c community
Papers with Code archive
3 ran · 3 no recorded run
nkluge-correa/teenytinyllama community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from arthursbianchessi/bam
pointer only; the stored copy get_code serves, from arthursbianchessi/bam, is pointer only (licence: NONE) · get_code("6d2a08dcf3466514")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
karpathy/llama2.c/model.py
code served (permissive licence) · get_code("1bf497baaf536b2b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, FeedForward: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "dim": 8,
    "hidden_dim": 16,
    "multiple_of": 4,
    "dropout": 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FeedForward — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FeedForward output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ModelArgs Ran
ran on a synthesized input · constructed an object; no result was computed
karpathy/llama2.c/model.py
code served (permissive licence) · get_code("7312586d85e4354f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, ModelArgs: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from dataclasses import dataclass
from typing import Optional

@dataclass
class ModelArgs:
    dim: int = 4096
    n_layers: int = 32
    n_heads: int = 32
    n_kv_heads: Optional[int] = None
    vocab_size: int = 32000
    hidden_dim: Optional[int] = None
    multiple_of: int = 256
    norm_eps: float = 1e-05
    max_seq_len: int = 2048
    dropout: float = 0.0

torch.manual_seed(0)

ARGS = {
    "dim": 512,
    "n_layers": 4,
    "n_heads": 8,
    "n_kv_heads": 8,
    "vocab_size": 1024,
    "hidden_dim": 2048,
    "multiple_of": 256,
    "norm_eps": 1e-5,
    "max_seq_len": 128,
    "dropout": 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ModelArgs — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ModelArgs output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
RMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
karpathy/llama2.c/model.py
code served (permissive licence) · get_code("e27b34a3f741d4de")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, RMSNorm: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

torch.manual_seed(0)

# RMSNorm constructor takes dim (int) and eps (float)
# The forward method expects a tensor x and applies normalization
# The _norm method uses x.pow(2).mean(-1, keepdim=True) so we need a tensor with at least 1 dimension
# The weight parameter has shape (dim,)

ARGS = {
    "dim": 4,
    "eps": 1e-6,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RMSNorm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RMSNorm output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_rotary_emb Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from aaron-wheeler/marketgpt
pointer only · get_code("af440c67b16afe67")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_loss Ran
ran, honoured the contract we drafted
nkluge-correa/teenytinyllama/Utilities/chinchilla-estimation.py
code served (permissive licence) · get_code("9293e052d06482a7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function calculate_loss takes two parameters: N and D
# Both are used in arithmetic operations (exponentiation and division)
# They should be numeric values

N = 460000000
D = 9300000000

ARGS = {
    "N": N,
    "D": D
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
precompute_freqs_cis Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from aaron-wheeler/marketgpt
pointer only · get_code("5f447bdd807ed3c0")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reshape_for_broadcast Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from aaron-wheeler/marketgpt
pointer only · get_code("e04ad9d4b02f50b6")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Attention Not yet run
unverified (harvested, no recorded run)
karpathy/llama2.c/model.py
code served (permissive licence) · get_code("c20a31b2d7615a4b")
How it ran

no invocation recorded.

Transformer Not yet run
unverified (harvested, no recorded run)
karpathy/llama2.c/model.py
code served (permissive licence) · get_code("8b8a4640c5a93610")
How it ran

no invocation recorded.

TransformerBlock Not yet run
unverified (harvested, no recorded run)
karpathy/llama2.c/model.py
code served (permissive licence) · get_code("46b07f9445b01dce")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
precompute_freqs_cis
brick of this paper's assembly: helper
5 other papers
5 later · 2 only as an assembly brick
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
2309.00638 (2023-09)
Generative AI for End-to-End Limit Order Book Modelling: A Token-Level Autoregressive Generative Model of Message Flow Using a Deep State Space Network
2405.16727 (2024-05)
Disentangling and Integrating Relational and Sensory Information in Transformer Architectures
and 2 more not named here
apply_rotary_emb
brick of this paper's assembly: helper
4 other papers
4 later · 1 only as an assembly brick
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
2309.00638 (2023-09)
Generative AI for End-to-End Limit Order Book Modelling: A Token-Level Autoregressive Generative Model of Message Flow Using a Deep State Space Network
2405.16727 (2024-05)
Disentangling and Integrating Relational and Sensory Information in Transformer Architectures
and 1 more not named here
repeat_kv
brick of this paper's assembly: helper
4 other papers
4 later · 3 only as an assembly brick
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
2405.16727 (2024-05)
Disentangling and Integrating Relational and Sensory Information in Transformer Architectures
2505.22842 (2025-05)
Bayesian Attention Mechanism: A Probabilistic Framework for Positional Encoding and Context Length Extrapolation
and 1 more not named here
reshape_for_broadcast
brick of this paper's assembly: helper
4 other papers
4 later · 2 only as an assembly brick
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
2309.00638 (2023-09)
Generative AI for End-to-End Limit Order Book Modelling: A Token-Level Autoregressive Generative Model of Message Flow Using a Deep State Space Network
2405.16727 (2024-05)
Disentangling and Integrating Relational and Sensory Information in Transformer Architectures
and 1 more not named here
RMSNorm
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We investigate the optimal model size and number of tokens for training a transformer language model under a given compute budget. We find that current large language models are significantly undertrained, a consequence of the recent focus on scaling language models whilst keeping the amount of training data constant. By training over 400 language models ranging from 70 million to over 16 billion parameters on 5 to 500 billion tokens, we find that for compute-optimal training, the model size and the number of training tokens should be scaled equally: for every doubling of model size the number of training tokens should also be doubled. We test this hypothesis by training a predicted computeoptimal model, Chinchilla, that uses the same compute budget as Gopher but with 70B parameters and 4× more more data. Chinchilla uniformly and significantly outperforms Gopher (280B), GPT-3 (175B), Jurassic-1 (178B), and Megatron-Turing NLG (530B) on a large range of downstream evaluation tasks. This also means that Chinchilla uses substantially less compute for fine-tuning and inference, greatly facilitating downstream usage. As a highlight, Chinchilla reaches a state-of-the-art average accuracy of 67.5% on the MMLU benchmark, greater than a 7% improvement over Gopher.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2203.15556")
get_code_for_paper("2203.15556")
have("2203.15556")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2203.15556.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2203.15556.svg)](https://syntology.ai/paper/2203.15556)

Connect an agent — have() is free.