SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.17244 · 2023

The LLM Surgeon

arXiv · PDF · Open in the Atlas

Code that ran

4 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 6 no recorded run), 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/2312.17244.json · badge: /api/ran/2312.17244.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
qualcomm-ai-research/llm-surgeon canonical (classifier label)
classifier basis: census
4 ran · 6 no recorded run
FunctionStatusWhere it lives
aug Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qualcomm-ai-research/llm-surgeon/utils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("a431af9d814c9eaa")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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.

full_to_sub Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/llm-surgeon/utils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("a5d3cbfc9bb4c4f7")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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.

model_zeros Ran
ran, honoured the contract we drafted
qualcomm-ai-research/llm-surgeon/sparsify.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("c59626c9589b79de")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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.

sub_to_full Ran
ran; our contract draft was wrong, not the code
qualcomm-ai-research/llm-surgeon/utils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("bfea2b492c6547fd")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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.

add_lora Not yet run
unverified (harvested, no recorded run)
qualcomm-ai-research/llm-surgeon/lora.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("06c03aee41ce48f9")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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. No invocation recorded.

get_c4 Not yet run
unverified (harvested, no recorded run)
qualcomm-ai-research/llm-surgeon/datautils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("4b6dab2040cdb423")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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. No invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
qualcomm-ai-research/llm-surgeon/surgeon.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("cfa4a877e47a4198")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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. No invocation recorded.

get_mods Not yet run
unverified (harvested, no recorded run)
qualcomm-ai-research/llm-surgeon/curvature.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("70e3f608921fbefa")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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. No invocation recorded.

get_wikipedia Not yet run
unverified (harvested, no recorded run)
qualcomm-ai-research/llm-surgeon/datautils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("e28734bf35f1af35")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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. No invocation recorded.

get_wikitext2 Not yet run
unverified (harvested, no recorded run)
qualcomm-ai-research/llm-surgeon/datautils.py
pointer only (licence: BSD-3-Clause-Clear) · get_code("8f59498c44ab3856")
How it ran

The body of this sample is withheld: BSD-3-Clause-Clear, as GitHub detects it on this paper's repository, qualcomm-ai-research/llm-surgeon, is not in the permissive set Syntology serves inline. 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. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

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

State-of-the-art language models are becoming increasingly large in an effort to achieve the highest performance on large corpora of available textual data. However, the sheer size of the Transformer architectures makes it difficult to deploy models within computational, environmental or device-specific constraints. We explore data-driven compression of existing pretrained models as an alternative to training smaller models from scratch. To do so, we scale Kronecker-factored curvature approximations of the target loss landscape to large language models. In doing so, we can compute both the dynamic allocation of structures that can be removed as well as updates of remaining weights that account for the removal. We provide a general framework for unstructured, semi-structured and structured pruning and improve upon weight updates to capture more correlations between weights, while remaining computationally efficient. Experimentally, our method can prune rows and columns from a range of OPT models and Llamav2-7B by 20%-30%, with a negligible loss in performance, and achieve state-of-the-art results in unstructured and semi-structured pruning of large language models.

For agents

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

get_harvested_code_for_paper("2312.17244")
get_code_for_paper("2312.17244")
have("2312.17244")

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

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

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

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

Connect an agent — have() is free.