SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.00071 · 2023

YaRN: Efficient Context Window Extension of Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

17 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; 1 honoured the contract we drafted, 1 violated it and 7 have no contract verdict; 8 failures of our instrument; 3 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.00071.json · badge: /api/ran/2309.00071.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
qwenlm/qwq community (classifier label)
classifier basis not recorded on the link
17 ran · 3 no recorded run
FunctionStatusWhere it lives
clean_if_name Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/livecodebench_v5_utils/testing_util.py
code served (permissive licence) · get_code("5faad4dd18dd77ef")
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 ast

code_with_if_name = '''
def hello():
    print("Hello")

if __name__ == '__main__':
    hello()
'''

code_without_if_name = '''
def hello():
    print("Hello")
'''

code_invalid = '''
this is not valid python code {{{
'''

ARGS = {
    "code": code_with_if_name
}
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 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
compute_metrics_from_results Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/livecodebench_v5_utils/pass_k_utils.py
code served (permissive licence) · get_code("9188e3d845f5322a")
How it ran

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

import numpy as np

# Construct the results dictionary that compute_metrics_from_results expects
# The function iterates through results.items() where each value is a list of generations
# Each generation is converted to a numpy array and checked if all elements > 0

results = {
    'task_1': [
        [1, 2, 3],      # generation 1: all > 0, so correct
        [0, 1, 2],      # generation 2: not all > 0, so incorrect
        [2, 3, 4],      # generation 3: all > 0, so correct
    ],
    'task_2': [
        [1, 1, 1],      # generation 1: all > 0, so correct
        [1, 2, 3],      # generation 2: all > 0, so correct
    ],
    'task_3': [
        [0, 0, 0],      # generation 1: not all > 0, so incorrect
        [-1, 2, 3],     # generation 2: not all > 0, so incorrect
        [1, 1, 1],      # generation 3: all > 0, so correct
        [2, 2, 2],      # generation 4: all > 0, so correct
        [3, 3, 3],      # generation 5: all > 0, so correct
    ],
}

k_list = [1, 5]

ARGS = {
    'results': results,
    'k_list': k_list,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conflict_make Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/ifeval_utils/instructions_registry.py
code served (permissive licence) · get_code("d197da35ee544f75")
How it ran

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

import torch

ARGS = {
    "conflicts": {
        0: set([1, 2]),
        1: set([0]),
        2: set([3]),
        3: set()
    }
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_words Ran
ran, honoured the contract we drafted
qwenlm/qwq/eval/eval/ifeval_utils/instructions_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from dongguanting/FollowRAG, is pointer only (licence: NONE) · get_code("cdcc85ca09b00f7e")
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 dongguanting/FollowRAG, 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.

estimate_pass_at_k Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/livecodebench_v5_utils/pass_k_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zai-org/glm-simple-evals, is pointer only (licence: NONE) · get_code("9df10eb02582b09f")
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 zai-org/glm-simple-evals, 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.

extract_instance_results Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/livecodebench_v5_utils/pass_k_utils.py
code served (permissive licence) · get_code("406597cd2faf5fef")
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. 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

# The function expects:
# - results: a dict where keys are task_ids and values are lists of generations
# - each generation is a list/iterable of numeric values (grades)
# - the function checks if all grades > 0 for each generation

# Create sample results data
results = {
    "task_1": [
        [0.5, 0.8, 0.9],      # generation 1: all > 0, so True
        [0.1, -0.2, 0.3],     # generation 2: has -0.2, so False
    ],
    "task_0": [
        [0.7, 0.6, 0.8, 0.9], # generation 1: all > 0, so True
    ],
    "task_2": [
        [0.2, 0.3],            # generation 1: all > 0, so True
        [0.1, 0.0, 0.5],       # generation 2: has 0.0 which is not > 0, so False
        [-0.5, 0.3],           # generation 3: has -0.5, so False
    ],
}

ARGS = {
    "results": results
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
get_content Ran
ran on a synthesized input
qwenlm/qwq/eval/generate_api_answers/utils_vllm.py
code served (permissive licence) · get_code("7b5542cec0c01464")
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 os
import openai
from packaging.version import parse as parse_version

# Set up minimal environment
os.environ['OPENAI_API_KEY'] = 'test-key-12345'
os.environ['OPENAI_API_REQUEST_TIMEOUT'] = '30'

# Mock the openai module to avoid actual API calls
class MockMessage:
    def __init__(self):
        self.content = "This is a mock response"

class MockChoice:
    def __init__(self):
        self.message = MockMessage()

class MockCompletion:
    def __init__(self):
        self.choices = [MockChoice()]

class MockChatCompletions:
    def create(self, **kwargs):
        return MockCompletion()

class MockChat:
    def __init__(self):
        self.completions = MockChatCompletions()

class MockOpenAIClient:
    def __init__(self, **kwargs):
        self.chat = MockChat()

# Patch openai module
openai.OpenAI = MockOpenAIClient
openai.__version__ = '1.0.0'

# Define arguments for get_content function
ARGS = {
    'query': 'What is the capital of France?',
    'base_url': 'https://api.openai.com/v1',
    'model_name': 'gpt-4'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
httpx, openai, packaging — 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_qwen_question_template_answer Ran
ran on a synthesized input
qwenlm/qwq/eval/eval/livecodebench_v5_utils/process_data.py
code served (permissive licence) · get_code("292970496395b6c3")
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 json
import zlib
import pickle
import base64
from enum import Enum
from datetime import datetime
from dataclasses import dataclass

class Platform(Enum):
    LEETCODE = 'leetcode'
    CODEFORCES = 'codeforces'
    ATCODER = 'atcoder'

class Difficulty(Enum):
    EASY = 'easy'
    MEDIUM = 'medium'
    HARD = 'hard'

class TestType(Enum):
    STDIN = 'stdin'
    FUNCTIONAL = 'functional'

@dataclass
class Test:
    input: str
    output: str
    testtype: TestType

    def __post_init__(self):
        self.testtype = TestType(self.testtype)

@dataclass
class CodeGenerationProblem:
    question_title: str
    question_content: str
    platform: Platform
    question_id: str
    contest_id: str
    contest_date: datetime
    starter_code: str
    difficulty: Difficulty
    public_test_cases: list
    private_test_cases: list
    metadata: dict

    def __post_init__(self):
        self.platform = Platform(self.platform)
        self.difficulty = Difficulty(self.difficulty)
        if isinstance(self.contest_date, str):
            self.contest_date = datetime.fromisoformat(self.contest_date)
        if isinstance(self.public_test_cases, str):
            self.public_test_cases = json.loads(self.public_test_cases)
        self.public_test_cases = [Test(**t) for t in self.public_test_cases]
        if isinstance(self.private_test_cases, str):
            try:
                self.private_test_cases = json.loads(self.private_test_cases)
            except:
                self.private_test_cases = json.loads(pickle.loads(zlib.decompress(base64.b64decode(self.private_test_cases.encode('utf-8')))))
        self.private_test_cases = [Test(**t) for t in self.private_test_cases]
        if isinstance(self.metadata, str):
            self.metadata = json.loads(self.metadata)

class PromptConstants:
    SYSTEM_MESSAGE_GENERIC = f'You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.'
    SYSTEM_MESSAGE_GEMINI = f'You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. Do NOT use system calls like `exit` in the generated program. Ensure that the first code block contains the solution.'
    SYSTEM_MESSAGE_GEMINITHINK = f'You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.'
    SYSTEM_MESSAGE_DEEPSEEK = f'You are an AI programming assistant, utilizing the DeepSeek Coder model, developed by DeepSeek Company, and you answer questions related to computer science.'
    SYSTEM_MESSAGE_CODEQWEN = f'<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user'
    FORMATTING_MESSAGE_WITH_STARTER_CODE = 'You will use the following starter code to write the solution to the problem and enclose your code within delimiters.'
    FORMATTING_WITHOUT_STARTER_CODE = 'Read the inputs from stdin solve the problem and write the answer to stdout (do not directly test on the sample inputs). Enclose your code within delimiters as follows. Ensure that when the python program runs, it reads the inputs, runs the algorithm and writes output to STDOUT.'

def get_qwen_question_template_answer(question: CodeGenerationProblem):
    prompt = 'You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.\n\n'
    prompt += f'Question: {question.question_content}\n\n'
    if question.starter_code:
        prompt += f'{PromptConstants.FORMATTING_MESSAGE_WITH_STARTER_CODE}\n'
        prompt += f'```python\n{question.starter_code}\n```\n\n'
    else:
        prompt += f'{PromptConstants.FORMATTING_WITHOUT_STARTER_CODE}\n'
        prompt += f'```python\n# YOUR CODE HERE\n```\n\n'
    return prompt

public_tests = [
    {'input': '5', 'output': '5', 'testtype': 'stdin'},
    {'input': '10', 'output': '10', 'testtype': 'stdin'}
]

private_tests = [
    {'input': '3', 'output': '3', 'testtype': 'stdin'}
]

problem = CodeGenerationProblem(
    question_title='Sample Problem',
    question_content='Given an integer n, return n.',
    platform='leetcode',
    question_id='001',
    contest_id='contest_001',
    contest_date=datetime(2024, 1, 1),
    starter_code='def solution(n):\n    pass',
    difficulty='easy',
    public_test_cases=public_tests,
    private_test_cases=private_tests,
    metadata={'func_name': 'solution'}
)

ARGS = {
    'question': problem
}
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 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_qwen_reasoning_question_template_answer Ran
ran on a synthesized input
qwenlm/qwq/eval/eval/livecodebench_v5_utils/process_data.py
code served (permissive licence) · get_code("2e92414197a95a18")
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 json
from datetime import datetime
from enum import Enum
from dataclasses import dataclass

class Platform(Enum):
    LEETCODE = 'leetcode'
    CODEFORCES = 'codeforces'
    ATCODER = 'atcoder'

class Difficulty(Enum):
    EASY = 'easy'
    MEDIUM = 'medium'
    HARD = 'hard'

class TestType(Enum):
    STDIN = 'stdin'
    FUNCTIONAL = 'functional'

@dataclass
class Test:
    input: str
    output: str
    testtype: TestType

    def __post_init__(self):
        self.testtype = TestType(self.testtype)

@dataclass
class CodeGenerationProblem:
    question_title: str
    question_content: str
    platform: Platform
    question_id: str
    contest_id: str
    contest_date: datetime
    starter_code: str
    difficulty: Difficulty
    public_test_cases: list
    private_test_cases: list
    metadata: dict

    def __post_init__(self):
        self.platform = Platform(self.platform)
        self.difficulty = Difficulty(self.difficulty)
        if isinstance(self.contest_date, str):
            self.contest_date = datetime.fromisoformat(self.contest_date)
        if isinstance(self.public_test_cases, str):
            self.public_test_cases = json.loads(self.public_test_cases)
        self.public_test_cases = [Test(**t) if isinstance(t, dict) else t for t in self.public_test_cases]
        if isinstance(self.private_test_cases, str):
            self.private_test_cases = json.loads(self.private_test_cases)
        self.private_test_cases = [Test(**t) if isinstance(t, dict) else t for t in self.private_test_cases]
        if isinstance(self.metadata, str):
            self.metadata = json.loads(self.metadata)

test1 = Test(input="5", output="25", testtype=TestType.STDIN)
test2 = Test(input="3", output="9", testtype=TestType.STDIN)

problem = CodeGenerationProblem(
    question_title="Square Number",
    question_content="Given an integer n, return n squared.",
    platform=Platform.LEETCODE,
    question_id="1",
    contest_id="contest_1",
    contest_date=datetime(2024, 1, 15),
    starter_code="def square(n):\n    pass",
    difficulty=Difficulty.EASY,
    public_test_cases=[test1],
    private_test_cases=[test2],
    metadata={"func_name": "square", "return_type": "int"}
)

ARGS = {
    "question": problem
}
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 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
is_multi_choice Ran
ran, violated the contract we drafted
qwenlm/qwq/eval/eval/math_opensource.py
code served (permissive licence) · get_code("d338a8cb44aeb6b4")
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

def is_multi_choice(answer):
    for c in answer:
        if c not in ['A', 'B', 'C', 'D', 'E']:
            return False
    return True

# Test case 1: Valid multi-choice answer
answer_valid = "ABCDE"

# Test case 2: Invalid multi-choice answer (contains invalid character)
answer_invalid = "ABCF"

ARGS = {
    "answer": answer_valid
}
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
make_function Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/livecodebench_v5_utils/testing_util.py
code served (permissive licence) · get_code("e478b5bb18723734")
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 ast

def make_function(code: str) -> str:
    try:
        import_stmts = []
        all_other_stmts = []
        astree = ast.parse(code)
        for stmt in astree.body:
            if isinstance(stmt, (ast.Import, ast.ImportFrom)):
                import_stmts.append(stmt)
            else:
                all_other_stmts.append(stmt)
        function_ast = ast.FunctionDef(name='wrapped_function', args=ast.arguments(posonlyargs=[], args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), body=all_other_stmts, decorator_list=[], lineno=-1)
        main_code = import_string + '\n' + ast.unparse(import_stmts) + '\n' + ast.unparse(function_ast)
        return main_code
    except Exception as e:
        return code

import_string = 'from string import *\nfrom re import *\nfrom datetime import *\nfrom collections import *\nfrom heapq import *\nfrom bisect import *\nfrom copy import *\nfrom math import *\nfrom random import *\nfrom statistics import *\nfrom itertools import *\nfrom functools import *\nfrom operator import *\nfrom io import *\nfrom sys import *\nfrom json import *\nfrom builtins import *\nfrom typing import *\nimport string\nimport re\nimport datetime\nimport collections\nimport heapq\nimport bisect\nimport copy\nimport math\nimport random\nimport statistics\nimport itertools\nimport functools\nimport operator\nimport io\nimport sys\nimport json\nsys.setrecursionlimit(50000)\n'

# Simple test code that includes imports and other statements
test_code = """
import math
from collections import defaultdict

x = 42
y = math.sqrt(x)
result = y + 1
"""

ARGS = {
    'code': test_code
}
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 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
preprocess Ran
ran on a synthesized input
qwenlm/qwq/eval/eval/livecodebench_v5.py
code served (permissive licence) · get_code("5ada7674f9cc64ee")
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 torch

torch.manual_seed(0)

# Construct a job dict with 'tests' and 'gen' keys
# The function extracts code from between triple backticks in raw_gen

job = {
    'tests': ['test1', 'test2'],
    'gen': """Some explanation here

def example():
    return 42

More text after

"""
}

ARGS = {
    'job': job
}
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 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
removeprefix Ran
ran on a synthesized input
qwenlm/qwq/eval/eval/ifeval_utils/instructions.py
code served (permissive licence) · get_code("1f2c82cb51d70854")
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

ARGS = {
    "s": "hello_world",
    "prefix": "hello_"
}
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
removesuffix Ran
ran on a synthesized input
qwenlm/qwq/eval/eval/ifeval_utils/instructions.py
code served (permissive licence) · get_code("c18b33dc2c9d3ac3")
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

ARGS = {
    "s": "hello_world",
    "suffix": "_world"
}
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_into_sentences Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/ifeval_utils/instructions_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Rainier-rq1/From_Coarse_to_Fine, is pointer only (licence: NONE) · get_code("34d346853108011e")
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 Rainier-rq1/From_Coarse_to_Fine, 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.

truncatefn Ran
ran; our contract draft was wrong, not the code
qwenlm/qwq/eval/eval/livecodebench_v5_utils/testing_util.py
code served (permissive licence) · get_code("f23d0f0bf67cc7cb")
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 truncatefn(s, length=300):
    if isinstance(s, str):
        pass
    else:
        s = str(s)
    if len(s) <= length:
        return s
    return s[:length // 2] + '...(truncated) ...' + s[-length // 2:]

torch.manual_seed(0)

# The function takes a string (or something convertible to string) and truncates it
# s: can be a string or any object convertible to string
# length: integer specifying the max length before truncation

ARGS = {
    "s": "This is a test string that will be used to verify the truncatefn function works correctly with various inputs.",
    "length": 300
}
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
work Ran
ran on a synthesized input
qwenlm/qwq/eval/eval/math_opensource.py
code served (permissive licence) · get_code("97dd1cf2a21b437c")
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

# Mock the external modules that are imported in the work function
import sys
from types import ModuleType

# Create mock modules
math_opensource_utils = ModuleType('math_opensource_utils')
parser_module = ModuleType('parser')
grader_module = ModuleType('grader')

def mock_parse_ground_truth(job, data_name):
    return "The answer is A", "A"

def mock_extract_answer(text, data_name):
    return "A"

def mock_strip_string(text, skip_unit=False):
    return text

def mock_choice_answer_clean(text):
    return "A"

def mock_math_equal_process(params):
    prediction, gt = params
    return prediction == gt

parser_module.parse_ground_truth = mock_parse_ground_truth
parser_module.extract_answer = mock_extract_answer
parser_module.strip_string = mock_strip_string
parser_module.choice_answer_clean = mock_choice_answer_clean
parser_module.STRIP_EXCEPTIONS = []

grader_module.math_equal_process = mock_math_equal_process

math_opensource_utils.parser = parser_module
math_opensource_utils.grader = grader_module

sys.modules['math_opensource_utils'] = math_opensource_utils
sys.modules['math_opensource_utils.parser'] = parser_module
sys.modules['math_opensource_utils.grader'] = grader_module

# Create the job object with required structure
job = {
    'gen': ['The answer is A'],
    'task': 'math/algebra',
    'gt_cot': None,
    'gt': None
}

# Create args tuple: (index, job)
args = (0, job)

ARGS = {
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
math_opensource_utils, 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
count_completed_samples Not yet run
unverified (harvested, no recorded run)
qwenlm/qwq/eval/generate_api_answers/infer_multithread.py
code served (permissive licence) · get_code("09565dfe50b43516")
How it ran

no invocation recorded.

count_sentences Not yet run
unverified (harvested, no recorded run)
qwenlm/qwq/eval/eval/ifeval_utils/instructions_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from dongguanting/FollowRAG, is pointer only (licence: NONE) · get_code("f79646ddd0a03162")
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 dongguanting/FollowRAG, 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.

load_code_generation_dataset Not yet run
unverified (harvested, no recorded run)
qwenlm/qwq/eval/eval/livecodebench_v5_utils/process_data.py
code served (permissive licence) · get_code("aa6fde3b731edf5c")
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, 11 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 11 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
is_multi_choice 8 other papers
8 later
2410.07985 (2024-10)
Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
2502.06773 (2025-02)
On the Emergence of Thinking in LLMs I: Searching for the Right Intuition
2503.18892 (2025-03)
SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wild
and 5 more not named here
split_into_sentences 8 other papers
8 later
2311.07911 (2023-11)
Instruction-Following Evaluation for Large Language Models
2404.15846 (2024-04)
From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Models
2406.12809 (2024-06)
Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
and 5 more not named here
conflict_make 6 other papers
6 later
2311.07911 (2023-11)
Instruction-Following Evaluation for Large Language Models
2404.15846 (2024-04)
From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Models
2406.12809 (2024-06)
Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
and 3 more not named here
count_words 6 other papers
6 later
2311.07911 (2023-11)
Instruction-Following Evaluation for Large Language Models
2401.16745 (2024-01)
MT-Eval: A Multi-Turn Capabilities Evaluation Benchmark for Large Language Models
2404.15846 (2024-04)
From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Models
and 3 more not named here
count_sentences 5 other papers
5 later
2311.07911 (2023-11)
Instruction-Following Evaluation for Large Language Models
2404.15846 (2024-04)
From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Models
2406.12809 (2024-06)
Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
and 2 more not named here
estimate_pass_at_k 2 other papers
2 later
2602.11639 (2026-02)
PACE: Prefix-Protected and Difficulty-Aware Compression for Efficient Reasoning
2604.04356 (2026-04)
REAM: Merging Improves Pruning of Experts in LLMs
truncatefn 2 other papers
2 later
2602.03719 (2026-02)
BranPO: Scalable Contrastive Branch Sampling for Long-Horizon Agentic Reinforcement Learning
2602.11639 (2026-02)
PACE: Prefix-Protected and Difficulty-Aware Compression for Efficient Reasoning
clean_if_name 1 other paper
1 later
2602.11639 (2026-02)
PACE: Prefix-Protected and Difficulty-Aware Compression for Efficient Reasoning
compute_metrics_from_results 1 other paper
1 later
2602.11639 (2026-02)
PACE: Prefix-Protected and Difficulty-Aware Compression for Efficient Reasoning
extract_instance_results 1 other paper
1 later
2602.11639 (2026-02)
PACE: Prefix-Protected and Difficulty-Aware Compression for Efficient Reasoning
make_function 1 other paper
1 later
2602.11639 (2026-02)
PACE: Prefix-Protected and Difficulty-Aware Compression for Efficient Reasoning

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

Rotary Position Embeddings (RoPE) have been shown to effectively encode positional information in transformer-based language models. However, these models fail to generalize past the sequence length they were trained on. We present YaRN (Yet another RoPE extensioN method), a compute-efficient method to extend the context window of such models, requiring 10x less tokens and 2.5x less training steps than previous methods. Using YaRN, we show that LLaMA models can effectively utilize and extrapolate to context lengths much longer than their original pre-training would allow, while also surpassing previous the state-of-the-art at context window extension. In addition, we demonstrate that YaRN exhibits the capability to extrapolate beyond the limited context of a fine-tuning dataset. Code is available at https://github.com/jquesnelle/yarn

For agents

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

get_harvested_code_for_paper("2309.00071")
get_code_for_paper("2309.00071")
have("2309.00071")

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

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

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

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

Connect an agent — have() is free.