SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.06640 · 2024

Linearizing Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

16 of 18 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; 5 honoured the contract we drafted, 4 violated it and 1 has no contract verdict; 6 failures of our instrument; 2 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/2405.06640.json · badge: /api/ran/2405.06640.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
tri-ml/linear_open_lm canonical (classifier label)
classifier basis: census
16 ran · 2 no recorded run
FunctionStatusWhere it lives
check_replacement_type Ran
ran on a synthesized input
tri-ml/linear_open_lm/open_lm/params.py
code served (permissive licence) · get_code("11254c5664bf9e38")
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
import numpy as np

torch.manual_seed(0)

# The function check_replacement_type takes two parameters: replacement and original
# It checks if they are the same type, or if either is None
# The function only uses type() on both parameters and compares them
# So we need to provide two values that the function can check

ARGS = {
    "replacement": 42,
    "original": 42
}
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 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
combine_average_meters Ran
ran; our contract draft was wrong, not the code
tri-ml/linear_open_lm/open_lm/meters.py
code served (permissive licence) · get_code("21f8a6ae2cd2f6b2")
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 AverageMeter. 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

class AverageMeter(object):
    """Computes and stores the average and current value"""

    def __init__(self):
        self.reset()

    def reset(self):
        self.val = 0
        self.avg = 0
        self.sum = 0
        self.count = 0

    def update(self, val, n=1):
        self.val = val
        self.sum += val * n
        self.count += n
        self.avg = self.sum / self.count

def combine_average_meters(meter_list):
    combined_meter = AverageMeter()
    combined_meter.val = meter_list[-1].val
    combined_meter.sum = sum([m.sum for m in meter_list])
    combined_meter.count = sum([m.count for m in meter_list])
    combined_meter.avg = combined_meter.sum / combined_meter.count
    return combined_meter

# Create test AverageMeter instances
meter1 = AverageMeter()
meter1.update(5.0, n=2)

meter2 = AverageMeter()
meter2.update(10.0, n=3)

meter3 = AverageMeter()
meter3.update(15.0, n=1)

meter_list = [meter1, meter2, meter3]

ARGS = {
    "meter_list": meter_list
}
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 AverageMeter — a AverageMeter output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AverageMeter 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
combine_ci_meters Ran
ran; our contract draft was wrong, not the code
tri-ml/linear_open_lm/open_lm/meters.py
code served (permissive licence) · get_code("37990e880b7555d5")
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 ConfidenceIntervalMeter. 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

class ConfidenceIntervalMeter(object):

    def __init__(self):
        self.reset()

    def reset(self):
        self.points = []
        self.points_array = None

    def update(self, val):
        self.points.append(val)

    def compute_bootstrap_ci(self, max_population, num_iterations, interval=95):
        lower = None
        upper = None
        self.points_array = np.concatenate(self.points)
        num_points = self.points_array.shape[0]
        population_size = self.points_array.shape[0]
        if max_population is not None:
            population_size = min(max_population, population_size)
        estimates = []
        for _ in range(num_iterations):
            i = np.random.choice(num_points, size=population_size)
            estimate = np.sum(self.points_array[i]) / population_size
            estimates.append(estimate.item())
        half = (100 - interval) / 2
        lower = np.percentile(estimates, half).item()
        upper = np.percentile(estimates, 100 - half).item()
        return (lower, upper)

def combine_ci_meters(meter_list):
    combined_meter = ConfidenceIntervalMeter()
    for m in meter_list:
        combined_meter.points.extend(m.points)
    return combined_meter


# Setup code to construct valid arguments
np.random.seed(0)

# Create first meter with some data
meter1 = ConfidenceIntervalMeter()
meter1.update(np.array([1.0, 2.0, 3.0]))
meter1.update(np.array([4.0, 5.0]))

# Create second meter with some data
meter2 = ConfidenceIntervalMeter()
meter2.update(np.array([6.0, 7.0, 8.0, 9.0]))
meter2.update(np.array([10.0]))

# Create third meter with some data
meter3 = ConfidenceIntervalMeter()
meter3.update(np.array([11.0, 12.0]))

meter_list = [meter1, meter2, meter3]

ARGS = {
    "meter_list": meter_list
}
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 ConfidenceIntervalMeter — a ConfidenceIntervalMeter output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ConfidenceIntervalMeter 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
get_norm_class Ran
ran; our contract draft was wrong, not the code
tri-ml/linear_open_lm/open_lm/norms.py
code served (permissive licence) · get_code("df90feaeceb948d1")
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 type. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 functools import partial

torch.manual_seed(0)

# The function get_norm_class takes a single parameter: model_norm (a string)
# It returns different norm classes/partials based on the string value
# We just need to test it with valid string inputs

ARGS = {
    'model_norm': 'default_layer_norm'
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
get_rectangular_causal_mask Ran
ran; our contract draft was wrong, not the code
tri-ml/linear_open_lm/open_lm/attention.py
code served (permissive licence) · get_code("03aee31b8bbd541f")
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, 3, 4, 5) 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)

ARGS = {
    "shape": (2, 3),
    "q_seq_len": 4,
    "k_seq_len": 5,
    "device": "cpu",
    "dtype": torch.float32,
}
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, 3, 4, 5) — shape (2, 3, 4, 5) 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_slopes_power_of_2 Ran
ran, honoured the contract we drafted
tri-ml/linear_open_lm/open_lm/model.py
code served (permissive licence) · get_code("234d4be90599afa0")
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 float; 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 math

# Test with different values of n
# The function only uses n and start, both are simple numeric types
# n should be a power of 2 for the function to work as intended (based on the docstring mentioning "power of 3" which seems like a typo for power of 2)
# start is optional and can be None or a numeric value

ARGS = {
    "n": 8,
    "start": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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 float — 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
is_global_master Ran
ran, violated the contract we drafted
tri-ml/linear_open_lm/open_lm/distributed.py
pointer only (licence: MIT); the stored copy get_code serves, from tileb1/simzss, is pointer only (licence: NONE) · get_code("7c29b374198bddcd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tileb1/simzss, 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.

is_local_master Ran
ran, violated the contract we drafted
tri-ml/linear_open_lm/open_lm/distributed.py
pointer only (licence: MIT); the stored copy get_code serves, from tileb1/simzss, is pointer only (licence: NONE) · get_code("0377e309e95cfc3e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tileb1/simzss, 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.

is_master Ran
ran, violated the contract we drafted
tri-ml/linear_open_lm/open_lm/distributed.py
pointer only (licence: MIT); the stored copy get_code serves, from tileb1/simzss, is pointer only (licence: NONE) · get_code("b092791002b40e8a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tileb1/simzss, 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.

maybe_load_config Ran
ran; our contract draft was wrong, not the code
tri-ml/linear_open_lm/open_lm/params.py
code served (permissive licence) · get_code("703ae0b4a799d756")
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 dict. 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 argparse
import tempfile
import json
import yaml
import os

# Create a temporary directory for config files
temp_dir = tempfile.mkdtemp()

# Create a sample YAML config file
yaml_config = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 10,
    'model_name': 'resnet50'
}
yaml_config_path = os.path.join(temp_dir, 'config.yaml')
with open(yaml_config_path, 'w') as f:
    yaml.dump(yaml_config, f)

# Create a parser with some arguments
parser = argparse.ArgumentParser()
parser.add_argument('--learning_rate', type=float, default=0.01)
parser.add_argument('--batch_size', type=int, default=16)
parser.add_argument('--epochs', type=int, default=5)
parser.add_argument('--model_name', type=str, default='vgg16')

# Prepare args list with config path
args = ['--config', yaml_config_path]

ARGS = {
    'parser': parser,
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
no_slope_tensor Ran
ran, honoured the contract we drafted
tri-ml/linear_open_lm/open_lm/model.py
code served (permissive licence) · get_code("e347aa4278492da6")
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 3, dtype family float, shape (8, 1, 1) 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)

ARGS = {
    "n_attention_heads": 8,
    "device": torch.device("cpu"),
    "dtype": torch.float32,
}
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 3, dtype family float, shape (8, 1, 1) — shape (8, 1, 1) 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
preprocess_json Ran
ran, honoured the contract we drafted
tri-ml/linear_open_lm/open_lm/data.py
code served (permissive licence) · get_code("913e58b6265fae28")
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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# preprocess_json takes:
# - text: iterable of values that can be int or other types
# - vocab_size: int used in modulo operation

# proc_token processes each element:
# - if int: returns x % vocab_size if x < 0, else x
# - otherwise: returns 0

# Create test arguments
text = [5, -3, 10, 0, -1, 15]  # Mix of positive, negative, and zero ints
vocab_size = 7

ARGS = {
    "text": text,
    "vocab_size": vocab_size
}
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 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
preprocess_txt Ran
ran, honoured the contract we drafted
tri-ml/linear_open_lm/open_lm/data.py
code served (permissive licence) · get_code("fc518c7f20985201")
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 ast
import torch

torch.manual_seed(0)

# The function preprocess_txt takes:
# 1. text: bytes object that contains a string representation of a list
# 2. vocab_size: int for modulo operation

# Create a valid bytes object containing a list literal
text = b"[1, 2, -5, 3, 10]"
vocab_size = 7

ARGS = {
    "text": text,
    "vocab_size": vocab_size
}
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
proc_token Ran
ran, honoured the contract we drafted
tri-ml/linear_open_lm/open_lm/data.py
code served (permissive licence) · get_code("cc40644322b3f4f3")
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

torch.manual_seed(0)

# The function proc_token takes two parameters:
# 1. x: can be an int or something else (defaults to 0 if not int)
# 2. vocab_size: an integer representing vocabulary size

# Test with a negative integer (triggers modulo operation)
x = -5
vocab_size = 10

ARGS = {
    "x": x,
    "vocab_size": vocab_size
}
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
remote_sync_fsspec Ran
ran, violated the contract we drafted
tri-ml/linear_open_lm/open_lm/file_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from MediaBrain-SJTU/DISSect, is pointer only (licence: NONE) · get_code("5ef1e6fce93e5928")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MediaBrain-SJTU/DISSect, 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.

torch_attn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tri-ml/linear_open_lm/open_lm/attention.py
code served (permissive licence) · get_code("632965ea87f107bf")
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, 2, 3, 4) 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)

# Create small tensors for queries, keys, values
# Shape: (batch_size, seq_len, num_heads, head_dim)
batch_size = 2
num_heads = 3
head_dim = 4

# Case 1: Basic causal attention with keys.shape[1] > queries.shape[1] > 1
q_seq_len = 2
k_seq_len = 5

queries = torch.randn(batch_size, q_seq_len, num_heads, head_dim)
keys = torch.randn(batch_size, k_seq_len, num_heads, head_dim)
values = torch.randn(batch_size, k_seq_len, num_heads, head_dim)

ARGS = {
    "queries": queries,
    "keys": keys,
    "values": values,
    "is_causal": True,
    "attention_mask": None,
}
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, 2, 3, 4) — shape (2, 2, 3, 4) 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
remote_sync Not yet run
unverified (harvested, no recorded run)
tri-ml/linear_open_lm/open_lm/file_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from MediaBrain-SJTU/DISSect, is pointer only (licence: NONE) · get_code("c8826eee91bf0f73")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MediaBrain-SJTU/DISSect, 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. No invocation recorded.

remote_sync_s3 Not yet run
unverified (harvested, no recorded run)
tri-ml/linear_open_lm/open_lm/file_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from MediaBrain-SJTU/DISSect, is pointer only (licence: NONE) · get_code("0cf5fb2e3a3a9114")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MediaBrain-SJTU/DISSect, 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. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 6 the same month, 6 later) and 12 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
is_global_master 10 other papers
4 dated earlier, 2 the same month, 4 later
2003.04297 (2020-03)
Improved Baselines with Momentum Contrastive Learning
2302.14042 (2023-02)
Knowledge-enhanced Visual-Language Pre-training on Chest Radiology Images
2308.05734 (2023-08)
AudioLDM 2: Learning Holistic Audio Generation with Self-supervised Pretraining
and 7 more not named here
is_master 9 other papers
4 dated earlier, 1 the same month, 4 later
2302.14042 (2023-02)
Knowledge-enhanced Visual-Language Pre-training on Chest Radiology Images
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2308.05734 (2023-08)
AudioLDM 2: Learning Holistic Audio Generation with Self-supervised Pretraining
and 6 more not named here
is_local_master 8 other papers
3 dated earlier, 1 the same month, 4 later
2302.14042 (2023-02)
Knowledge-enhanced Visual-Language Pre-training on Chest Radiology Images
2308.05734 (2023-08)
AudioLDM 2: Learning Holistic Audio Generation with Self-supervised Pretraining
2311.17048 (2023-11)
Zero-shot Referring Expression Comprehension via Structural Similarity Between Images and Captions
and 5 more not named here
remote_sync 4 other papers
1 the same month, 3 later
2405.08815 (2024-05)
Efficient Vision-Language Pre-training by Cluster Masking
2406.17639 (2024-06)
Mitigate the Gap: Investigating Approaches for Improving Cross-Modal Alignment in CLIP
2409.01936 (2024-09)
Optimizing CLIP Models for Image Retrieval with Maintained Joint-Embedding Alignment
and 1 more not named here
remote_sync_fsspec 4 other papers
1 the same month, 3 later
2405.08815 (2024-05)
Efficient Vision-Language Pre-training by Cluster Masking
2406.17639 (2024-06)
Mitigate the Gap: Investigating Approaches for Improving Cross-Modal Alignment in CLIP
2409.01936 (2024-09)
Optimizing CLIP Models for Image Retrieval with Maintained Joint-Embedding Alignment
and 1 more not named here
remote_sync_s3 4 other papers
1 the same month, 3 later
2405.08815 (2024-05)
Efficient Vision-Language Pre-training by Cluster Masking
2406.17639 (2024-06)
Mitigate the Gap: Investigating Approaches for Improving Cross-Modal Alignment in CLIP
2409.01936 (2024-09)
Optimizing CLIP Models for Image Retrieval with Maintained Joint-Embedding Alignment
and 1 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

Linear transformers have emerged as a subquadratic-time alternative to softmax attention and have garnered significant interest due to their fixed-size recurrent state that lowers inference cost. However, their original formulation suffers from poor scaling and underperforms compute-matched transformers. Recent linear models such as RWKV and Mamba have attempted to address these shortcomings by proposing novel time-mixing and gating architectures, but pre-training large language models requires significant data and compute investments. Thus, the search for subquadratic architectures is limited by the availability of compute and quality pre-training datasets. As a cost-effective alternative to pre-training linear transformers, we propose Scalable UPtraining for Recurrent Attention (SUPRA). We present a method to uptrain existing large pre-trained transformers into Recurrent Neural Networks (RNNs) with a modest compute budget. This allows us to leverage the strong pre-training data and performance of existing transformer LLMs, while requiring 5% of the training cost. We find that our linearization technique leads to competitive performance on standard benchmarks, but we identify persistent in-context learning and long-context modeling shortfalls for even the largest linear models. Our code and models can be found at https://github.com/TRI-ML/linear_open_lm.

For agents

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

get_harvested_code_for_paper("2405.06640")
get_code_for_paper("2405.06640")
have("2405.06640")

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

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

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

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

Connect an agent — have() is free.