SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.14047 · 2024

An empirical study of LLaMA3 quantization: from LLMs to MLLMs

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2404.14047.json · badge: /api/ran/2404.14047.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
macaronlin/llama3-quantization canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
find_layers Ran
ran; our contract draft was wrong, not the code
macaronlin/llama3-quantization/models/models_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from utkarshsaxena1/eigenattn, is pointer only (licence: NONE) · get_code("904cd61df2fe8fb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

get_llama Ran
ran; our contract draft was wrong, not the code
macaronlin/llama3-quantization/llama.py
pointer only (licence: NONE); the stored copy get_code serves, from shawnricecake/agile-quant, is pointer only (licence: NONE) · get_code("2c201f017173954b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

make_disjoint_window Ran
ran; our contract draft was wrong, not the code
macaronlin/llama3-quantization/models/models_utils.py
pointer only (licence: NONE) · get_code("4df9168e0a0c38eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

prod Ran
ran, violated the contract we drafted
macaronlin/llama3-quantization/irqlora.py
pointer only (licence: NONE) · get_code("6d5acfb0087d1ee7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

quantize_tensor Ran
ran; our contract draft was wrong, not the code
macaronlin/llama3-quantization/irqlora.py
pointer only (licence: NONE) · get_code("632792cb21b226ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

truncate_number Ran
ran; our contract draft was wrong, not the code
macaronlin/llama3-quantization/models/transformation.py
pointer only (licence: NONE); the stored copy get_code serves, from saic-fi/mobilequant, is pointer only (licence: NOASSERTION) · get_code("94587954e392b665")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

truncate_number Ran
ran; our contract draft was wrong, not the code
macaronlin/llama3-quantization/models/models_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from utkarshsaxena1/eigenattn, is pointer only (licence: NONE) · get_code("4e53fbbdfa160f7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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.

get_pile Not yet run
unverified (harvested, no recorded run)
macaronlin/llama3-quantization/datautils.py
pointer only (licence: NONE); the stored copy get_code serves, from utkarshsaxena1/eigenattn, is pointer only (licence: NONE) · get_code("3b51341ed1a0b73e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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_ptb Not yet run
unverified (harvested, no recorded run)
macaronlin/llama3-quantization/datautils.py
pointer only (licence: NONE) · get_code("bd4f416e271c2fb5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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)
macaronlin/llama3-quantization/datautils.py
pointer only (licence: NONE) · get_code("406294899f965c2f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, macaronlin/llama3-quantization when it was checked. 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, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 0 the same month, 8 later) and 0 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
make_disjoint_window 10 other papers
5 dated earlier, 5 later
2304.01089 (2023-04)
RPTQ: Reorder-based Post-training Quantization for Large Language Models
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
and 7 more not named here
find_layers 9 other papers
5 dated earlier, 4 later
2304.01089 (2023-04)
RPTQ: Reorder-based Post-training Quantization for Large Language Models
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
and 6 more not named here
truncate_number 8 other papers
4 dated earlier, 4 later
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
2402.11295 (2024-02)
OneBit: Towards Extremely Low-bit Large Language Models
and 5 more not named here
truncate_number 8 other papers
3 dated earlier, 5 later
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
2403.12544 (2024-03)
AffineQuant: Affine Transformation Quantization for Large Language Models
and 5 more not named here
get_pile 7 other papers
3 dated earlier, 4 later
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2310.08041 (2023-10)
QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
2402.11295 (2024-02)
OneBit: Towards Extremely Low-bit Large Language Models
and 4 more not named here
prod 7 other papers
6 dated earlier, 1 later
1904.08489 (2019-04)
Semantic Adversarial Attacks: Parametric Transformations That Fool Deep Classifiers
1906.06818 (2019-06)
Stacked Capsule Autoencoders
2106.02081 (2021-06)
Solving Schrödinger Bridges via Maximum Likelihood
and 4 more not named here
get_ptb 6 other papers
3 dated earlier, 3 later
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2402.11295 (2024-02)
OneBit: Towards Extremely Low-bit Large Language Models
2403.12544 (2024-03)
AffineQuant: Affine Transformation Quantization for Large Language Models
and 3 more not named here
get_wikitext2 5 other papers
3 dated earlier, 2 later
2308.13137 (2023-08)
OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
2402.11295 (2024-02)
OneBit: Towards Extremely Low-bit Large Language Models
2403.12544 (2024-03)
AffineQuant: Affine Transformation Quantization for Large Language Models
and 2 more not named here
get_llama 4 other papers
4 dated earlier
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
2307.08072 (2023-07)
Do Emergent Abilities Exist in Quantized Large Language Models: An Empirical Study
2310.01382 (2023-10)
Compressing LLMs: The Truth is Rarely Pure and Never Simple
and 1 more not named here
quantize_tensor 1 other paper
1 dated earlier
2402.05445 (2024-02)
Accurate LoRA-Finetuning Quantization of LLMs via Information Retention

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-22.

Repositories linked to this paper

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

Abstract

The LLaMA family, a collection of foundation language models ranging from 7B to 65B parameters, has become one of the most powerful open-source large language models (LLMs) and the popular LLM backbone of multi-modal large language models (MLLMs), widely used in computer vision and natural language understanding tasks. In particular, LLaMA3 models have recently been released and have achieved impressive performance in various domains with super-large scale pre-training on over 15T tokens of data. Given the wide application of low-bit quantization for LLMs in resource-constrained scenarios, we explore LLaMA3's capabilities when quantized to low bit-width. This exploration can potentially provide new insights and challenges for the low-bit quantization of LLaMA3 and other future LLMs, especially in addressing performance degradation issues that suffer in LLM compression. Specifically, we comprehensively evaluate the 10 existing post-training quantization and LoRA fine-tuning (LoRA-FT) methods of LLaMA3 on 1-8 bits and various datasets to reveal the low-bit quantization performance of LLaMA3. To uncover the capabilities of low-bit quantized MLLM, we assessed the performance of the LLaMA3-based LLaVA-Next-8B model under 2-4 ultra-low bits with post-training quantization methods. Our experimental results indicate that LLaMA3 still suffers from non-negligible degradation in linguistic and visual contexts, particularly under ultra-low bit widths. This highlights the significant performance gap at low bit-width that needs to be addressed in future developments. We expect that this empirical study will prove valuable in advancing future models, driving LLMs and MLLMs to achieve higher accuracy at lower bit to enhance practicality. Our project is released on https://github.com/Macaronlin/LLaMA3-Quantization , and quantized models are released at https://huggingface.co/Efficient-ML .

For agents

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

get_harvested_code_for_paper("2404.14047")
get_code_for_paper("2404.14047")
have("2404.14047")

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

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

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

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

Connect an agent — have() is free.