SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.06180 · 2023

Efficient Memory Management for Large Language Model Serving with PagedAttention

Zhuohan Li, Joseph Gonzalez, Ion Stoica, Woosuk Kwon, Siyuan Zhuang, Hao Zhang, Lianmin Zheng, Ying Sheng, Cody Yu

arXiv · PDF · Open in the Atlas

Code that ran

28 of 36 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; 6 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 20 failures of our instrument; 8 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2309.06180.json · badge: /api/ran/2309.06180.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
ROCm/flash-attention community (classifier label)
classifier basis not recorded on the link
16 ran · 2 no recorded run
rasmith/vllm community (classifier label)
classifier basis not recorded on the link
9 ran · 6 no recorded run
adlik/vllm community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
apply_rotary_emb_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ROCm/flash-attention/flash_attn/layers/rotary.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("5ec949977c334f87")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

attention_pytorch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ROCm/flash-attention/flash_attn/cute/benchmark_flash_attention_fp8.py
code served (permissive licence) · get_code("4afe00a5853d633f")
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 4, dtype family float, shape (2, 4, 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
import math

torch.manual_seed(0)

# Create a small qkv tensor
# Shape: (batch, seqlen, 3, nheads, headdim)
batch_size = 2
seqlen = 4
nheads = 3
headdim = 4

qkv = torch.randn(batch_size, seqlen, 3, nheads, headdim, dtype=torch.float32)

# causal is a boolean flag
causal = True

ARGS = {
    "qkv": qkv,
    "causal": causal,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 4) — shape (2, 4, 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
attention_pytorch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ROCm/flash-attention/benchmarks/benchmark_flash_attention.py
code served (permissive licence) · get_code("942ce4d7b0714c0a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 8) 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 math
import torch
import torch.nn.functional as F
from einops import rearrange, repeat

torch.manual_seed(0)

# Construct a minimal qkv tensor
# Shape: (batch_size, seqlen, 3, nheads, head_dim)
batch_size = 2
seqlen = 4
nheads = 3
head_dim = 8

qkv = torch.randn(batch_size, seqlen, 3, nheads, head_dim, dtype=torch.float32)

ARGS = {
    "qkv": qkv,
    "dropout_p": 0.0,
    "causal": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 8) — shape (2, 4, 3, 8) 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
convert_blockmask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ROCm/flash-attention/flash_attn/flash_blocksparse_attn_interface.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("cc628b160e090ba1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

create_fp4_scale_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rasmith/vllm/vllm/_custom_ops.py
code served (permissive licence) · get_code("5c034fc95116b35f")
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 (256, 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

# Mock the round_up function that's imported from vllm.utils.math_utils
def round_up(value: int, multiple: int) -> int:
    return ((value + multiple - 1) // multiple) * multiple

# Patch the function to use our mock
import sys
from unittest.mock import MagicMock

vllm_mock = MagicMock()
vllm_mock.utils.math_utils.round_up = round_up
sys.modules['vllm'] = vllm_mock
sys.modules['vllm.utils'] = vllm_mock.utils
sys.modules['vllm.utils.math_utils'] = vllm_mock.utils.math_utils

torch.manual_seed(0)

ARGS = {
    "m": 256,
    "n": 64,
    "device": torch.device("cpu"),
    "is_sf_swizzled_layout": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, vllm — 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 (256, 1) — shape (256, 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
efficiency Ran
ran, honoured the contract we drafted
ROCm/flash-attention/flash_attn/cute/benchmark_flash_attention_fp8.py
code served (permissive licence) · get_code("f29cb637db3ec374")
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 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 math

def efficiency(flop: int, seconds: float) -> float:
    return flop / seconds / 1000000000000.0 if not math.isnan(seconds) else 0.0

ARGS = {
    "flop": 1000000000000,
    "seconds": 2.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
efficiency Ran
ran, honoured the contract we drafted
ROCm/flash-attention/benchmarks/benchmark_flash_attention.py
code served (permissive licence) · get_code("b5de75d142329f03")
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 math
import torch

torch.manual_seed(0)

# The function efficiency(flop, time) computes flop / time / 10**12
# if time is not NaN, else returns 0.0
# Both parameters are numeric values

flop_value = 1e12  # 1 trillion FLOPs
time_value = 2.5   # 2.5 seconds

ARGS = {
    "flop": flop_value,
    "time": time_value,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
flash_attn_qkvpacked_func Ran
ran; our contract draft was wrong, not the code
ROCm/flash-attention/flash_attn/flash_attn_interface.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("7541ce9614862680")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

flops Ran
ran, honoured the contract we drafted
ROCm/flash-attention/flash_attn/cute/benchmark_flash_attention_fp8.py
code served (permissive licence) · get_code("e73bdfbda28da341")
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 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)

ARGS = {
    "batch": 2,
    "seqlen": 4,
    "headdim": 3,
    "nheads": 5,
    "causal": True,
}
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 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
flops Ran
ran, honoured the contract we drafted
ROCm/flash-attention/benchmarks/benchmark_flash_attention.py
code served (permissive licence) · get_code("8d5fb28ca2f46eb8")
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

torch.manual_seed(0)

ARGS = {
    'batch': 2,
    'seqlen': 4,
    'headdim': 8,
    'nheads': 3,
    'causal': True,
    'mode': 'fwd'
}
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
format_model_inspection Ran
ran; our contract draft was wrong, not the code
rasmith/vllm/vllm/model_inspection.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Ravi-VK/SSR, is pointer only (licence: NONE) · get_code("a696f84b9b36ab84")
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 Ravi-VK/SSR, 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.

get_lock Ran
ran; our contract draft was wrong, not the code
adlik/vllm/vllm/model_executor/weight_utils.py
code served (permissive licence) · get_code("9f09d0beacdd35d1")
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 UnixFileLock. 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 os
import tempfile

# The function takes model_name_or_path (str) and optional cache_dir (str)
# It uses these to construct a lock file path
# model_name_or_path: a string that will have '/' replaced with '-'
# cache_dir: optional directory path, defaults to '/tmp'

ARGS = {
    'model_name_or_path': 'bert-base-uncased',
    'cache_dir': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
filelock, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type UnixFileLock — a UnixFileLock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a UnixFileLock 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_served_model_name Ran
ran; our contract draft was wrong, not the code
rasmith/vllm/vllm/config/model.py
code served (permissive licence) · get_code("274e96c750b77b6d")
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

def get_served_model_name(model: str, served_model_name: str | list[str] | None):
    """If the input is a non-empty list, the first model_name in
    `served_model_name` is taken.
    If the input is a non-empty string, it is used directly.
    For cases where the input is either an empty string or an
    empty list, the fallback is to use `self.model`.
    """
    if not served_model_name:
        return model
    if isinstance(served_model_name, list):
        return served_model_name[0]
    return served_model_name


ARGS = {
    "model": "gpt-2",
    "served_model_name": ["claude-3", "gpt-4"]
}
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
init_logger Ran
ran; our contract draft was wrong, not the code
adlik/vllm/vllm/logger.py
code served (permissive licence) · get_code("13adeb89dc2bcd5c")
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 Logger. 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 logging

# Initialize the default handler that init_logger expects
_default_handler = logging.StreamHandler()
_default_handler.setLevel(logging.DEBUG)

ARGS = {
    "name": "test_logger"
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
init_to_zero Ran
ran; our contract draft was wrong, not the code
ROCm/flash-attention/flash_attn/flash_attn_triton.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("1586b639a5abd0b0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

maybe_contiguous Ran
ran; our contract draft was wrong, not the code
ROCm/flash-attention/flash_attn/flash_attn_interface.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("19ad2ccd82e378c1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

maybe_convert_bool Ran
ran, violated the contract we drafted
rasmith/vllm/vllm/envs.py
code served (permissive licence) · get_code("a39aa5bb3cefb4d0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "value": "1"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
maybe_convert_int Ran
ran, honoured the contract we drafted
rasmith/vllm/vllm/envs.py
code served (permissive licence) · get_code("d11a43f137351612")
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

ARGS = {
    "value": "42"
}
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
pad_input Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ROCm/flash-attention/flash_attn/bert_padding.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("a8cf6124094beaab")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

prepare_hf_model_weights Ran
ran on a synthesized input
adlik/vllm/vllm/model_executor/weight_utils.py
code served (permissive licence) · get_code("0ffca819d6ab93f9")
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. 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 tempfile
import os

# Create a temporary directory to use as a local model path
temp_dir = tempfile.mkdtemp()

# Create a dummy model weights file to simulate a local model
dummy_weights_file = os.path.join(temp_dir, "pytorch_model.bin")
with open(dummy_weights_file, 'w') as f:
    f.write("dummy weights")

ARGS = {
    "model_name_or_path": temp_dir,
    "cache_dir": None,
    "use_safetensors": False,
    "fall_back_to_pt": True,
    "revision": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
filelock, huggingface_hub, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
rotate_half Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ROCm/flash-attention/flash_attn/layers/rotary.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("163292f43a3c861b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

round_multiple Ran
ran, honoured the contract we drafted
ROCm/flash-attention/flash_attn/flash_attn_interface.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("a0595f1c95cacf06")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

run Ran
ran; our contract draft was wrong, not the code
rasmith/vllm/vllm/collect_env.py
code served (permissive licence) · get_code("bd5675c0d72d5295")
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 locale
import subprocess
import sys

def get_platform():
    if sys.platform.startswith('linux'):
        return 'linux'
    elif sys.platform.startswith('win32'):
        return 'win32'
    elif sys.platform.startswith('cygwin'):
        return 'cygwin'
    elif sys.platform.startswith('darwin'):
        return 'darwin'
    else:
        return sys.platform

def run(command):
    """Return (return-code, stdout, stderr)."""
    shell = True if type(command) is str else False
    try:
        p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=shell)
        raw_output, raw_err = p.communicate()
        rc = p.returncode
        if get_platform() == 'win32':
            enc = 'oem'
        else:
            enc = locale.getpreferredencoding()
        output = raw_output.decode(enc)
        if command == 'nvidia-smi topo -m':
            output = output.rstrip()
        else:
            output = output.strip()
        err = raw_err.decode(enc)
        return (rc, output, err.strip())
    except FileNotFoundError:
        cmd_str = command if isinstance(command, str) else command[0]
        return (127, '', f'Command not found: {cmd_str}')


# Test with a simple string command
ARGS = {
    'command': 'echo hello'
}
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 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
run_and_parse_first_match Ran
ran; our contract draft was wrong, not the code
rasmith/vllm/vllm/collect_env.py
code served (permissive licence) · get_code("0b342669284f2be6")
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 regex as re

def mock_run_lambda(command):
    """Mock run_lambda that returns (return_code, output, error)"""
    # Simulate successful command execution with output containing a match
    if command == "test_command":
        return (0, "version: 1.2.3", None)
    else:
        return (1, "", None)

ARGS = {
    "run_lambda": mock_run_lambda,
    "command": "test_command",
    "regex": r"version: ([\d.]+)"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
regex — 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
run_and_read_all Ran
ran; our contract draft was wrong, not the code
rasmith/vllm/vllm/collect_env.py
code served (permissive licence) · get_code("5ae630bfc3821b6e")
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 torch.nn as nn

def create_run_lambda():
    """Create a mock run_lambda function that returns (rc, stdout, stderr)"""
    def mock_run_lambda(command):
        # Simulate successful command execution
        if "error" in command:
            return 1, "", "error occurred"
        else:
            return 0, "command output", ""
    return mock_run_lambda

ARGS = {
    "run_lambda": create_run_lambda(),
    "command": "echo 'test command'"
}
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
str_dtype_to_torch_dtype Ran
ran; our contract draft was wrong, not the code
rasmith/vllm/vllm/config/model.py
code served (permissive licence) · get_code("653b6f1bab40d0d2")
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 dtype. 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)

# The function takes a single parameter 'type' which is a string
# It looks up the string in a dictionary mapping to torch dtypes
# Valid strings are: 'half', 'float16', 'float', 'float32', 'bfloat16'

ARGS = {
    'type': '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 dtype — a dtype output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dtype 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
unpad_input Ran
ran; our contract draft was wrong, not the code
ROCm/flash-attention/flash_attn/bert_padding.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("d84093c20a0ed8fd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

unpad_input_for_concatenated_sequences Ran
ran; our contract draft was wrong, not the code
ROCm/flash-attention/flash_attn/bert_padding.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("62394c842aafb022")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from amazon-science/dualkv-flash-attn-for-rl, 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.

convert_to_cudnn_type Not yet run
unverified (harvested, no recorded run)
ROCm/flash-attention/hopper/benchmark_flash_attention_fp8.py
code served (permissive licence) · get_code("a9519adef33152bb")
How it ran

no invocation recorded.

create_fp4_output_tensors Not yet run
unverified (harvested, no recorded run)
rasmith/vllm/vllm/_custom_ops.py
code served (permissive licence) · get_code("c1aa2a7e052537ef")
How it ran

no invocation recorded.

cudnn_spda_setup Not yet run
unverified (harvested, no recorded run)
ROCm/flash-attention/hopper/benchmark_flash_attention_fp8.py
code served (permissive licence) · get_code("58ebcd8dbefa010d")
How it ran

no invocation recorded.

get_graph_partition_signature_patched Not yet run
unverified (harvested, no recorded run)
rasmith/vllm/vllm/env_override.py
code served (permissive licence) · get_code("982bc8603648cd4c")
How it ran

no invocation recorded.

maybe_convert_json_str_or_file Not yet run
unverified (harvested, no recorded run)
rasmith/vllm/vllm/envs.py
code served (permissive licence) · get_code("d8ae3e91c8bc649b")
How it ran

no invocation recorded.

memory_plan_reuse_patched Not yet run
unverified (harvested, no recorded run)
rasmith/vllm/vllm/env_override.py
code served (permissive licence) · get_code("2842ff1da04c998d")
How it ran

no invocation recorded.

should_partition_patched Not yet run
unverified (harvested, no recorded run)
rasmith/vllm/vllm/env_override.py
code served (permissive licence) · get_code("556097b799045118")
How it ran

no invocation recorded.

vocab_parallel_embedding Not yet run
unverified (harvested, no recorded run)
rasmith/vllm/vllm/_custom_ops.py
code served (permissive licence) · get_code("59912a58648c7c22")
How it ran

no invocation recorded.

Also present in other papers' code

Of 36 samples lifted from this paper's linked repositories, 36 carry a function identity and 0 do not. Of the 36 distinct functions with an identity, 34 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 34 later) and 2 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
run_and_parse_first_match 14 other papers
3 dated earlier, 11 later
2109.04003 (2021-09)
Improving Deep Metric Learning by Divide and Conquer
2109.08267 (2021-09)
CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research
2202.04053 (2022-02)
DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models
and 11 more not named here
run_and_read_all 14 other papers
3 dated earlier, 11 later
2109.04003 (2021-09)
Improving Deep Metric Learning by Divide and Conquer
2109.08267 (2021-09)
CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research
2202.04053 (2022-02)
DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models
and 11 more not named here
init_to_zero 12 other papers
1 dated earlier, 11 later
2304.11277 (2023-04)
PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel
2310.05869 (2023-10)
HyperAttention: Long-context Attention in Near-Linear Time
2312.15685 (2023-12)
What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuning
and 9 more not named here
apply_rotary_emb_torch 6 other papers
6 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2412.06464 (2024-12)
Gated Delta Networks: Improving Mamba2 with Delta Rule
2601.17367 (2026-01)
Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers
and 3 more not named here
rotate_half 6 other papers
6 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2412.06464 (2024-12)
Gated Delta Networks: Improving Mamba2 with Delta Rule
2511.10056 (2025-11)
From Static Structures to Ensembles: Studying and Harnessing Protein Structure Tokenization
and 3 more not named here
format_model_inspection 4 other papers
4 later
2601.14327 (2026-01)
Yuan3.0 Ultra: A Trillion-Parameter Enterprise-Oriented MoE LLM
2602.07223 (2026-02)
Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attention
2608.19920 (2026-08)
Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
and 1 more not named here
pad_input 4 other papers
4 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
and 1 more not named here
unpad_input 4 other papers
4 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
and 1 more not named here
unpad_input_for_concatenated_sequences 4 other papers
4 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
and 1 more not named here
attention_pytorch 3 other papers
3 later
2312.07104 (2023-12)
SGLang: Efficient Execution of Structured Language Model Programs
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
convert_blockmask 3 other papers
3 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
2605.15422 (2026-05)
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
efficiency 3 other papers
3 later
2312.07104 (2023-12)
SGLang: Efficient Execution of Structured Language Model Programs
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
flash_attn_qkvpacked_func 3 other papers
3 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
2605.15422 (2026-05)
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
flops 3 other papers
3 later
2312.07104 (2023-12)
SGLang: Efficient Execution of Structured Language Model Programs
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
get_lock 3 other papers
3 later
2402.14808 (2024-02)
RelayAttention for Efficient Large Language Model Serving with Long System Prompts
2403.02310 (2024-03)
Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve
2501.14808 (2025-01)
HyGen: Efficient LLM Serving via Elastic Online-Offline Request Co-location
maybe_contiguous 3 other papers
3 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
2605.15422 (2026-05)
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
round_multiple 3 other papers
3 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
2605.15422 (2026-05)
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
attention_pytorch 2 other papers
2 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
convert_to_cudnn_type 2 other papers
2 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers
cudnn_spda_setup 2 other papers
2 later
2407.08608 (2024-07)
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
2604.23798 (2026-04)
ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers

Shown: the 20 functions present in the most other papers. 14 more shared functions are not listed 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

High throughput serving of large language models (LLMs) requires batching sufficiently many requests at a time. However, existing systems struggle because the key-value cache (KV cache) memory for each request is huge and grows and shrinks dynamically. When managed inefficiently, this memory can be significantly wasted by fragmentation and redundant duplication, limiting the batch size. To address this problem, we propose PagedAttention, an attention algorithm inspired by the classical virtual memory and paging techniques in operating systems. On top of it, we build vLLM, an LLM serving system that achieves (1) near-zero waste in KV cache memory and (2) flexible sharing of KV cache within and across requests to further reduce memory usage. Our evaluations show that vLLM improves the throughput of popular LLMs by 2-4× with the same level of latency compared to the state-of-the-art systems, such as FasterTransformer and Orca. The improvement is more pronounced with longer sequences, larger models, and more complex decoding algorithms. vLLM's source code is publicly available at https://github.com/vllm-project/vllm.

For agents

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

get_harvested_code_for_paper("2309.06180")
get_code_for_paper("2309.06180")
have("2309.06180")

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

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

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

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

Connect an agent — have() is free.