SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2022.emnlp-demos.40 · EMNLP · 2022

BMCook: A Task-agnostic Compression Toolkit for Big Models

Maosong Sun, Zhiyuan Liu, Xu Han, Zhengyan Zhang, Weilin Zhao, Guoyang Zeng, Baitao Gong, Yingfa Chen, Yanxu Chen

Open in the Atlas

Code that ran

16 of 20 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; 3 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 5 failures of our instrument; 4 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/2022.emnlp-demos.40.json · badge: /api/ran/2022.emnlp-demos.40.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
OpenBMB/ModelCenter canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
OpenBMB/BMCook canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
OpenBMB/BMTrain canonical (classifier label)
classifier basis: census
2 ran · 2 no recorded run
FunctionStatusWhere it lives
add_model_config_args Ran
ran; our contract draft was wrong, not the code
OpenBMB/ModelCenter/model_center/arguments.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thunlp/unifiedinstructiontuning, is pointer only (licence: NONE) · get_code("c8e969fe51c6f843")
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 thunlp/unifiedinstructiontuning, 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_dataset Ran
ran; our contract draft was wrong, not the code
OpenBMB/ModelCenter/model_center/dataset/distributed_dataset.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thunlp/unifiedinstructiontuning, is pointer only (licence: NONE) · get_code("2610bd6913783d7c")
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 thunlp/unifiedinstructiontuning, 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.

code Ran
ran, honoured the contract we drafted
OpenBMB/ModelCenter/model_center/dataset/distributed_indexed.py
code served (permissive licence) · get_code("18d94355ea8f1c39")
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 numpy as np

dtypes = {1: np.uint8, 2: np.int8, 3: np.int16, 4: np.int32, 5: np.int64, 6: np.float32, 7: np.double, 8: np.uint16}

def code(dtype):
    for k in dtypes.keys():
        if dtypes[k] == dtype:
            return k
    raise ValueError(dtype)

# Test with np.float32
ARGS = {
    "dtype": np.float32
}
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 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
compute_valid_1d_patterns Ran
ran on a synthesized input
OpenBMB/BMCook/bmcook/pruning/prune_func.py
code served (permissive licence) · get_code("4f098705fb27c368")
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 (6, 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
from itertools import permutations

torch.manual_seed(0)

ARGS = {
    "m": 4,
    "n": 2,
}
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 (6, 4) — shape (6, 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
data_file_path Ran
ran; our contract draft was wrong, not the code
OpenBMB/ModelCenter/model_center/dataset/distributed_indexed.py
code served (permissive licence) · get_code("bdf28f9492a770dc")
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

torch.manual_seed(0)

ARGS = {
    "prefix_path": "/tmp/data_file"
}
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 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
fill Ran
ran on a synthesized input
OpenBMB/BMCook/bmcook/pruning/prune_func.py
code served (permissive licence) · get_code("af5b9b0b2f4c1703")
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 float, 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 takes a tensor x and computes the sparsity as a float
# It calls x.nonzero() to find non-zero elements and x.numel() to get total elements
# So we need a tensor with some zero and non-zero values

x = torch.tensor([
    [1.0, 0.0, 2.0, 0.0],
    [0.0, 3.0, 0.0, 4.0]
])

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 float, 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
get_best_cluster_for_point Ran
ran on a synthesized input
OpenBMB/BMCook/bmcook/moefication/clustering/equal_groups.py
code served (permissive licence) · get_code("17a5fb85bfe40327")
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

torch.manual_seed(0)

# Create a small all_distances matrix
# Shape: (num_clusters, num_points)
# This represents distances from each cluster to each point
all_distances = torch.tensor([
    [0.5, 1.2, 0.8],
    [2.1, 0.3, 1.5],
    [1.0, 2.0, 0.2]
], dtype=torch.float32)

# point index
point = 1

ARGS = {
    "point": point,
    "all_distances": all_distances
}
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_best_point_distances Ran
ran on a synthesized input
OpenBMB/BMCook/bmcook/moefication/clustering/equal_groups.py
code served (permissive licence) · get_code("49f27be652341867")
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 2, 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

torch.manual_seed(0)

# Create small test data
# all_distances should be a 2D array/tensor where we can index [:, point]
# Shape: (num_clusters, num_points)
all_distances = torch.tensor([
    [1.5, 2.3, 0.8],
    [3.2, 1.1, 2.9],
    [0.5, 4.2, 1.3],
    [2.1, 0.9, 3.5]
], dtype=torch.float32)

point = 1

ARGS = {
    "point": point,
    "all_distances": all_distances
}
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 2, 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
get_layer_num Ran
ran, honoured the contract we drafted
OpenBMB/BMCook/bmcook/moefication/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thunlp/moefication, is pointer only (licence: NONE) · get_code("0a1340701fa70104")
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 thunlp/moefication, 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.

index_file_path Ran
ran; our contract draft was wrong, not the code
OpenBMB/ModelCenter/model_center/dataset/distributed_indexed.py
code served (permissive licence) · get_code("8b1a74a6db32c163")
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

torch.manual_seed(0)

ARGS = {
    "prefix_path": "/tmp/test_index"
}
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 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
iterate_parameters Ran
ran on a synthesized input
OpenBMB/BMTrain/bmtrain/param_init.py
code served (permissive licence) · get_code("f67cb70123a12d68")
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 generator. 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

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.param_with_flag = nn.Parameter(torch.randn(2, 4))
        self.param_with_flag._in_block = True
        self.param_without_flag = nn.Parameter(torch.randn(3, 5))
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

ARGS = {
    "model": model
}
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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
load_ffn_weight Ran
ran, honoured the contract we drafted
OpenBMB/BMCook/bmcook/moefication/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thunlp/moefication, is pointer only (licence: NONE) · get_code("158405f0f4beeff8")
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 thunlp/moefication, 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.

load_hidden_states Ran
ran on a synthesized input
OpenBMB/BMCook/bmcook/moefication/utils.py
code served (permissive licence) · get_code("dc34db1c9f7dc7bb")
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 3, 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 os
import tempfile
import shutil

torch.manual_seed(0)

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
hiddens_dir = os.path.join(temp_dir, 'hiddens')
os.makedirs(hiddens_dir, exist_ok=True)

# Create some dummy hidden state files
# Each file contains a dict with layer indices as keys
for i in range(3):
    hiddens_dict = {
        0: torch.randn(2, 4),
        1: torch.randn(2, 4),
        2: torch.randn(2, 4),
    }
    filepath = os.path.join(hiddens_dir, str(i))
    torch.save(hiddens_dict, filepath)

# Arguments for the function
ARGS = {
    'folder': temp_dir,
    'layer': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, 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
pad Ran
ran on a synthesized input
OpenBMB/ModelCenter/model_center/generation/generation_utils.py
code served (permissive licence) · get_code("361ae26b3ac1d575")
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 int, shape (2, 3) 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)

# Case 1: 2D tensors with different lengths (requires padding)
orig_items = [
    {'input_ids': torch.tensor([[1, 2, 3]])},
    {'input_ids': torch.tensor([[4, 5]])}
]

ARGS = {
    'orig_items': orig_items,
    'key': 'input_ids',
    'padding_value': 0,
    'padding_side': 'left'
}
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 int, shape (2, 3) — shape (2, 3) 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
storage_type_cuda Ran
ran on a synthesized input
OpenBMB/BMTrain/bmtrain/block_layer.py
code served (permissive licence) · get_code("4f2a35ada713ed81")
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 _LegacyStorageMeta. 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

torch.manual_seed(0)

# The function takes a storage_type parameter and maps it to a cuda storage type
# We need to provide one of the valid storage types from the STORAGE_MAP

ARGS = {
    "storage_type": torch.FloatStorage
}
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 _LegacyStorageMeta — a _LegacyStorageMeta output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _LegacyStorageMeta 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
top_k_top_p_filtering Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
OpenBMB/ModelCenter/model_center/generation/generation_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from openbmb/viscpm, is pointer only (licence: NONE) · get_code("d9a981c1eb0f46fc")
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 openbmb/viscpm, 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.

add_training_args Not yet run
unverified (harvested, no recorded run)
OpenBMB/ModelCenter/model_center/arguments.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thunlp/unifiedinstructiontuning, is pointer only (licence: NONE) · get_code("13534729932a1182")
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 thunlp/unifiedinstructiontuning, 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.

fused_sumexp Not yet run
unverified (harvested, no recorded run)
OpenBMB/BMTrain/bmtrain/loss/_function.py
code served (permissive licence) · get_code("2d7c2f50c17fd9cb")
How it ran

no invocation recorded.

get Not yet run
unverified (harvested, no recorded run)
OpenBMB/BMTrain/bmtrain/debug.py
code served (permissive licence) · get_code("210cf4c28eb1b0c6")
How it ran

no invocation recorded.

reshape_1d Not yet run
unverified (harvested, no recorded run)
OpenBMB/BMCook/bmcook/pruning/prune_func.py
code served (permissive licence) · get_code("957e045aa8053073")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 10 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 9 later) and 10 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
data_file_path 8 other papers
8 later
2302.13939 (2023-02)
SpikeGPT: Generative Pre-trained Language Model with Spiking Neural Networks
2305.09137 (2023-05)
Pre-Training to Learn in Context
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
and 5 more not named here
index_file_path 8 other papers
8 later
2302.13939 (2023-02)
SpikeGPT: Generative Pre-trained Language Model with Spiking Neural Networks
2305.09137 (2023-05)
Pre-Training to Learn in Context
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
and 5 more not named here
code 7 other papers
7 later
2305.09137 (2023-05)
Pre-Training to Learn in Context
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
2312.02406 (2023-12)
Efficient Online Data Mixing For Language Model Pre-Training
and 4 more not named here
add_model_config_args 3 other papers
3 later
2305.06849 (2023-05)
WEBCPM: Interactive Web Search for Chinese Long-form Question Answering
2307.07705 (2023-07)
CA-LoRA: Adapting Existing LoRA for Compressed LLMs to Enable Efficient Multi-Tasking on Personal Devices
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
add_training_args 1 other paper
1 later
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
build_dataset 1 other paper
1 later
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
get_layer_num 1 other paper
1 later
2410.03440 (2024-10)
Exploring the Benefit of Activation Sparsity in Pre-training
load_ffn_weight 1 other paper
1 later
2410.03440 (2024-10)
Exploring the Benefit of Activation Sparsity in Pre-training
reshape_1d 1 other paper
1 same year, order not determinable
2204.12266 (2022-04)
Attentive Fine-Grained Structured Sparsity for Image Restoration
top_k_top_p_filtering 1 other paper
1 later
2308.12038 (2023-08)
Large Multilingual Models Pivot Zero-Shot Multimodal Learning across Languages

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

Recently, pre-trained language models (PLMs) have achieved great success on various NLP tasks and have shown a trend of exponential growth in model size. To alleviate the unaffordable computational costs brought by the size growth, model compression has been widely explored. Existing efforts have achieved promising results in compressing medium-sized models for specific tasks, while task-agnostic compression for big models with over billions of parameters is rarely studied. Task-agnostic compression can provide an efficient and versatile big model for both prompting and delta tuning, leading to a more general impact than task-specific compression. Hence, we introduce a task-agnostic compression toolkit BMCook for big models. In BMCook, we implement four representative compression methods, including quantization, pruning, distillation, and MoEfication. Developers can easily combine these methods towards better efficiency. To evaluate BMCook, we apply it to compress T5-3B (a PLM with 3 billion parameters). We achieve nearly 12x efficiency improvement while maintaining over 97% of the original T5-3B performance on three typical NLP benchmarks. Moreover, the final compressed model also significantly outperforms T5-base (a PLM with 220 million parameters), which has a similar computational cost. BMCook is publicly available at https: //github.com/OpenBMB/BMCook.

For agents

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

get_harvested_code_for_paper("2022.emnlp-demos.40")
get_code_for_paper("2022.emnlp-demos.40")
have("2022.emnlp-demos.40")

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

curl https://syntology.ai/api/ran/2022.emnlp-demos.40.json

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

[![Syntology run record](https://syntology.ai/api/ran/2022.emnlp-demos.40.svg)](https://syntology.ai/paper/2022.emnlp-demos.40)

Connect an agent — have() is free.