SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.acl-industry.15 · ACL · 2025

Run LoRA Run: Faster and Lighter LoRA Implementations

Ivan Oseledets, Daria Cherniuk, Alexandr Mikhalev

Open in the Atlas

Code that ran

9 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; 2 honoured the contract we drafted, 2 violated it and 3 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2025.acl-industry.15.json · badge: /api/ran/2025.acl-industry.15.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
Lightning-AI/litgpt canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
adapter_filter Ran
ran, violated the contract we drafted
Lightning-AI/litgpt/litgpt/adapter.py
code served (permissive licence) · get_code("e15c0e4da87f1c21")
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 bool, 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

torch.manual_seed(0)

def adapter_filter(key: str, value: any) -> bool:
    return 'adapter_wte' in key or 'gating_factor' in key

# The function takes two parameters: key (str) and value (Any)
# The function body only checks if certain strings are contained in the key
# It doesn't actually use the value parameter
# So we just need valid string and any object for value

ARGS = {
    'key': 'adapter_wte_layer_1',
    'value': torch.tensor([1.0, 2.0, 3.0, 4.0])
}
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 bool, 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
adapter_filter Ran
ran, violated the contract we drafted
Lightning-AI/litgpt/litgpt/adapter_v2.py
code served (permissive licence) · get_code("b0bb742b80d352ad")
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 bool, 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

torch.manual_seed(0)

# The function adapter_filter takes two parameters:
# 1. key: str - a string key to check
# 2. value: Any - any value (not actually used in the function body)

# The function checks if any adapter-related substrings are in the key string
# and returns a boolean. The value parameter is not used at all.

# Create test arguments
key = "layer.adapter_wte.weight"
value = torch.randn(4, 3)  # arbitrary tensor, not used by the function

ARGS = {
    "key": key,
    "value": value
}
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 bool, 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
batched_index_select Ran
ran on a synthesized input
Lightning-AI/litgpt/litgpt/model.py
code served (permissive licence) · get_code("835075fc97024e8c")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 6) 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

torch.manual_seed(0)

# Construct valid arguments for batched_index_select
# The function takes:
# - t: tensor to index into
# - dim: dimension along which to index
# - idx: indices (can be batched)

# Create a simple tensor t with shape (4, 5, 6)
t = torch.randn(4, 5, 6)

# Create batched indices with shape (2, 3)
# This means we have a batch of 2 sets of 3 indices
idx = torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long)

# Choose dimension to index (e.g., dim=1)
dim = 1

ARGS = {
    't': t,
    'dim': dim,
    'idx': idx
}
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 6) — shape (2, 4, 3, 6) 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
benchmark_dict_to_markdown_table Ran
ran on a synthesized input
Lightning-AI/litgpt/litgpt/api.py
code served (permissive licence) · get_code("527c56effd0347f4")
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 str. 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 numpy as np

# Create sample benchmark data
# The function expects a dict where keys are metric names (strings)
# and values are lists/arrays of numeric measurements
data = {
    'accuracy': [0.92, 0.91, 0.93, 0.92, 0.91],
    'loss': [0.15, 0.16, 0.14, 0.15, 0.16],
    'inference_time_ms': [45.2, 46.1, 44.8, 45.5, 46.2],
    'memory_usage_mb': [128.5, 129.1, 128.2, 129.3, 128.8]
}

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
calculate_number_of_devices Ran
ran on a synthesized input
Lightning-AI/litgpt/litgpt/api.py
code served (permissive licence) · get_code("f4205f493a79476e")
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 int, ndim 0, dtype family int, 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 torch.nn as nn

# Test case 1: devices as an integer
devices_int = 4

# Test case 2: devices as a list
devices_list = [0, 1, 2, 3]

# Test case 3: devices as something else (will return 0)
devices_other = None

# We'll use the integer case as the primary test
ARGS = {
    "devices": devices_int
}
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 int, ndim 0, dtype family int, 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
check_indicator_and_length Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Lightning-AI/litgpt/litgpt/config.py
code served (permissive licence) · get_code("faa77017b4beec30")
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 list, ndim 1, 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)

ARGS = {
    "params": [0, 1, 0, 1],
    "name": "test_indicator",
    "required_length": 4,
    "use_initial_part": True,
    "def_val": 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 list, ndim 1, dtype family int — a list 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
find_multiple Ran
ran, honoured the contract we drafted
Lightning-AI/litgpt/litgpt/config.py
code served (permissive licence) · get_code("ffe8d3a5e6f4b477")
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 int, ndim 0, dtype family int, 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

# Set seed for reproducibility
torch.manual_seed(0)

# The function find_multiple takes two integers: n and k
# It finds the nearest value to n that is a multiple of k
# Read the body:
# - n: int (the target number)
# - k: int (the divisor, must be > 0)
# The function uses:
# - n % k (modulo operation)
# - k > 0 (assertion)
# - arithmetic operations: n + k - n % k

# Create test arguments
ARGS = {
    "n": 17,      # Example: find multiple of k nearest to 17
    "k": 5        # Example: k=5, so answer should be 20 (17 + 5 - 17%5 = 17 + 5 - 2 = 20)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
get_lr_scheduler Ran
ran; our contract draft was wrong, not the code
Lightning-AI/litgpt/litgpt/finetune/adapter.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from DataAttributionEval/DATE-LM, is pointer only (licence: NONE) · get_code("92caa4cd63a752cc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from DataAttributionEval/DATE-LM, and GitHub detected no licence in that repository 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.

yarn_get_mscale Ran
ran, honoured the contract we drafted
Lightning-AI/litgpt/litgpt/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Miraclecsc/Discrete-Latent-Reasoning, is pointer only (licence: NONE) · get_code("8dfdb3a53834d90f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Miraclecsc/Discrete-Latent-Reasoning, and GitHub detected no licence in that repository 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.

build_rope_cache Not yet run
unverified (harvested, no recorded run)
Lightning-AI/litgpt/litgpt/model.py
code served (permissive licence) · get_code("3a230f27a8cf6977")
How it ran

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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 2 later) and 4 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_multiple 6 other papers
5 dated earlier, 1 later
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
2406.06046 (2024-06)
MATES : Model-Aware Data Selection for Efficient Pretraining with Data Influence Models
2408.15793 (2024-08)
Language Adaptation on a Tight Academic Compute Budget: Tokenizer Swapping Works and Pure bfloat16 Is Enough
and 3 more not named here
adapter_filter 3 other papers
1 dated earlier, 2 same year, order not determinable
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2503.15450 (2025-03)
SkyLadder: Better and Faster Pretraining via Context Window Scheduling
2504.11393 (2025-04)
How to Predict Best Pretraining Data with Small Experiments
adapter_filter 3 other papers
1 dated earlier, 2 same year, order not determinable
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2503.15450 (2025-03)
SkyLadder: Better and Faster Pretraining via Context Window Scheduling
2504.11393 (2025-04)
How to Predict Best Pretraining Data with Small Experiments
yarn_get_mscale 3 other papers
1 dated earlier, 2 later
2412.10302 (2024-12)
DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding
2606.04980 (2026-06)
AlphaQ: Calibration-Free Bit Allocation for Mixture-of-Experts Quantization
2606.29712 (2026-06)
Why Struggle with Continuous Latents? Interpretable Discrete Latent Reasoning via Rendered Compression
get_lr_scheduler 2 other papers
1 dated earlier, 1 same year, order not determinable
2408.03506 (2024-08)
1.5-Pints Technical Report: Pretraining in Days, Not Months -- Your Language Model Thrives on Quality Data
2507.09424 (2025-07)
DATE-LM: Benchmarking Data Attribution Evaluation for Large Language Models
check_indicator_and_length 1 other paper
1 dated earlier
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-24.

Repositories linked to this paper

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

Abstract

LoRA is a technique that reduces the number of trainable parameters in a neural network by introducing low-rank adapters to linear layers. This technique is used for fine-tuning and even training large transformer models from scratch. This paper presents the RunLoRA framework for efficient implementations of LoRA, which significantly improves the speed of neural network training and fine-tuning with low-rank adapters. The proposed implementation optimizes the computation of LoRA operations based on the shape of the corresponding linear layer weights, the input dimensions, and the LoRA rank by selecting the best forward and backward computation graphs based on FLOPs and time estimations. This results in faster training without sacrificing accuracy. The experimental results show a speedup ranging from 10% to 28% on various transformer models.

For agents

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

get_harvested_code_for_paper("2025.acl-industry.15")
get_code_for_paper("2025.acl-industry.15")
have("2025.acl-industry.15")

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

curl https://syntology.ai/api/ran/2025.acl-industry.15.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.acl-industry.15.svg)](https://syntology.ai/paper/2025.acl-industry.15)

Connect an agent — have() is free.