SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.16208 · ICLR · 2025

Compute-Constrained Data Selection

Alexander Rush, Junjie Yin

arXiv · PDF · Open in the Atlas

Code that ran

14 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; 0 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 11 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/2410.16208.json · badge: /api/ran/2410.16208.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
oseyosey/CCDS canonical (classifier label)
classifier basis: census
13 ran · 3 no recorded run
oseyosey/ccds canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
FunctionStatusWhere it lives
concatenated_forward Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/open_instruct/dpo_utils.py
code served (permissive licence) · get_code("c50f39ac5b3486bb")
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 torch.nn as nn
from typing import Dict, Union, List

torch.manual_seed(0)

# Build a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self, vocab_size=10, hidden_size=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.lm_head = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids, attention_mask):
        # input_ids shape: (batch_size, seq_len)
        # Returns object with .logits attribute
        x = self.embedding(input_ids)  # (batch_size, seq_len, hidden_size)
        logits = self.lm_head(x)  # (batch_size, seq_len, vocab_size)
        
        # Return object with logits attribute
        class Output:
            pass
        output = Output()
        output.logits = logits
        return output

# Create model instance
model = MinimalModel(vocab_size=10, hidden_size=4)

# Create a batch with chosen and rejected inputs
# batch_size=2, sequence_length=5, vocab_size=10
batch = {
    'chosen_input_ids': torch.randint(0, 10, (2, 5), dtype=torch.long),
    'chosen_labels': torch.randint(0, 10, (2, 5), dtype=torch.long),
    'chosen_attention_mask': torch.ones((2, 5), dtype=torch.long),
    'rejected_input_ids': torch.randint(0, 10, (2, 5), dtype=torch.long),
    'rejected_labels': torch.randint(0, 10, (2, 5), dtype=torch.long),
    'rejected_attention_mask': torch.ones((2, 5), dtype=torch.long),
}

# Set some labels to -100 (masked tokens)
batch['chosen_labels'][0, 0] = -100
batch['rejected_labels'][1, 2] = -100

ARGS = {
    'model': model,
    'batch': batch,
}
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
concatenated_inputs Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/open_instruct/dpo_utils.py
code served (permissive licence) · get_code("da4eb3f18cb89ad4")
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

torch.manual_seed(0)

# Construct a batch dictionary with chosen and rejected input_ids and labels
# The function expects tensors with shape (batch_size, sequence_length)
batch = {
    'chosen_input_ids': torch.randint(0, 1000, (2, 4)),  # batch_size=2, seq_len=4
    'chosen_labels': torch.randint(-100, 1000, (2, 4)),  # batch_size=2, seq_len=4
    'rejected_input_ids': torch.randint(0, 1000, (2, 3)),  # batch_size=2, seq_len=3 (different length)
    'rejected_labels': torch.randint(-100, 1000, (2, 3)),  # batch_size=2, seq_len=3
}

ARGS = {
    'batch': batch,
}
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
create_prompt_with_llama2_chat_format Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/eval/templates.py
code served (permissive licence) · get_code("e51c9713fadad16f")
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

# Define the arguments for create_prompt_with_llama2_chat_format
ARGS = {
    'messages': [
        {'role': 'system', 'content': 'You are a helpful assistant.'},
        {'role': 'user', 'content': 'Hello, how are you?'},
        {'role': 'assistant', 'content': 'I am doing well, thank you for asking.'},
        {'role': 'user', 'content': 'What is your name?'},
        {'role': 'assistant', 'content': 'I am Claude, an AI assistant.'}
    ],
    'bos': '<s>',
    'eos': '</s>',
    'add_bos': 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
create_prompt_with_tulu_chat_format Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/eval/templates.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thu-keg/crab, is pointer only (licence: NONE) · get_code("697d92a5d51eff3e")
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 thu-keg/crab, 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.

dispatch_openai_chat_requesets Ran
ran on a synthesized input
oseyosey/CCDS/ccds/evaluation/eval/dispatch_openai_requests.py
code served (permissive licence) · get_code("dfe736d72f7fb77f")
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 coroutine. 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 openai
import asyncio
from typing import Any, List, Dict

# Set up mock OpenAI API
class MockChatCompletion:
    @staticmethod
    async def acreate(**kwargs):
        # Simulate async OpenAI response
        await asyncio.sleep(0)
        return {"choices": [{"message": {"content": "Mock response"}}]}

# Replace openai.ChatCompletion with mock
openai.ChatCompletion = MockChatCompletion

# Construct valid arguments
ARGS = {
    "messages_list": [
        [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Hello, how are you?"}
        ],
        [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "What is 2+2?"}
        ]
    ],
    "model": "gpt-3.5-turbo",
    "temperature": 0.7,
    "max_tokens": 100,
    "top_p": 0.9
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
dispatch_openai_prompt_requesets Ran
ran on a synthesized input
oseyosey/CCDS/ccds/evaluation/eval/dispatch_openai_requests.py
code served (permissive licence) · get_code("394a6cf6a2b821be")
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 coroutine. 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 openai
import asyncio
from typing import Any, List, Dict

# Set up mock for openai.Completion.acreate since we can't make real API calls
class MockCompletion:
    @staticmethod
    async def acreate(**kwargs):
        # Return a mock response object
        return {"choices": [{"text": "Mock response"}], "usage": {"total_tokens": 10}}

# Monkey-patch openai to use mock
openai.Completion.acreate = MockCompletion.acreate

# Define arguments for the function
ARGS = {
    "prompt_list": [
        "What is the capital of France?",
        "Explain machine learning in one sentence."
    ],
    "model": "text-davinci-003",
    "max_tokens": 100,
    "temperature": 0.7
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
dpo_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
oseyosey/CCDS/ccds/evaluation/open_instruct/dpo_utils.py
code served (permissive licence) · get_code("48ff6fdc0e5dae2e")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small batch tensors for log probabilities
batch_size = 2

# Policy model log probabilities
policy_chosen_logps = torch.randn(batch_size, dtype=torch.float32)
policy_rejected_logps = torch.randn(batch_size, dtype=torch.float32)

# Reference model log probabilities
reference_chosen_logps = torch.randn(batch_size, dtype=torch.float32)
reference_rejected_logps = torch.randn(batch_size, dtype=torch.float32)

# Beta parameter for DPO loss
beta = 0.1

# Reference free flag
reference_free = False

ARGS = {
    "policy_chosen_logps": policy_chosen_logps,
    "policy_rejected_logps": policy_rejected_logps,
    "reference_chosen_logps": reference_chosen_logps,
    "reference_rejected_logps": reference_rejected_logps,
    "beta": beta,
    "reference_free": reference_free,
}
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
encode_few_shot_example Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/open_instruct/reformat_datasets.py
code served (permissive licence) · get_code("96351a65183bb428")
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

torch.manual_seed(0)

instruction = "Classify the sentiment of the following text as positive or negative."

examplars = [
    {
        'input': 'I really loved this movie, it was fantastic!',
        'output': 'positive'
    },
    {
        'input': 'This product is terrible and broke immediately.',
        'output': 'negative'
    }
]

input_text = 'The weather today is absolutely beautiful and sunny.'

output_text = 'positive'

eos_token = '</s>'

ARGS = {
    'instruction': instruction,
    'examplars': examplars,
    'input': input_text,
    'output': output_text,
    'eos_token': eos_token
}
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
encode_instruction_example Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/open_instruct/reformat_datasets.py
code served (permissive licence) · get_code("f839fd4c6f96a26f")
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 random

ARGS = {
    'instruction': 'Write a Python function that adds two numbers',
    'input': 'a = 5, b = 3',
    'output': 'def add(a, b):\n    return a + b\n\nresult = add(5, 3)  # returns 8',
    'random_template': True,
    'eos_token': '<|endoftext|>'
}
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 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
encode_with_messages_format Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/open_instruct/finetune.py
code served (permissive licence) · get_code("97229c97d4273595")
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 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

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.eos_token = '<|end|>'
        self.bos_token = '<|begin|>'
    
    def __call__(self, text, return_tensors=None, max_length=None, truncation=False):
        # Simple mock: return a fixed-size tensor based on text length
        # Each character roughly maps to a token
        num_tokens = min(len(text) // 4 + 1, max_length) if max_length else len(text) // 4 + 1
        num_tokens = max(1, num_tokens)
        
        input_ids = torch.randint(0, 1000, (1, num_tokens))
        
        class TokenizerOutput:
            def __init__(self, input_ids):
                self.input_ids = input_ids
        
        return TokenizerOutput(input_ids)

example = {
    'messages': [
        {
            'role': 'system',
            'content': 'You are a helpful assistant.'
        },
        {
            'role': 'user',
            'content': 'What is 2+2?'
        },
        {
            'role': 'assistant',
            'content': 'The answer is 4.'
        }
    ]
}

tokenizer = MockTokenizer()
max_seq_length = 128
add_bos = False

ARGS = {
    'example': example,
    'tokenizer': tokenizer,
    'max_seq_length': max_seq_length,
    'add_bos': add_bos
}
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 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
encode_with_messages_format Ran
ran; our contract draft was wrong, not the code
oseyosey/ccds/ccds/evaluation/open_instruct/dpo_tune.py
code served (permissive licence) · get_code("254ab4972fe2c4e2")
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
from transformers import AutoTokenizer

torch.manual_seed(0)

# Create a minimal tokenizer stand-in with required methods/attributes
class MinimalTokenizer:
    def __init__(self):
        self.eos_token = '</s>'
        self.bos_token = '<s>'
    
    def __call__(self, text, return_tensors=None, max_length=None, truncation=False):
        # Simple tokenization: split on whitespace and assign token IDs
        tokens = text.split()
        token_ids = [100 + i % 50 for i in range(len(tokens))]
        
        if max_length and len(token_ids) > max_length:
            token_ids = token_ids[:max_length]
        
        if return_tensors == 'pt':
            return type('obj', (object,), {
                'input_ids': torch.tensor([token_ids], dtype=torch.long)
            })()
        
        return token_ids

tokenizer = MinimalTokenizer()

# Create example with chosen and rejected message lists
example = {
    'chosen': [
        {'role': 'system', 'content': 'You are a helpful assistant.'},
        {'role': 'user', 'content': 'Hello, how are you?'},
        {'role': 'assistant', 'content': 'I am doing well, thank you for asking.'}
    ],
    'rejected': [
        {'role': 'system', 'content': 'You are a helpful assistant.'},
        {'role': 'user', 'content': 'Hello, how are you?'},
        {'role': 'assistant', 'content': 'I am not doing well.'}
    ]
}

max_seq_length = 128
add_bos = False

ARGS = {
    'example': example,
    'tokenizer': tokenizer,
    'max_seq_length': max_seq_length,
    'add_bos': add_bos
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
encode_with_prompt_completion_format Ran
ran; our contract draft was wrong, not the code
oseyosey/CCDS/ccds/evaluation/open_instruct/finetune.py
code served (permissive licence) · get_code("5966cc3120c46d61")
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
from transformers import AutoTokenizer

torch.manual_seed(0)

# Create a minimal tokenizer stand-in that has the required methods and attributes
class MinimalTokenizer:
    def __init__(self):
        self.eos_token = "</s>"
        self.bos_token = "<s>"
    
    def __call__(self, text, return_tensors=None, max_length=None, truncation=False):
        # Simple tokenization: split on spaces and encode as token ids
        tokens = text.split()
        token_ids = [hash(token) % 1000 for token in tokens]  # Simple hash-based encoding
        
        if max_length and len(token_ids) > max_length:
            token_ids = token_ids[:max_length]
        
        input_ids = torch.tensor([token_ids], dtype=torch.long)
        
        if return_tensors == 'pt':
            return type('TokenizerOutput', (), {'input_ids': input_ids})()
        return input_ids

# Create example data
example = {
    'prompt': 'What is the capital of France?',
    'completion': 'Paris'
}

tokenizer = MinimalTokenizer()
max_seq_length = 128
add_bos = False

ARGS = {
    'example': example,
    'tokenizer': tokenizer,
    'max_seq_length': max_seq_length,
    'add_bos': add_bos
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
get_next_word_predictions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
oseyosey/CCDS/ccds/evaluation/eval/utils.py
code served (permissive licence) · get_code("d134c88af0236263")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from unittest.mock import Mock

torch.manual_seed(0)

# Build a minimal model that satisfies function requirements
class MinimalLanguageModel(nn.Module):
    def __init__(self, vocab_size=100, hidden_size=4):
        super().__init__()
        self.linear = nn.Linear(hidden_size, vocab_size)
        self.device_obj = Mock()
        self.device_obj.type = 'cpu'
    
    @property
    def device(self):
        return self.device_obj
    
    def forward(self, input_ids, attention_mask):
        # input_ids: (batch_size, seq_len)
        # Return logits of shape (batch_size, seq_len, vocab_size)
        batch_size, seq_len = input_ids.shape
        hidden = torch.randn(batch_size, seq_len, 4)
        logits = self.linear(hidden)
        return Mock(logits=logits)

# Build a minimal tokenizer that satisfies function requirements
class MinimalTokenizer:
    def __init__(self, vocab_size=100):
        self.vocab_size = vocab_size
    
    def __call__(self, texts, padding='longest', return_tensors='pt', add_special_tokens=True):
        if isinstance(texts, str):
            texts = [texts]
        max_len = max(len(text.split()) for text in texts) + 2
        batch_size = len(texts)
        input_ids = torch.randint(0, self.vocab_size, (batch_size, max_len))
        attention_mask = torch.ones(batch_size, max_len)
        return Mock(input_ids=input_ids, attention_mask=attention_mask)
    
    def convert_ids_to_tokens(self, ids):
        if isinstance(ids, torch.Tensor):
            ids = ids.tolist()
        if isinstance(ids, list):
            return [f'token_{id}' for id in ids]
        return f'token_{ids}'

model = MinimalLanguageModel(vocab_size=100, hidden_size=4)
tokenizer = MinimalTokenizer(vocab_size=100)
prompts = ["Hello world", "How are you"]
candidate_token_ids = torch.tensor([5, 10, 15, 20])

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'prompts': prompts,
    'candidate_token_ids': candidate_token_ids,
    'batch_size': 1,
    'return_token_predictions': False,
    'add_special_tokens': True,
    'disable_tqdm': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
should_be_filtered Ran
ran, violated the contract we drafted
oseyosey/CCDS/ccds/evaluation/open_instruct/reformat_datasets.py
code served (permissive licence) · get_code("08f4816632095bc7")
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

# Construct a valid example dictionary that the function expects
example = {
    'messages': [
        {
            'content': 'This is a regular message about machine learning.'
        },
        {
            'content': 'I was using ChatGPT for this task.'
        }
    ]
}

ARGS = {
    'example': example
}
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
generate_completions Not yet run
unverified (harvested, no recorded run)
oseyosey/CCDS/ccds/evaluation/eval/utils.py
code served (permissive licence) · get_code("352416cd121404a7")
How it ran

no invocation recorded.

get_statistics_for_messages_data Not yet run
unverified (harvested, no recorded run)
oseyosey/CCDS/ccds/evaluation/open_instruct/get_statistics.py
code served (permissive licence) · get_code("976ed9d65974a290")
How it ran

no invocation recorded.

get_statistics_for_prompt_completion_data Not yet run
unverified (harvested, no recorded run)
oseyosey/CCDS/ccds/evaluation/open_instruct/get_statistics.py
code served (permissive licence) · get_code("c6e64d6945c8512f")
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 17 distinct functions with an identity, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 2 the same month, 2 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

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

FunctionAlso present inEarliest-datedOthers named
get_next_word_predictions 10 other papers
5 dated earlier, 1 the same month, 4 later
2401.15006 (2024-01)
Airavata: Introducing Hindi Instruction-tuned LLM
2401.16405 (2024-01)
Scaling Sparse Fine-Tuning to Large Language Models
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection
and 7 more not named here
create_prompt_with_tulu_chat_format 8 other papers
7 dated earlier, 1 the same month
2401.10768 (2024-01)
Knowledge Verification to Nip Hallucination in the Bud
2401.16405 (2024-01)
Scaling Sparse Fine-Tuning to Large Language Models
2403.03870 (2024-03)
Learning to Decode Collaboratively with Multiple Language Models
and 5 more not named here
create_prompt_with_llama2_chat_format 6 other papers
6 dated earlier
2401.08565 (2024-01)
Tuning Language Models by Proxy
2401.10768 (2024-01)
Knowledge Verification to Nip Hallucination in the Bud
2401.16405 (2024-01)
Scaling Sparse Fine-Tuning to Large Language Models
and 3 more not named here
dpo_loss 6 other papers
6 dated earlier
2305.14718 (2023-05)
Leftover Lunch: Advantage-based Offline Reinforcement Learning for Language Models
2309.16240 (2023-09)
Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence Constraints
2312.00267 (2023-12)
Sample Efficient Preference Alignment in LLMs via Active Exploration
and 3 more not named here
generate_completions 6 other papers
5 dated earlier, 1 later
2310.08491 (2023-10)
Prometheus: Inducing Fine-grained Evaluation Capability in Language Models
2401.10768 (2024-01)
Knowledge Verification to Nip Hallucination in the Bud
2401.15006 (2024-01)
Airavata: Introducing Hindi Instruction-tuned LLM
and 3 more not named here
encode_with_prompt_completion_format 4 other papers
4 dated earlier
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2405.20974 (2024-05)
SaySelf: Teaching LLMs to Express Confidence with Self-Reflective Rationales
and 1 more not named here
encode_few_shot_example 3 other papers
3 dated earlier
2312.07540 (2023-12)
diff History for Neural Language Agents
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2405.14394 (2024-05)
Instruction Tuning With Loss Over Instructions
encode_instruction_example 3 other papers
3 dated earlier
2312.07540 (2023-12)
diff History for Neural Language Agents
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2405.14394 (2024-05)
Instruction Tuning With Loss Over Instructions
encode_with_messages_format 3 other papers
3 dated earlier
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2406.15444 (2024-06)
Published at ICLR 2025 Workshop on Reasoning and Planning for LLMs CUTTING THROUGH THE NOISE: BOOSTING LLM PERFORMANCE ON MATH WORD PROBLEMS
concatenated_forward 2 other papers
2 dated earlier
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2408.04568 (2024-08)
Learning Fine-Grained Grounded Citations for Attributed Large Language Models
concatenated_inputs 2 other papers
2 dated earlier
2405.05008 (2024-05)
ADELIE: Aligning Large Language Models on Information Extraction
2408.04568 (2024-08)
Learning Fine-Grained Grounded Citations for Attributed Large Language Models
should_be_filtered 2 other papers
2 dated earlier
2405.14394 (2024-05)
Instruction Tuning With Loss Over Instructions
2407.15235 (2024-07)
TAGCOS: Task-agnostic Gradient Clustered Coreset Selection for Instruction Tuning Data
dispatch_openai_chat_requesets 1 other paper
1 dated earlier
2402.04333 (2024-02)
LESS: Selecting Influential Data for Targeted Instruction Tuning
dispatch_openai_prompt_requesets 1 other paper
1 dated earlier
2402.04333 (2024-02)
LESS: Selecting Influential Data for Targeted Instruction Tuning
encode_with_messages_format 1 other paper
1 dated earlier
2402.16705 (2024-02)
SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection

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

Data selection can reduce the amount of training data needed to finetune LLMs; however, the efficacy of data selection scales directly with its compute. Motivated by the practical challenge of compute-constrained finetuning, we consider the setting in which both the cost of selecting data and training are budgeted for. We first formalize the problem of data selection with a cost-aware utility function, and model the data selection problem as trading off initial-selection cost for training gain. We run a comprehensive sweep of experiments across multiple tasks, varying compute budget by scaling finetuning tokens, model sizes, and data selection compute. Interestingly we find that many powerful data selection methods are almost never compute-optimal, and that cheaper data selection alternatives dominate both from a theoretical and empirical perspective. For compute-optimal training, we find that perplexity and gradient data selection require training-to-selection model size ratios of 5x and 10x, respectively.

For agents

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

get_harvested_code_for_paper("2410.16208")
get_code_for_paper("2410.16208")
have("2410.16208")

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

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

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

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

Connect an agent — have() is free.