SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.07104 · 2023

SGLang: Efficient Execution of Structured Language Model Programs

arXiv · PDF · Open in the Atlas

Code that ran

16 of 17 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, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 1 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/2312.07104.json · badge: /api/ran/2312.07104.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
sgl-project/sglang canonical (classifier label)
classifier basis: classifier_2025
7 ran · 0 no recorded run
tginart/sglang community (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
FunctionStatusWhere it lives
attention_pytorch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sgl-project/sglang/benchmark/kernels/attention/bench_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
contains_formats Ran
ran, violated the contract we drafted
tginart/sglang/benchmark/json_schema/bench_sglang.py
code served (permissive licence) · get_code("c35d5a367cb5def6")
How it ran

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

import torch
import numpy as np
from typing import List

# Construct test arguments for contains_formats function

# Example 1: Simple schema dict with a format that matches
schema_1 = {
    'type': 'string',
    'format': 'email'
}
formats_1 = ['email', 'uuid']

# Example 2: Nested schema dict with format in nested value
schema_2 = {
    'type': 'object',
    'properties': {
        'date_field': {
            'type': 'string',
            'format': 'date'
        }
    }
}
formats_2 = ['date', 'time']

# Example 3: Schema with list containing dicts with formats
schema_3 = {
    'type': 'array',
    'items': [
        {
            'type': 'string',
            'format': 'uri'
        },
        {
            'type': 'integer'
        }
    ]
}
formats_3 = ['uri', 'hostname']

# Example 4: Schema without matching formats
schema_4 = {
    'type': 'string',
    'minLength': 1
}
formats_4 = ['email', 'uuid']

# Use the first example as the main test case
ARGS = {
    'schema': schema_1,
    'formats': formats_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
efficiency Ran
ran, honoured the contract we drafted
sgl-project/sglang/benchmark/kernels/attention/bench_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
first_image_from_body Ran
ran; our contract draft was wrong, not the code
sgl-project/sglang/docs/scripts/update_lmsys_sglang_blogs.py
code served (permissive licence) · get_code("50162116dff0fb49")
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 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 re

HTML_IMG_RE = re.compile('<img[^>]*\\ssrc=[\\"\']([^\\"\']+)[\\"\']', flags=re.IGNORECASE)

MD_IMG_RE = re.compile('!\\[[^\\]]*]\\(([^)]+)\\)')

def first_image_from_body(body: str) -> str | None:
    markdown_match = MD_IMG_RE.search(body)
    if markdown_match:
        candidate = markdown_match.group(1).strip()
        if candidate.startswith('<') and candidate.endswith('>'):
            candidate = candidate[1:-1]
        if ' ' in candidate:
            candidate = candidate.split(' ', 1)[0]
        return candidate
    html_match = HTML_IMG_RE.search(body)
    if html_match:
        return html_match.group(1).strip()
    return None


# Test case 1: markdown image
body_markdown = '![alt text](https://example.com/image.png)'

# Test case 2: HTML image
body_html = '<img src="https://example.com/photo.jpg" alt="photo">'

# Test case 3: markdown with angle brackets
body_markdown_brackets = '![alt](<https://example.com/image.png>)'

# Test case 4: markdown with title
body_markdown_title = '![alt](https://example.com/image.png "title")'

# Test case 5: no image
body_no_image = 'This is just plain text with no images'

ARGS = {
    'body': body_markdown
}
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 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
flops Ran
ran, honoured the contract we drafted
sgl-project/sglang/benchmark/kernels/attention/bench_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
format_example Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/mmlu/bench_sglang.py
code served (permissive licence) · get_code("cd763eaf1ac287e7")
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 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 pandas as pd

# Create a small DataFrame with the structure expected by format_example
# The function expects:
# - Column 0: prompt text
# - Columns 1 to k: answer choices (k columns)
# - Column k+1: the correct answer
# With choices = ['A', 'B', 'C', 'D'], we have k=4 choices

data = {
    0: ["What is 2+2?"],
    1: ["3"],
    2: ["4"],
    3: ["5"],
    4: ["6"],
    5: ["B"]  # The answer is 'B' (which corresponds to choice index 1, value "4")
}

df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'idx': 0,
    'include_answer': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
pandas — 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
format_subject Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/mmlu/bench_sglang.py
code served (permissive licence) · get_code("6ab745408cb8648b")
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 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 format_subject(subject):
    l = subject.split('_')
    s = ''
    for entry in l:
        s += ' ' + entry
    return s

ARGS = {
    'subject': 'machine_learning_model'
}
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 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
gen_prompt Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/mmlu/bench_sglang.py
code served (permissive licence) · get_code("c7131fbea2cbdc2d")
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 pandas as pd
import numpy as np

# Create a small DataFrame that matches what the function expects
# The function expects:
# - Column 0: question prompt
# - Columns 1 to k: answer choices (A, B, C, D)
# - Column k+1: correct answer
data = {
    0: ['What is 2+2?', 'What is the capital of France?'],
    1: ['4', 'London'],
    2: ['5', 'Paris'],
    3: ['3', 'Berlin'],
    4: ['6', 'Madrid'],
    5: ['A', 'B']
}

train_df = pd.DataFrame(data)

subject = 'mathematics_basics'
k = 2

ARGS = {
    'train_df': train_df,
    'subject': subject,
    'k': k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
get_answer_value Ran
ran, honoured the contract we drafted
tginart/sglang/benchmark/gsm8k/bench_sglang.py
code served (permissive licence) · get_code("4c13c3bdb761b46c")
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 ast
import re

INVALID = -9999999

def get_answer_value(answer_str):
    answer_str = answer_str.replace(',', '')
    numbers = re.findall('\\d+', answer_str)
    if len(numbers) < 1:
        return INVALID
    try:
        return ast.literal_eval(numbers[-1])
    except SyntaxError:
        return INVALID


ARGS = {
    'answer_str': "The answer is 42"
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_few_shot_examples Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/gsm8k/bench_sglang.py
code served (permissive licence) · get_code("9e0d3df1a2d9a123")
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

# Create sample lines data structure
lines = [
    {
        'question': 'What is the capital of France?',
        'answer': 'Paris'
    },
    {
        'question': 'What is 2 + 2?',
        'answer': '4'
    },
    {
        'question': 'What is the largest planet?',
        'answer': 'Jupiter'
    }
]

# Define ARGS for get_few_shot_examples function
ARGS = {
    'lines': lines,
    'k': 2
}
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
get_few_shot_examples Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/hellaswag/bench_sglang.py
code served (permissive licence) · get_code("06681001174b0ca9")
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

# Construct the lines argument - a list of dicts with the required structure
lines = [
    {
        'activity_label': 'cooking',
        'ctx': 'The chef prepared the ingredients on the counter.',
        'endings': ['with a knife', 'with a fork', 'with a spoon', 'with chopsticks'],
        'label': 1
    },
    {
        'activity_label': 'eating',
        'ctx': 'The person sat down at the table.',
        'endings': ['and slept', 'and ate', 'and ran', 'and jumped'],
        'label': 1
    },
    {
        'activity_label': 'playing',
        'ctx': 'The child went to the park.',
        'endings': ['to study', 'to play games', 'to sleep', 'to work'],
        'label': 1
    }
]

ARGS = {
    'lines': lines,
    'k': 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 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
get_one_example Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/gsm8k/bench_sglang.py
code served (permissive licence) · get_code("2e994f473fac61f9")
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

torch.manual_seed(0)

# Construct valid arguments for get_one_example
lines = [
    {
        'question': 'What is 2+2?',
        'answer': '4'
    },
    {
        'question': 'What is the capital of France?',
        'answer': 'Paris'
    }
]

ARGS = {
    'lines': lines,
    'i': 0,
    'include_answer': True
}
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
get_one_example Ran
ran; our contract draft was wrong, not the code
tginart/sglang/benchmark/hellaswag/bench_sglang.py
code served (permissive licence) · get_code("5b4a33e73835b337")
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

# Construct a valid lines argument
# The function expects lines[i] to have keys: 'activity_label', 'ctx', 'endings', 'label'
lines = [
    {
        'activity_label': 'cooking',
        'ctx': 'A person is in the kitchen preparing ingredients.',
        'endings': ['boiling water', 'frying an egg', 'baking a cake'],
        'label': 1
    },
    {
        'activity_label': 'sports',
        'ctx': 'Two athletes are competing on the field.',
        'endings': ['running a race', 'playing soccer', 'throwing a ball'],
        'label': 0
    }
]

ARGS = {
    'lines': lines,
    'i': 0,
    'include_answer': True
}
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
split_checkpoint_files Ran
ran; our contract draft was wrong, not the code
sgl-project/sglang/examples/checkpoint_engine/update.py
code served (permissive licence) · get_code("ae700d7ba09b1dad")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import shutil

# Create a temporary directory with some .safetensors files
temp_dir = tempfile.mkdtemp()

# Create some dummy .safetensors files
for i in range(5):
    filepath = os.path.join(temp_dir, f"model_part_{i}.safetensors")
    with open(filepath, 'w') as f:
        f.write("dummy content")

# Also create some non-.safetensors files to test filtering
other_file = os.path.join(temp_dir, "config.json")
with open(other_file, 'w') as f:
    f.write("other content")

ARGS = {
    "checkpoint_path": temp_dir,
    "rank": 0,
    "world_size": 2,
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_frontmatter Ran
ran; our contract draft was wrong, not the code
sgl-project/sglang/docs/scripts/update_lmsys_sglang_blogs.py
code served (permissive licence) · get_code("ccf4f09d98748ede")
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 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 re

FRONTMATTER_RE = re.compile('\\A---\\s*\\n(.*?)\\n---\\s*\\n?', flags=re.DOTALL)

def split_frontmatter(content: str) -> tuple[dict[str, str], str]:
    match = FRONTMATTER_RE.match(content)
    if not match:
        return ({}, content)
    frontmatter: dict[str, str] = {}
    for raw_line in match.group(1).splitlines():
        line = raw_line.strip()
        if not line or ':' not in line:
            continue
        key, value = line.split(':', 1)
        cleaned = value.strip()
        if (cleaned.startswith('"') and cleaned.endswith('"') or (cleaned.startswith("'") and cleaned.endswith("'"))) and len(cleaned) >= 2:
            cleaned = cleaned[1:-1]
        frontmatter[key.strip()] = cleaned
    return (frontmatter, content[match.end():])

# Test case 1: content with frontmatter
content_with_frontmatter = '''---
title: "My Document"
author: 'John Doe'
date: 2024-01-15
---
This is the main content.
More content here.'''

# Test case 2: content without frontmatter
content_without_frontmatter = '''Just some regular content
without any frontmatter.'''

# Test case 3: content with empty frontmatter
content_empty_frontmatter = '''---
---
Main content starts here.'''

ARGS = {
    'content': content_with_frontmatter
}
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 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
to_absolute_url Ran
ran; our contract draft was wrong, not the code
sgl-project/sglang/docs/scripts/update_lmsys_sglang_blogs.py
code served (permissive licence) · get_code("89728bc22a4636de")
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 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.

ARGS = {
    'url_or_path': 'path/to/image.png'
}
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 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
convert_dataset Not yet run
unverified (harvested, no recorded run)
tginart/sglang/benchmark/json_schema/bench_sglang.py
code served (permissive licence) · get_code("abf01e5c788687e5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 11 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 11 later) and 5 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
format_subject 21 other papers
6 dated earlier, 1 the same month, 14 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2304.12986 (2023-04)
Measuring Massive Multitask Chinese Understanding
2305.17306 (2023-05)
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance
and 18 more not named here
format_example 16 other papers
3 dated earlier, 1 the same month, 12 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2305.17306 (2023-05)
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance
2310.05736 (2023-10)
LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
and 13 more not named here
attention_pytorch 3 other papers
1 dated earlier, 2 later
2309.06180 (2023-09)
Efficient Memory Management for Large Language Model Serving with PagedAttention
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
efficiency 3 other papers
1 dated earlier, 2 later
2309.06180 (2023-09)
Efficient Memory Management for Large Language Model Serving with PagedAttention
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
flops 3 other papers
1 dated earlier, 2 later
2309.06180 (2023-09)
Efficient Memory Management for Large Language Model Serving with PagedAttention
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_answer_value 3 other papers
3 later
2601.18999 (2026-01)
Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective
2602.10718 (2026-02)
SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipelining
2602.11683 (2026-02)
THINKROUTER: Efficient Reasoning via Routing Thinking between Latent and Discrete Spaces
get_one_example 3 other papers
3 later
2406.18665 (2024-06)
RouteLLM: Learning to Route LLMs with Preference Data
2601.18999 (2026-01)
Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective
2602.11683 (2026-02)
THINKROUTER: Efficient Reasoning via Routing Thinking between Latent and Discrete Spaces
get_few_shot_examples 2 other papers
2 later
2601.18999 (2026-01)
Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective
2602.11683 (2026-02)
THINKROUTER: Efficient Reasoning via Routing Thinking between Latent and Discrete Spaces
contains_formats 1 other paper
1 later
2602.10718 (2026-02)
SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipelining
gen_prompt 1 other paper
1 later
2602.10718 (2026-02)
SnapMLA: Efficient Long-Context MLA Decoding via Hardware-Aware FP8 Quantized Pipelining
get_one_example 1 other paper
1 later
2602.11683 (2026-02)
THINKROUTER: Efficient Reasoning via Routing Thinking between Latent and Discrete Spaces

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

Large language models (LLMs) are increasingly used for complex tasks that require multiple generation calls, advanced prompting techniques, control flow, and structured inputs/outputs. However, efficient systems are lacking for programming and executing these applications. We introduce SGLang, a system for efficient execution of complex language model programs. SGLang consists of a frontend language and a runtime. The frontend simplifies programming with primitives for generation and parallelism control. The runtime accelerates execution with novel optimizations like RadixAttention for KV cache reuse and compressed finite state machines for faster structured output decoding. Experiments show that SGLang achieves up to 6.4x higher throughput compared to state-of-the-art inference systems on various large language and multi-modal models on tasks including agent control, logical reasoning, few-shot learning benchmarks, JSON decoding, retrieval-augmented generation pipelines, and multi-turn chat. The code is publicly available at https://github.com/sgl-project/sglang

For agents

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

get_harvested_code_for_paper("2312.07104")
get_code_for_paper("2312.07104")
have("2312.07104")

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

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

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

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

Connect an agent — have() is free.