SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · openreview_d3RFDLBw01

STLA: Spatiotemporal Lookahead Alignment for Post-Training Quantization

Jiawei Xu, Zuqi Zhang, Chenghe Sun, Xiangyi Chu, Wei-Han Yu, Ka-Fai Un, Rui Martins, Pui-In Mak

OpenReview · Open in the Atlas

Code that ran

14 of 21 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 6 have no contract verdict; 8 failures of our instrument; 7 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/openreview_d3RFDLBw01.json · badge: /api/ran/openreview_d3RFDLBw01.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
AI2C-Lab/STLA canonical (classifier label)
classifier basis: census
14 ran · 7 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AI2C-Lab/STLA/modeling_llama_custom.py
code served (permissive licence) · get_code("30d7eec482ebf6b1")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 6, 5, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:09:20Z). 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 a tensor with shape (batch, num_key_value_heads, seqlen, head_dim)
# Using distinct sizes: batch=2, num_key_value_heads=3, seqlen=5, head_dim=4
hidden_states = torch.randn(2, 3, 5, 4)

# n_rep is the repetition factor
n_rep = 2

ARGS = {
    "hidden_states": hidden_states,
    "n_rep": n_rep,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 6, 5, 4) — shape (2, 6, 5, 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
apply_rotary_pos_emb Ran
ran; our contract draft was wrong, not the code
AI2C-Lab/STLA/modeling_llama_custom.py
code served (permissive licence) · get_code("bac65c3dafaec040")
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) and returned tuple, ndim 5, 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 torch

torch.manual_seed(0)

# Create small tensors for query and key
# Shape: [batch_size, heads, seq_len, head_dim]
batch_size = 2
heads = 3
seq_len = 4
head_dim = 8

q = torch.randn(batch_size, heads, seq_len, head_dim)
k = torch.randn(batch_size, heads, seq_len, head_dim)

# Create cos and sin tensors
# Shape: [batch_size, seq_len, head_dim]
cos = torch.randn(batch_size, seq_len, head_dim)
sin = torch.randn(batch_size, seq_len, head_dim)

# position_ids is optional and unused according to docstring
position_ids = None

# unsqueeze_dim defaults to 1
unsqueeze_dim = 1

ARGS = {
    "q": q,
    "k": k,
    "cos": cos,
    "sin": sin,
    "position_ids": position_ids,
    "unsqueeze_dim": unsqueeze_dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 5, dtype family float — 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
bloom_gelu_forward Ran
ran; our contract draft was wrong, not the code
AI2C-Lab/STLA/modeling_bloom_custom.py
code served (permissive licence) · get_code("fea555fa29409762")
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 2, dtype family float, shape (2, 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
import torch.nn as nn

torch.manual_seed(0)

# Create a small input tensor with shape (batch=2, dim=4)
x = torch.randn(2, 4)

ARGS = {
    "x": x,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
build_alibi_tensor Ran
ran; our contract draft was wrong, not the code
AI2C-Lab/STLA/modeling_bloom_custom.py
code served (permissive licence) · get_code("4a678475b134e3a3")
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 (16, 1, 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
import math

torch.manual_seed(0)

# Create a small attention mask tensor
# Shape: (batch_size, seq_length)
batch_size = 2
seq_length = 4
attention_mask = torch.ones(batch_size, seq_length, dtype=torch.long)

# Set num_heads to a value
num_heads = 8

# Set dtype
dtype = torch.float32

ARGS = {
    "attention_mask": attention_mask,
    "num_heads": num_heads,
    "dtype": dtype,
}
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 (16, 1, 4) — shape (16, 1, 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
compute_loss_perturb Ran
ran on a synthesized input
AI2C-Lab/STLA/quant_utils.py
code served (permissive licence) · get_code("c94cc56c97c30fb9")
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 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)

# Analyze the function:
# - weight: tensor used in quantize_zfold and subtracted from delta_w
# - scale: scalar or tensor, used in quantize_zfold
# - zero: scalar or tensor, used in quantize_zfold (zero_point parameter)
# - zeta: scalar or tensor, used in quantize_zfold
# - nbits: integer, used in quantize_zfold
# - H: tensor with shape that can be 3D (num_heads, ?, ?) or 2D
#       used in matrix multiplication: delta_w @ H
#       delta_w shape after potential reshape: (num_heads, -1, delta_w.shape[-1])

# For compute_loss_perturb to work:
# - weight should be a 2D tensor (e.g., num_output_features x input_features)
# - H should be compatible for matrix multiplication
# - If H is 3D: shape (num_heads, input_features, input_features)
# - If H is 2D: shape (input_features, input_features)

# Let's construct with H as 3D for fuller coverage:
# weight: (8, 4) - 8 output features, 4 input features
# H: (2, 4, 4) - 2 heads, 4x4 Hessian-like matrices

weight = torch.randn(8, 4)
scale = torch.tensor(0.1)
zero = torch.tensor(0.0)
zeta = torch.tensor(1.0)
nbits = 8
H = torch.randn(2, 4, 4)

ARGS = {
    "weight": weight,
    "scale": scale,
    "zero": zero,
    "zeta": zeta,
    "nbits": nbits,
    "H": H,
}
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 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
dropout_add Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AI2C-Lab/STLA/modeling_bloom_custom.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from damo-nlp-sg/multilingual_analysis, is pointer only (licence: NONE) · get_code("546c22d62993a619")
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 damo-nlp-sg/multilingual_analysis, 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.

find_layers Ran
ran; our contract draft was wrong, not the code
AI2C-Lab/STLA/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from SamsungLabs/aespa, is pointer only (licence: NOASSERTION) · get_code("1174e949ac22ea59")
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 SamsungLabs/aespa, and GitHub could not classify the licence of that repository (NOASSERTION). 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_aespa_weight_quant_infos Ran
ran on a synthesized input
AI2C-Lab/STLA/utils.py
code served (permissive licence) · get_code("0da8af054b07f41a")
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 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 torch
import numpy as np
from argparse import Namespace

torch.manual_seed(0)

ARGS = {
    'args': Namespace(
        w_bits=8,
        w_sym=True,
        block_v=128,
        use_zfold=False,
        learn_rounding=True,
        comp_method='min_max',
        loss_option='L2',
        order_option='normal',
        blocksize=64,
        clustersize=32,
        groupsize=16,
        lr=0.001,
        round_weight=1.0,
        round_weight_qkv=0.5,
        num_iters=100,
        replace=True,
        percdamp=0.01
    )
}
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 tuple, ndim 1, dtype family float — 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
get_bloom Ran
ran on a synthesized input
AI2C-Lab/STLA/model_utils.py
code served (permissive licence) · get_code("c27a9208b36dddd1")
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 MockBloomForCausalLM. 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
import torch.nn as nn
from unittest.mock import Mock, MagicMock, patch

torch.manual_seed(0)

# Create a minimal mock of BloomAttention that has the required methods
class MockBloomAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def custom_split_qkv(self):
        pass
    
    def custom_renaming(self):
        pass

# Create a minimal mock of BloomBlock that has the required methods
class MockBloomBlock(nn.Module):
    def __init__(self):
        super().__init__()
        self.attention = MockBloomAttention()
        self.linear = nn.Linear(4, 4)
    
    def custom_renaming(self):
        pass

# Create a minimal mock BloomForCausalLM model
class MockBloomForCausalLM(nn.Module):
    def __init__(self):
        super().__init__()
        self.h = nn.ModuleList([
            MockBloomBlock(),
            MockBloomBlock(),
        ])
        self.embedding = nn.Embedding(100, 4)
    
    @classmethod
    def from_pretrained(cls, model_path, torch_dtype='auto'):
        return cls()

# Patch the imports in the convert_bloom and get_bloom functions
def get_bloom_setup(model_path):
    # Mock the modeling_bloom_custom module
    mock_module = MagicMock()
    mock_module.BloomAttention = MockBloomAttention
    mock_module.BloomBlock = MockBloomBlock
    mock_module.BloomForCausalLM = MockBloomForCausalLM
    
    import sys
    sys.modules['modeling_bloom_custom'] = mock_module
    
    from modeling_bloom_custom import BloomForCausalLM
    
    def convert_bloom(model):
        from modeling_bloom_custom import BloomAttention, BloomBlock
        for module in model.modules():
            if isinstance(module, BloomAttention):
                module.custom_split_qkv()
                module.custom_renaming()
        for module in model.modules():
            if isinstance(module, BloomBlock):
                module.custom_renaming()
        return model

    def get_bloom(model_path):
        from modeling_bloom_custom import BloomForCausalLM
        model = BloomForCausalLM.from_pretrained(model_path, torch_dtype='auto')
        model = convert_bloom(model)
        return model
    
    return get_bloom

# Setup the mock module before defining ARGS
mock_module = MagicMock()
mock_module.BloomAttention = MockBloomAttention
mock_module.BloomBlock = MockBloomBlock
mock_module.BloomForCausalLM = MockBloomForCausalLM

import sys
sys.modules['modeling_bloom_custom'] = mock_module

ARGS = {
    'model_path': '/tmp/bloom_model',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
modeling_bloom_custom, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockBloomForCausalLM — a MockBloomForCausalLM output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockBloomForCausalLM 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
quantize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AI2C-Lab/STLA/quantizer.py
code served (permissive licence) · get_code("41c57e55d21c4d96")
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 2, dtype family float, shape (2, 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 a small tensor for x (batch_size=2, features=4)
x = torch.randn(2, 4)

# Create scalar scale parameter
scale = torch.tensor(0.1)

# Create scalar zero parameter
zero = torch.tensor(0.0)

# Create integer maxq parameter (positive value for normal quantization)
maxq = 255

ARGS = {
    "x": x,
    "scale": scale,
    "zero": zero,
    "maxq": maxq,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
quantize_zfold Ran
ran on a synthesized input
AI2C-Lab/STLA/quant_utils.py
code served (permissive licence) · get_code("28a084a8516c0bca")
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 2, dtype family float, shape (2, 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)

# Construct small tensors for quantization
weight = torch.randn(2, 4)
scale = torch.tensor(0.1)
zero = torch.tensor(0, dtype=torch.int32)
zeta = torch.tensor(1.5)
nbits = 8

ARGS = {
    "weight": weight,
    "scale": scale,
    "zero": zero,
    "zeta": zeta,
    "nbits": nbits,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
rotate_half Ran
ran; our contract draft was wrong, not the code
AI2C-Lab/STLA/modeling_llama_custom.py
code served (permissive licence) · get_code("b99eea6376d1e212")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 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)

# The function rotate_half takes a single parameter 'x' which is a tensor
# It accesses x.shape[-1] to get the last dimension
# It uses indexing with [..., :] slicing notation
# It calls torch.cat() to concatenate tensors

# Create a small tensor with shape (2, 4) - batch size 2, hidden dim 4
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 2, dtype family float, shape (2, 4) — shape (2, 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
set_qmodel_dir Ran
ran on a synthesized input
AI2C-Lab/STLA/utils.py
code served (permissive licence) · get_code("f8c4d182a7ce2add")
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 torch
import numpy as np

class Args:
    def __init__(self):
        self.model_name = "bert"
        self.w_bits = 8
        self.w_sym = True
        self.calib_data = "wikitext2"
        self.nsamples = 128
        self.seqlen = 512
        self.seed = 42
        self.block_v = False
        self.use_zfold = False
        self.act_order = False
        self.learn_rounding = False
        self.lr = 0.001
        self.round_weight = 1.0
        self.round_weight_qkv = 1.0
        self.num_iters = 100

ARGS = {
    "args": Args()
}
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 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
uniform_quantize Ran
ran on a synthesized input
AI2C-Lab/STLA/quant_utils.py
code served (permissive licence) · get_code("61bf7ef02dcdaf79")
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 2, dtype family float, shape (2, 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 a small tensor for quantization
x = torch.randn(2, 4)

# Define quantization parameters
scale = torch.tensor(0.1)  # Scaling factor
zero_point = torch.tensor(128, dtype=torch.long)  # Zero point for symmetric quantization
nbits = 8  # Number of bits for quantization

ARGS = {
    "x": x,
    "scale": scale,
    "zero_point": zero_point,
    "nbits": nbits,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
eval Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/eval_utils.py
code served (permissive licence) · get_code("1894e478c4293c1e")
How it ran

no invocation recorded.

get_c4 Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/data_utils.py
code served (permissive licence) · get_code("3e8381ec040b34cc")
How it ran

no invocation recorded.

get_llama Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/model_utils.py
code served (permissive licence) · get_code("00f92653e59d38b4")
How it ran

no invocation recorded.

get_opt Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/model_utils.py
code served (permissive licence) · get_code("a83d9505d0f4a7ae")
How it ran

no invocation recorded.

get_ptb_new Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/data_utils.py
code served (permissive licence) · get_code("0223c0e382ca7261")
How it ran

no invocation recorded.

get_rot_emb Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/quantize.py
code served (permissive licence) · get_code("92baf14907fbff4e")
How it ran

no invocation recorded.

get_wikitext2 Not yet run
unverified (harvested, no recorded run)
AI2C-Lab/STLA/data_utils.py
code served (permissive licence) · get_code("ed50f961b7ece8a5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 8 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 13 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
rotate_half 360 other papers
358 same year, order not determinable, 2 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
repeat_kv 243 other papers
242 same year, order not determinable, 1 undated · 22 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
and 240 more not named here
apply_rotary_pos_emb 94 other papers
92 same year, order not determinable, 2 undated · 6 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
2309.11674 (2023-09)
A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models
and 91 more not named here
quantize 9 other papers
9 same year, order not determinable · 1 only as an assembly brick
2210.17323 (2022-10)
GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
2023.emnlp-main.892 (2023 (year only))
Z-FOLD: A Frustratingly Easy Post-Training Quantization Scheme for LLMs
2312.05215 (2023-12)
DeltaZip: Efficient Serving of Multiple Full-Model-Tuned LLMs
and 6 more not named here
dropout_add 8 other papers
8 same year, order not determinable
2311.04219 (2023-11)
OtterHD: A High-Resolution Multi-modality Model
2311.13230 (2023-11)
Enhancing Uncertainty-Based Hallucination Detection with Stronger Focus
2024.findings-acl.347 (2024 (year only))
Mass-Editing Memory with Attention in Transformers: A cross-lingual exploration of knowledge
and 5 more not named here
bloom_gelu_forward 3 other papers
3 same year, order not determinable
2402.18815 (2024-02)
How do Large Language Models Handle Multilingualism?
2403.04945 (2024-03)
MEIT: Multimodal Electrocardiogram Instruction Tuning on Large Language Models for Report Generation
2404.10933 (2024-04)
LLMem: Estimating GPU Memory Usage for Fine-Tuning Pre-Trained LLMs
build_alibi_tensor 3 other papers
3 same year, order not determinable
2402.18815 (2024-02)
How do Large Language Models Handle Multilingualism?
2403.04945 (2024-03)
MEIT: Multimodal Electrocardiogram Instruction Tuning on Large Language Models for Report Generation
2404.10933 (2024-04)
LLMem: Estimating GPU Memory Usage for Fine-Tuning Pre-Trained LLMs
find_layers 1 other paper
1 same year, order not determinable
2402.08958 (2024-02)
Towards Next-Level Post-Training Quantization of Hyper-Scale Transformers

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

Adaptive rounding techniques in Post-Training Quantization (PTQ) enable the efficient deployment of Large Language Models (LLMs) with low resource and data dependencies. While learning-based rounding methods are accurate yet costly, compensation-based approaches offer a highly efficient alternative. However, synergizing these two to realize their full potential is hindered by spatiotemporal misalignment in the decoupled paradigm. Key challenges include temporal parameter conflict, the invalidation of the initial Round-to-Nearest (RTN) assumption, and spatially-inconsistent optimization objectives. This paper introduces STLA, a novel roundingoptimized PTQ framework that achieves both fast and accurate LLM quantization. STLA resolves temporal inconsistency through clusterwise integrated rounding optimization, which collocates the learning and compensation phases. STLA achieves spatial alignment through a unified global objective derived from the Schur Complement, enabling the solver to look ahead and align local rounding decisions with the optimal future compensation of remaining weights. Furthermore, we propose a Hessian-guided clustering strategy that exploits both diagonal and offdiagonal information to maximize intra-cluster error cancellation. Extensive experiments demonstrate that STLA establishes a new state-of-the-art for low-bit PTQ while maintaining high computational efficiency. The code is available at https: //github.com/AI2C-Lab/STLA.

For agents

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

get_harvested_code_for_paper("openreview_d3RFDLBw01")
get_code_for_paper("openreview_d3RFDLBw01")
have("openreview_d3RFDLBw01")

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

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

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

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

Connect an agent — have() is free.