SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.16119 · 2023

ModuLoRA: Finetuning 2-Bit LLMs on Consumer GPUs by Integrating with Modular Quantizers

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 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, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 4 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/2309.16119.json · badge: /api/ran/2309.16119.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
kuleshov-group/llmtools canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
kuleshov-group/modulora-experiment canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
find_layers Ran
ran; our contract draft was wrong, not the code
kuleshov-group/llmtools/llmtools/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from squeezeailab/kvquant, is pointer only (licence: NONE) · get_code("a9e7f2cdf016b88b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

load_llm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kuleshov-group/llmtools/llmtools/executor.py
pointer only (licence: NONE) · get_code("0b601a0502930f6a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

load_tokenizer Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kuleshov-group/llmtools/llmtools/executor.py
pointer only (licence: NONE) · get_code("a2178676d3e7abdd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

preprocess_logits_for_metrics Ran
ran; our contract draft was wrong, not the code
kuleshov-group/modulora-experiment/finetune/samsum-llama/train_samsum_4bit.py
code served (permissive licence) · get_code("bd72bc50b587388e")
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 tuple, ndim 3, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

# The function expects:
# - logits: a tuple/list where logits[0] is a tensor with shape (batch, seq_len, vocab_size)
#   It calls torch.argmax(logits[0], dim=-1) to get predicted IDs
# - labels: a tensor or similar object to be returned as-is

# Create a small logits tensor: batch_size=2, seq_len=3, vocab_size=4
logits_tensor = torch.randn(2, 3, 4)
logits = (logits_tensor,)  # Wrap in tuple since function accesses logits[0]

# Create a small labels tensor: batch_size=2, seq_len=3
labels = torch.randint(0, 4, (2, 3))

ARGS = {
    "logits": logits,
    "labels": labels,
}
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 tuple, ndim 3, dtype family int — a tuple output has no array shape of its own; none is stated
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
to_half_precision Ran
ran; our contract draft was wrong, not the code
kuleshov-group/llmtools/llmtools/utils.py
pointer only (licence: NONE) · get_code("ce032426a6ed928c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

load_adapter Not yet run
unverified (harvested, no recorded run)
kuleshov-group/llmtools/llmtools/executor.py
pointer only (licence: NONE) · get_code("cf26abc9397a7e53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

load_bloom_unquantized Not yet run
unverified (harvested, no recorded run)
kuleshov-group/llmtools/llmtools/llms/bloom/model.py
pointer only (licence: NONE) · get_code("c127added3419e2f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

load_llama2_unquantized Not yet run
unverified (harvested, no recorded run)
kuleshov-group/llmtools/llmtools/llms/llama2/model.py
pointer only (licence: NONE) · get_code("36c4edd08c263380")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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.

load_llama_unquantized Not yet run
unverified (harvested, no recorded run)
kuleshov-group/llmtools/llmtools/llms/llama/model.py
pointer only (licence: NONE) · get_code("de4a6d2be23fd557")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kuleshov-group/llmtools 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 8 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
find_layers 27 other papers
3 dated earlier, 22 later, 1 same year, order not determinable, 1 undated
2203.13474 (2022-03)
CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
2023.emnlp-main.892 (2023 (year only))
Z-FOLD: A Frustratingly Easy Post-Training Quantization Scheme for LLMs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 24 more not named here

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 propose a memory-efficient finetuning algorithm for large language models (LLMs) that supports finetuning LLMs with 65B parameters in 2/3/4-bit precision on as little as one 24GB GPU. Our method, modular low-rank adaptation (ModuLoRA), integrates any user-specified weight quantizer with finetuning via low-rank adapters (LoRAs). Our approach relies on a simple quantization-agnostic backward pass that adaptively materializes low-precision LLM weights from a custom black-box quantization module. This approach enables finetuning 2-bit and 3-bit LLMs for the first time -- leveraging state-of-the-art 2-bit QuIP\# quantization and 3-bit OPTQ quantization -- outperforming finetuning that relies on less sophisticated 4-bit and 8-bit methods. In our experiments, \lplora~attains competitive performance on text classification, natural language inference, and instruction following tasks using significantly less memory than existing approaches, and we also surpass the state-of-the-art ROUGE score on a popular summarization task. We release \lplora~together with a series of low-precision models as part of \llmtune, a user-friendly library for quantizing, running, and finetuning LLMs on consumer GPUs.

For agents

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

get_harvested_code_for_paper("2309.16119")
get_code_for_paper("2309.16119")
have("2309.16119")

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

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

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

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

Connect an agent — have() is free.