SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.05131 · 2022

UL2: Unifying Language Learning Paradigms

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 15 have no contract verdict; 0 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/2205.05131.json · badge: /api/ran/2205.05131.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
opennlg/openba-v2 community (classifier label)
classifier basis not recorded on the link
15 ran · 1 no recorded run
FunctionStatusWhere it lives
add_checkpointing_args Ran
ran on a synthesized input
opennlg/openba-v2/convert_megatron_to_hf_ckpt.py
code served (permissive licence) · get_code("b87d8f19cf535a2a")
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 ArgumentParser. 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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# The function add_checkpointing_args takes a parser argument and adds arguments to it
# It doesn't actually use the parser object's methods in complex ways, just calls add_argument
# So we need to create a valid ArgumentParser instance

parser = argparse.ArgumentParser(description='Test parser for checkpoint conversion')

ARGS = {
    'parser': parser
}
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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser 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
add_transformers_checkpoint_args Ran
ran on a synthesized input
opennlg/openba-v2/convert_megatron_to_hf_ckpt.py
code served (permissive licence) · get_code("e126c3b654292801")
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 MockParser. 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 argparse

class MockParser:
    def __init__(self):
        self.arguments = {}
    
    def add_argument(self, *args, **kwargs):
        if args:
            arg_name = args[0].lstrip('-')
            self.arguments[arg_name] = {
                'type': kwargs.get('type'),
                'default': kwargs.get('default'),
                'help': kwargs.get('help')
            }
        return self
    
    def __repr__(self):
        return f"MockParser({self.arguments})"

parser = MockParser()

ARGS = {
    'parser': parser
}
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 MockParser — a MockParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockParser 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_input Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/ARC/template.py
code served (permissive licence) · get_code("5fd8991277f9c276")
How it ran

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

import torch

torch.manual_seed(0)

# Create a demo dictionary with the required structure
demo = {
    'question': 'What is the process by which plants make their own food?',
    'opt_num': 4,
    'res1': 'Photosynthesis',
    'res2': 'Respiration',
    'res3': 'Digestion',
    'res4': 'Fermentation'
}

ARGS = {
    'demo': demo
}
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
make_ABCD_input_0_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/ARC/template.py
code served (permissive licence) · get_code("b24c9bcfbcc13329")
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)

# Create a minimal data structure matching what the function expects
data = {
    'data': {
        'question': 'What is the process by which plants convert sunlight into chemical energy?',
        'opt_num': 4,
        'res1': 'Photosynthesis',
        'res2': 'Respiration',
        'res3': 'Fermentation',
        'res4': 'Decomposition'
    }
}

subject = 'science'

ARGS = {
    'subject': subject,
    'data': data
}
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
make_ABCD_input_0_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/C-Eval/moban.py
code served (permissive licence) · get_code("706a6589174ca080")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

SUBCATEGORIES = {'computer_network': ['Computer Network', '计算机网络', 'STEM'], 'operating_system': ['Operating System', '操作系统', 'STEM'], 'computer_architecture': ['Computer Architecture', '计算机组成', 'STEM'], 'college_programming': ['College Programming', '大学编程', 'STEM'], 'college_physics': ['College Physics', '大学物理', 'STEM'], 'college_chemistry': ['College Chemistry', '大学化学', 'STEM'], 'advanced_mathematics': ['Advanced Mathematics', '高等数学', 'STEM'], 'probability_and_statistics': ['Probability and Statistics', '概率统计', 'STEM'], 'discrete_mathematics': ['Discrete Mathematics', '离散数学', 'STEM'], 'electrical_engineer': ['Electrical Engineer', '注册电气工程师', 'STEM'], 'metrology_engineer': ['Metrology Engineer', '注册计量师', 'STEM'], 'high_school_mathematics': ['High School Mathematics', '高中数学', 'STEM'], 'high_school_physics': ['High School Physics', '高中物理', 'STEM'], 'high_school_chemistry': ['High School Chemistry', '高中化学', 'STEM'], 'high_school_biology': ['High School Biology', '高中生物', 'STEM'], 'middle_school_mathematics': ['Middle School Mathematics', '初中数学', 'STEM'], 'middle_school_biology': ['Middle School Biology', '初中生物', 'STEM'], 'middle_school_physics': ['Middle School Physics', '初中物理', 'STEM'], 'middle_school_chemistry': ['Middle School Chemistry', '初中化学', 'STEM'], 'veterinary_medicine': ['Veterinary Medicine', '兽医学', 'STEM'], 'college_economics': ['College Economics', '大学经济学', 'Social Science'], 'business_administration': ['Business Administration', '工商管理', 'Social Science'], 'marxism': ['Marxism', '马克思主义基本原理', 'Social Science'], 'mao_zedong_thought': ['Mao Zedong Thought', '毛泽东思想和中国特色社会主义理论体系概论', 'Social Science'], 'education_science': ['Education Science', '教育学', 'Social Science'], 'teacher_qualification': ['Teacher Qualification', '教师资格', 'Social Science'], 'high_school_politics': ['High School Politics', '高中政治', 'Social Science'], 'high_school_geography': ['High School Geography', '高中地理', 'Social Science'], 'middle_school_politics': ['Middle School Politics', '初中政治', 'Social Science'], 'middle_school_geography': ['Middle School Geography', '初中地理', 'Social Science'], 'modern_chinese_history': ['Modern Chinese History', '近代史纲要', 'Humanities'], 'ideological_and_moral_cultivation': ['Ideological and Moral Cultivation', '思想道德修养与法律基础', 'Humanities'], 'logic': ['Logic', '逻辑学', 'Humanities'], 'law': ['Law', '法学', 'Humanities'], 'chinese_language_and_literature': ['Chinese Language and Literature', '中国语言文学', 'Humanities'], 'art_studies': ['Art Studies', '艺术学', 'Humanities'], 'professional_tour_guide': ['Professional Tour Guide', '导游资格', 'Humanities'], 'legal_professional': ['Legal Professional', '法律职业资格', 'Humanities'], 'high_school_chinese': ['High School Chinese', '高中语文', 'Humanities'], 'high_school_history': ['High School History', '高中历史', 'Humanities'], 'middle_school_history': ['Middle School History', '初中历史', 'Humanities'], 'civil_servant': ['Civil Servant', '公务员', 'Other'], 'sports_science': ['Sports Science', '体育学', 'Other'], 'plant_protection': ['Plant Protection', '植物保护', 'Other'], 'basic_medicine': ['Basic Medicine', '基础医学', 'Other'], 'clinical_medicine': ['Clinical Medicine', '临床医学', 'Other'], 'urban_and_rural_planner': ['Urban and Rural Planner', '注册城乡规划师', 'Other'], 'accountant': ['Accountant', '注册会计师', 'Other'], 'fire_engineer': ['Fire Engineer', '注册消防工程师', 'Other'], 'environmental_impact_assessment_engineer': ['Environmental Impact Assessment Engineer', '环境影响评价工程师', 'Other'], 'tax_accountant': ['Tax Accountant', '税务师', 'Other'], 'physician': ['Physician', '医师资格', 'Other']}

subject = 'computer_network.test'

data = {
    'data': {
        'question': 'What is a computer network?',
        'res1': 'A system of interconnected computers',
        'res2': 'A single computer',
        'res3': 'A printer',
        'res4': 'A monitor'
    }
}

ARGS = {
    'subject': subject,
    'data': data
}
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, ndim 2, 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
make_ABCD_input_0_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/CMMLU/moban.py
code served (permissive licence) · get_code("9ca4a81f11223f44")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Examine the function to understand what it needs:
# - subject: a string like 'agronomy' or 'agronomy.something'
# - data: a dict with a 'data' key containing a dict with:
#   - 'question': a string
#   - 'res1', 'res2', 'res3', 'res4': strings (answer options)
#   - must NOT have 'res5'

ARGS = {
    'subject': 'agronomy',
    'data': {
        'data': {
            'question': 'What is the study of soil management?',
            'res1': 'The study of plants',
            'res2': 'The study of soil and crop production',
            'res3': 'The study of animals',
            'res4': 'The study of weather patterns'
        }
    }
}
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, ndim 2, 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
make_ABCD_input_25_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/ARC/template.py
code served (permissive licence) · get_code("7c7bc3af994e8c59")
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.

# Analyze the function to understand what it needs
# make_ABCD_input_25_shot takes: subject (str), data (dict)
# data needs: 'data' key with a demo dict, 'demo' key with list of demo dicts
# Each demo dict needs: 'question', 'opt_num', 'res1', 'res2', etc., 'ans'

def create_demo_dict(question_text, num_options, answer):
    """Helper to create a demo dictionary"""
    demo = {
        'question': question_text,
        'opt_num': num_options,
        'ans': answer
    }
    # Add option responses
    options = ['photosynthesis', 'cellular respiration', 'mitosis', 'meiosis']
    for idx in range(num_options):
        demo[f'res{idx + 1}'] = options[idx]
    return demo

# Create demo data for the 'data' field
main_demo = create_demo_dict(
    'What process do plants use to convert sunlight into energy?',
    4,
    'A'
)

# Create list of few-shot demos
few_shot_demos = [
    create_demo_dict(
        'Which organelle is responsible for producing energy in a cell?',
        4,
        'B'
    ),
    create_demo_dict(
        'What is the basic unit of life?',
        4,
        'C'
    ),
    create_demo_dict(
        'How many chromosomes do humans typically have?',
        4,
        'D'
    ),
]

# Construct the data dictionary
data = {
    'data': main_demo,
    'demo': few_shot_demos
}

# Construct ARGS
ARGS = {
    'subject': 'biology',
    'data': data
}
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 — 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
make_ppl_input_0_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/C-Eval/moban.py
code served (permissive licence) · get_code("e2eaf8f3ca6c3150")
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 the data dictionary with the required structure
data = {
    'data': {
        'question': '这是一道数学题',
        'res1': '选项A',
        'res2': '选项B',
        'res3': '选项C',
        'res4': '选项D'
    }
}

subject = '数学'

ARGS = {
    'subject': subject,
    'data': data
}
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
make_ppl_input_0_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/MMLU/template.py
code served (permissive licence) · get_code("2f649837afcee3d7")
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
import numpy as np

torch.manual_seed(0)

# Build the subject parameter - appears to be a simple identifier
subject = "test_subject"

# Build the data parameter - a dict containing 'data' key with demo info
data = {
    'data': {
        'question': 'What is the capital of France?',
        'res1': 'Paris',
        'res2': 'London',
        'res3': 'Berlin',
        'res4': 'Madrid'
    }
}

ARGS = {
    'subject': subject,
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — 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
make_ppl_input_0_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/PIQA/template.py
code served (permissive licence) · get_code("e6bb902901596a24")
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
import numpy as np

torch.manual_seed(0)

# Construct the data argument
data = {
    'data': {
        'question': 'What is the capital of France?',
        'res1': 'Paris',
        'res2': 'London'
    }
}

# Construct the subject argument (appears to be unused in the function)
subject = 'geography'

# Define ARGS mapping all parameters
ARGS = {
    'subject': subject,
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — 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
make_ppl_input_10_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/PIQA/template.py
code served (permissive licence) · get_code("c10614604fc54cfe")
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

# Construct valid arguments for make_ppl_input_10_shot

subject = "physics"

data = {
    'data': {
        'question': 'What is the speed of light?',
        'res1': '3 x 10^8 m/s',
        'res2': '2 x 10^8 m/s'
    },
    'demo': [
        {
            'question': 'What is the atomic number of carbon?',
            'res1': '6',
            'res2': '12',
            'ans': 'A'
        },
        {
            'question': 'What is the boiling point of water?',
            'res1': '100°C',
            'res2': '50°C',
            'ans': 'A'
        },
        {
            'question': 'What is the chemical symbol for gold?',
            'res1': 'Au',
            'res2': 'Ag',
            'ans': 'A'
        },
        {
            'question': 'What is Planck constant approximately?',
            'res1': '6.626 x 10^-34 J·s',
            'res2': '1.602 x 10^-19 J·s',
            'ans': 'A'
        },
        {
            'question': 'What is the SI unit of force?',
            'res1': 'Newton',
            'res2': 'Joule',
            'ans': 'A'
        },
        {
            'question': 'What is the speed of sound in air?',
            'res1': '343 m/s',
            'res2': '500 m/s',
            'ans': 'A'
        },
        {
            'question': 'What is the gravitational constant G?',
            'res1': '6.674 x 10^-11 N·m²/kg²',
            'res2': '9.8 m/s²',
            'ans': 'A'
        },
        {
            'question': 'What is the charge of an electron?',
            'res1': '-1.602 x 10^-19 C',
            'res2': '+1.602 x 10^-19 C',
            'ans': 'A'
        },
        {
            'question': 'What is Avogadro number?',
            'res1': '6.022 x 10^23',
            'res2': '6.022 x 10^20',
            'ans': 'A'
        },
        {
            'question': 'What is the freezing point of water?',
            'res1': '0°C',
            'res2': '-10°C',
            'ans': 'A'
        }
    ]
}

ARGS = {
    'subject': subject,
    'data': data
}
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
make_ppl_input_5_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/C-Eval/moban.py
code served (permissive licence) · get_code("259357a18b0eb827")
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
import numpy as np

# Based on the function body, we need:
# - subject: a string (not used in the function)
# - data: a dict with 'data' and 'demo' keys
#   - data['data']: a dict with keys 'question', 'res1', 'res2', 'res3', 'res4'
#   - data['demo']: a list of dicts, each with 'question', 'res1', 'res2', 'res3', 'res4', 'ans'

ARGS = {
    'subject': 'Chinese',
    'data': {
        'data': {
            'question': '下面哪个选项是正确的?',
            'res1': '选项A',
            'res2': '选项B',
            'res3': '选项C',
            'res4': '选项D',
        },
        'demo': [
            {
                'question': '示例问题1',
                'res1': '示例A1',
                'res2': '示例B1',
                'res3': '示例C1',
                'res4': '示例D1',
                'ans': 'A',
            },
            {
                'question': '示例问题2',
                'res1': '示例A2',
                'res2': '示例B2',
                'res3': '示例C2',
                'res4': '示例D2',
                'ans': 'B',
            },
            {
                'question': '示例问题3',
                'res1': '示例A3',
                'res2': '示例B3',
                'res3': '示例C3',
                'res4': '示例D3',
                'ans': 'C',
            },
            {
                'question': '示例问题4',
                'res1': '示例A4',
                'res2': '示例B4',
                'res3': '示例C4',
                'res4': '示例D4',
                'ans': 'D',
            },
            {
                'question': '示例问题5',
                'res1': '示例A5',
                'res2': '示例B5',
                'res3': '示例C5',
                'res4': '示例D5',
                'ans': 'A',
            },
        ],
    },
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — 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
make_ppl_input_5_shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/MMLU/template.py
code served (permissive licence) · get_code("092eedfde7c54d94")
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
import numpy as np

torch.manual_seed(0)

ARGS = {
    'subject': 'biology',
    'data': {
        'data': {
            'question': 'What is the powerhouse of the cell?',
            'res1': 'Mitochondria',
            'res2': 'Nucleus',
            'res3': 'Ribosome',
            'res4': 'Endoplasmic Reticulum',
            'ans': 'A'
        },
        'demo': [
            {
                'question': 'What is photosynthesis?',
                'res1': 'Process of making food from sunlight',
                'res2': 'Process of breaking down food',
                'res3': 'Process of cell division',
                'res4': 'Process of protein synthesis',
                'ans': 'A'
            },
            {
                'question': 'What does DNA stand for?',
                'res1': 'Deoxyribonucleic Acid',
                'res2': 'Ribonucleic Acid',
                'res3': 'Dynamic Nuclear Acid',
                'res4': 'Deoxidized Nucleotide Array',
                'ans': 'A'
            },
            {
                'question': 'What is the function of chloroplasts?',
                'res1': 'Energy storage',
                'res2': 'Photosynthesis',
                'res3': 'Protein synthesis',
                'res4': 'Waste removal',
                'ans': 'B'
            },
            {
                'question': 'Which organelle controls cell activities?',
                'res1': 'Mitochondria',
                'res2': 'Chloroplast',
                'res3': 'Nucleus',
                'res4': 'Ribosome',
                'ans': 'C'
            },
            {
                'question': 'What is the basic unit of life?',
                'res1': 'Atom',
                'res2': 'Cell',
                'res3': 'Molecule',
                'res4': 'Organ',
                'ans': 'B'
            }
        ]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — 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
make_r_ppl_input_10shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/PIQA/template.py
code served (permissive licence) · get_code("563f98855addfe7a")
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 re

def make_r_ppl_input_10shot(subject, data):

    def write_sentinal(s):

        def replacer(match):
            replacer.counter += 1
            return f'<extra_id_{replacer.counter}>'
        replacer.counter = -1
        return re.sub('\\|\\*sent_id\\*\\|', replacer, s)

    def make_data(data):
        return [write_sentinal(data[0]), [write_sentinal(i) for i in data[1]]]
    ASK_TEMPLATE = 'Question: {:} Answer: '
    ANS_TEMPLATE = '|*sent_id*| '
    demo = data['data']
    output, decoder_input_texts = ([], ['|*sent_id*| ' + demo[f'res{i}'] for i in range(1, 3)])
    fs_decoder_input_text, fs_input_text = ('', '')
    input_text = ASK_TEMPLATE.format(demo['question']) + ' ' + ANS_TEMPLATE
    output.append(make_data([fs_input_text + input_text, [fs_decoder_input_text + i for i in decoder_input_texts]]))
    for demo in data['demo']:
        ans_dic = {'A': 'res1', 'B': 'res2'}
        fs_input_text += ASK_TEMPLATE.format(demo['question']) + ' ' + ANS_TEMPLATE + ' '
        fs_decoder_input_text += '|*sent_id*| ' + demo[ans_dic[demo[f'ans']]]
        output.append(make_data([fs_input_text + input_text, [fs_decoder_input_text + i for i in decoder_input_texts]]))
    return output


ARGS = {
    'subject': 'biology',
    'data': {
        'data': {
            'question': 'What is photosynthesis?',
            'res1': 'Process of converting light to chemical energy',
            'res2': 'Process of converting heat to mechanical energy'
        },
        'demo': [
            {
                'question': 'What is respiration?',
                'res1': 'Process of breaking down glucose for energy',
                'res2': 'Process of producing oxygen in cells',
                'ans': 'A'
            },
            {
                'question': 'What is mitosis?',
                'res1': 'Division of a cell nucleus into two nuclei',
                'res2': 'Division of a cell into four gametes',
                'ans': 'B'
            }
        ]
    }
}
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 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
make_r_ppl_input_5shot Ran
ran on a synthesized input
opennlg/openba-v2/evaluation/MMLU/template.py
code served (permissive licence) · get_code("9dfbe0e29d0f6312")
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 re

def make_r_ppl_input_5shot(subject, data):

    def write_sentinal(s):

        def replacer(match):
            replacer.counter += 1
            return f'<extra_id_{replacer.counter}>'
        replacer.counter = -1
        return re.sub('\\|\\*sent_id\\*\\|', replacer, s)

    def make_data(data):
        return [write_sentinal(data[0]), [write_sentinal(i) for i in data[1]]]
    ASK_TEMPLATE = 'Question: {:} Options: - {:} - {:} - {:} - {:}'
    ANS_TEMPLATE = 'Answer: |*sent_id*| '
    demo = data['data']
    output, decoder_input_texts = ([], ['|*sent_id*| ' + demo[f'res{i}'] for i in range(1, 5)])
    fs_decoder_input_text, fs_input_text = ('', '')
    input_text = ASK_TEMPLATE.format(demo['question'], demo['res1'], demo['res2'], demo['res3'], demo['res4']) + ' ' + ANS_TEMPLATE
    output.append(make_data([fs_input_text + input_text, [fs_decoder_input_text + i for i in decoder_input_texts]]))
    for demo in data['demo']:
        ans_dic = {'A': 'res1', 'B': 'res2', 'C': 'res3', 'D': 'res4'}
        fs_input_text += ASK_TEMPLATE.format(demo['question'], demo['res1'], demo['res2'], demo['res3'], demo['res4']) + ' ' + ANS_TEMPLATE + ' '
        fs_decoder_input_text += '|*sent_id*| ' + demo[ans_dic[demo[f'ans']]]
        output.append(make_data([fs_input_text + input_text, [fs_decoder_input_text + i for i in decoder_input_texts]]))
    return output


ARGS = {
    'subject': 'biology',
    'data': {
        'data': {
            'question': 'What is photosynthesis?',
            'res1': 'Process of converting light to chemical energy',
            'res2': 'Process of breaking down glucose',
            'res3': 'Process of cellular respiration',
            'res4': 'Process of ATP synthesis'
        },
        'demo': [
            {
                'question': 'What is mitochondria?',
                'res1': 'Powerhouse of the cell',
                'res2': 'Site of photosynthesis',
                'res3': 'Nuclear envelope',
                'res4': 'Ribosome',
                'ans': 'A'
            },
            {
                'question': 'What is DNA?',
                'res1': 'Protein molecule',
                'res2': 'Genetic material',
                'res3': 'Enzyme',
                'res4': 'Carbohydrate',
                'ans': 'B'
            },
            {
                'question': 'What is a ribosome?',
                'res1': 'Site of protein synthesis',
                'res2': 'Site of photosynthesis',
                'res3': 'Storage organelle',
                'res4': 'Energy producer',
                'ans': 'A'
            },
            {
                'question': 'What is ATP?',
                'res1': 'Protein',
                'res2': 'Lipid',
                'res3': 'Energy currency of cells',
                'res4': 'Nucleic acid',
                'ans': 'C'
            },
            {
                'question': 'What is glycolysis?',
                'res1': 'Breakdown of glucose',
                'res2': 'Synthesis of glucose',
                'res3': 'Photosynthesis process',
                'res4': 'DNA replication',
                'ans': 'A'
            }
        ]
    }
}
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 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
add_megatron_checkpoint_args Not yet run
unverified (harvested, no recorded run)
opennlg/openba-v2/convert_megatron_to_hf_ckpt.py
code served (permissive licence) · get_code("33a078e319b0a5aa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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.

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

Existing pre-trained models are generally geared towards a particular class of problems. To date, there seems to be still no consensus on what the right architecture and pre-training setup should be. This paper presents a unified framework for pre-training models that are universally effective across datasets and setups. We begin by disentangling architectural archetypes with pre-training objectives -- two concepts that are commonly conflated. Next, we present a generalized &amp; unified perspective for self-supervision in NLP and show how different pre-training objectives can be cast as one another and how interpolating between different objectives can be effective. We then propose Mixture-of-Denoisers (MoD), a pre-training objective that combines diverse pre-training paradigms together. We furthermore introduce a notion of mode switching, wherein downstream fine-tuning is associated with specific pre-training schemes. We conduct extensive ablative experiments to compare multiple pre-training objectives and find that our method pushes the Pareto-frontier by outperforming T5 &amp; GPT-like models across multiple diverse setups. By scaling our model up to 20B parameters, we achieve SOTA performance on 50 well-established supervised finetuning based NLP tasks. Our model also achieve strong results at in-context learning, outperforming 175B GPT-3 on zero-shot SuperGLUE and tripling the performance of T5-XXL on one-shot summarization. On 0-shot MMLU, UL2 20B outperforms T0 and T5 models. UL2 20B also works well with chain-of-thought prompting and reasoning, making it an appealing choice for research into reasoning at a small to medium scale of 20B parameters. Finally, we apply FLAN instruction tuning to the UL2 20B model, achieving MMLU and Big-Bench scores competitive to FLAN-PaLM 62B. We release Flax-based T5X checkpoints for the UL2 20B &amp; Flan-UL2 20B.

For agents

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

get_harvested_code_for_paper("2205.05131")
get_code_for_paper("2205.05131")
have("2205.05131")

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

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

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

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

Connect an agent — have() is free.