| add_indices |
Ran ran on a synthesized input |
SakanaAI/RLT/custom_data/sft_data.py code served (permissive licence) · get_code("9d2579ff21e86b0f") How it ranRan 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 Dataset. 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
from datasets import Dataset
torch.manual_seed(0)
# Create a minimal dataset with some columns but without '__index'
data = {
'text': ['hello', 'world'],
'label': [0, 1]
}
ds = Dataset.from_dict(data)
ARGS = {
'ds': ds
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| combine_items |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/teacher_rewards.py code served (permissive licence) · get_code("57900181a4f0bebc") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Test case 1: items is a list of tensors
items_tensors = [torch.randn(2, 4), torch.randn(2, 4)]
# Test case 2: items is a list of floats
items_floats = [1.5, 2.5, 3.5]
# Test case 3: items is a list of lists
items_lists = [[1, 2], [3, 4], [5, 6]]
# Test case 4: items is a list of dicts with nested tensors
items_dicts = [
{"a": torch.randn(2, 4), "b": torch.randn(2, 3)},
{"a": torch.randn(2, 4), "b": torch.randn(2, 3)},
]
# Use the tensor case as the primary test
ARGS = {
"items": items_tensors
}
- 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 Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| combine_list_elements |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/teacher_rewards.py code served (permissive licence) · get_code("c0c85c73c543f13d") How it ranRan 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
torch.manual_seed(0)
# Create test data for combine_list_elements
# The function expects a list of lists where each inner list has the same length
# and combine_items will be called on elements at each position
list_of_lists = [
[
torch.randn(2, 4), # Tensor at position 0
3.14, # Float at position 1
[1, 2, 3], # List at position 2
{"key": torch.randn(2, 4)} # Dict at position 3
],
[
torch.randn(2, 4), # Tensor at position 0
2.71, # Float at position 1
[4, 5, 6], # List at position 2
{"key": torch.randn(2, 4)} # Dict at position 3
]
]
ARGS = {
"list_of_lists": list_of_lists
}
- 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
|
| extract_until |
Ran ran on a synthesized input |
SakanaAI/RLT/custom_data/reasoning_datasets_info.py code served (permissive licence) · get_code("ad03b9361505c6ba") How it ranRan 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 = {
"s1": "hello world",
"s2": "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
|
| find_valid_subsequence |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/teacher_base.py code served (permissive licence) · get_code("213cd812e71a60a6") How it ranRan 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, ndim 1, dtype family int; 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
from itertools import islice
# Example valid arguments for find_valid_subsequence
# The function takes a subsequence (sub) and a sequence (seq)
# and tries to find a valid subsequence that exists in seq
# Define sub: a list representing a subsequence
sub = [1, 2, 3]
# Define seq: a list representing the sequence to search in
seq = [0, 1, 2, 3, 4, 5]
ARGS = {
"sub": sub,
"seq": seq
}
- 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, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| fix_pad_token |
Ran ran on a synthesized input |
SakanaAI/RLT/hydra_utils.py code served (permissive licence) · get_code("d2cba249caa4b1ca") How it ranRan 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 MockTokenizer. 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
class MockTokenizer:
def __init__(self, pad_token=None, pad_token_id=None, eos_token_id=None):
self.pad_token = pad_token
self.pad_token_id = pad_token_id
self.eos_token_id = eos_token_id
# Test case 1: Llama model with no pad token set
tokenizer_llama = MockTokenizer(pad_token=None, pad_token_id=None, eos_token_id=2)
model_name_llama = "Llama-2-7b"
# Test case 2: Qwen model with no pad token set
tokenizer_qwen = MockTokenizer(pad_token=None, pad_token_id=None, eos_token_id=2)
model_name_qwen = "Qwen-7b"
# Test case 3: Model with pad token already set and different from eos token
tokenizer_safe = MockTokenizer(pad_token="<pad>", pad_token_id=0, eos_token_id=2)
model_name_safe = "SomeModel"
# Use the first test case as the primary argument set
ARGS = {
"tokenizer": tokenizer_llama,
"model_name": model_name_llama,
"unsafe": False
}
- 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 MockTokenizer — a MockTokenizer output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockTokenizer 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_fsdp_wrap_policy |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/utils_fsdp.py code served (permissive licence) · get_code("411e1acfc478d4c8") How it ranRan 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 partial. 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
import functools
torch.manual_seed(0)
class SimpleTransformerBlock(nn.Module):
def __init__(self):
super().__init__()
self.linear1 = nn.Linear(4, 3)
self.linear2 = nn.Linear(3, 4)
def forward(self, x):
x = self.linear1(x)
x = self.linear2(x)
return x
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.embedding = nn.Embedding(10, 4)
self.block1 = SimpleTransformerBlock()
self.block2 = SimpleTransformerBlock()
self.linear = nn.Linear(4, 2)
self._no_split_modules = ["SimpleTransformerBlock"]
def forward(self, x):
x = self.embedding(x)
x = self.block1(x)
x = self.block2(x)
x = self.linear(x)
return x
module = SimpleModel()
config = {
'disable': False,
'transformer_layer_cls_to_wrap': ['SimpleTransformerBlock'],
'min_num_params': 0
}
ARGS = {
'module': module,
'config': config,
'is_lora': False
}
- 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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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_special_token_values |
Ran ran on a synthesized input |
SakanaAI/RLT/custom_data/utils.py code served (permissive licence) · get_code("8ef0bcf6290a2cb8") How it ranRan 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
from transformers import AutoTokenizer, PreTrainedTokenizerBase
from unittest.mock import MagicMock, patch
torch.manual_seed(0)
# Create a minimal stand-in tokenizer
class MockTokenizer:
def __init__(self):
self.vocab_size = 50257
self.model_max_length = 2048
def encode(self, text):
return [1, 2, 3]
def decode(self, ids):
return "text"
# Create a minimal mock for AutoConfig.from_pretrained
class MockConfig:
def __init__(self, model_type='llama'):
self.model_type = model_type
def mock_from_pretrained(model_name):
if 'llama' in model_name.lower():
return MockConfig(model_type='llama')
elif 'qwen' in model_name.lower():
return MockConfig(model_type='qwen2')
else:
return MockConfig(model_type='llama')
tokenizer_instance = MockTokenizer()
model_name_instance = 'meta-llama/Llama-2-7b'
ARGS = {
'tokenizer': tokenizer_instance,
'model_name': model_name_instance
}
# Patch AutoConfig.from_pretrained to use our mock
import transformers
original_from_pretrained = transformers.AutoConfig.from_pretrained
transformers.AutoConfig.from_pretrained = mock_from_pretrained
- 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 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
|
| get_tags |
Ran ran on a synthesized input |
SakanaAI/RLT/custom_data/reasoning_datasets_info.py code served (permissive licence) · get_code("1125a84e5ed38e6c") How it ranRan 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
torch.manual_seed(0)
ARGS = {
'tag': 'response',
'format': 'bespoke'
}
- 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 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
|
| get_top_dataset |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/data_reward_scorer.py code served (permissive licence) · get_code("d4b4f689be74f50e") How it ranRan 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 Subset. 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 torch.utils.data import Subset
torch.manual_seed(0)
class SimpleDataset:
def __init__(self, data):
self.data = data
def __len__(self):
return len(self.data)
def __getitem__(self, idx):
return self.data[idx]
# Create a simple dataset where each item is a dict with a score column
dataset_items = [
{'score': torch.tensor(0.8), 'value': 1},
{'score': torch.tensor(0.5), 'value': 2},
{'score': torch.tensor(0.9), 'value': 3},
{'score': torch.tensor(0.3), 'value': 4},
{'score': torch.tensor(0.7), 'value': 5},
]
dataset = SimpleDataset(dataset_items)
ARGS = {
'dataset': dataset,
'score_column': 'score',
'number_to_keep': 3
}
- 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 Subset — a Subset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Subset output the recorded ndim 1 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_top_hf_dataset |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/data_reward_scorer.py code served (permissive licence) · get_code("af28ce60656bad14") How it ranRan 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 MockDataset. 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
import torch
from datasets import Dataset
torch.manual_seed(0)
# Create a mock dataset that mimics HuggingFace Dataset behavior
class MockDataset:
def __init__(self, data):
self.data = data
def __getitem__(self, key):
if isinstance(key, str):
# Return the column
return [self.data[i][key] for i in range(len(self.data))]
elif isinstance(key, list):
# Return a subset of rows
return MockDataset([self.data[i] for i in key])
else:
return self.data[key]
def __len__(self):
return len(self.data)
def select(self, indices):
return MockDataset([self.data[i] for i in indices])
# Create sample data with a score column
# The function expects scores[i] to potentially have an .item() method
# or be a scalar value
data_rows = [
{"score": torch.tensor([0.5, 0.3, 0.2, 0.1]), "text": "sample1"},
{"score": torch.tensor([0.9, 0.1, 0.0, 0.0]), "text": "sample2"},
{"score": torch.tensor([0.4, 0.2, 0.3, 0.1]), "text": "sample3"},
{"score": torch.tensor([0.7, 0.2, 0.05, 0.05]), "text": "sample4"},
]
dataset = MockDataset(data_rows)
ARGS = {
"dataset": dataset,
"score_column": "score",
"number_to_keep": 2,
"reverse": False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type MockDataset — a MockDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockDataset output the recorded ndim 1 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
|
| grab_text_between |
Ran ran on a synthesized input |
SakanaAI/RLT/custom_data/reasoning_datasets_info.py code served (permissive licence) · get_code("42c4a4c44667e48a") How it ranRan 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 re
def grab_text_between(s, start, end):
pattern = re.escape(start) + '(.*?)' + re.escape(end)
matches = re.findall(pattern, s, re.DOTALL)
if matches is None:
print(f'Unable to find content in {start} {end}')
raise ValueError
return matches[0]
# Setup code to construct valid arguments
s = "Hello [START] this is the content [END] world"
start = "[START]"
end = "[END]"
ARGS = {
"s": s,
"start": start,
"end": end
}
- 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
|
| instantiate_from_target |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/data_reward_scorer.py code served (permissive licence) · get_code("1d1f8918c9a7700d") How it ranRan 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
import torch.nn as nn
from omegaconf import DictConfig, OmegaConf
import hydra
class SimpleModule(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def forward(self, x):
return self.linear(x)
# Setup for cfg parameter
cfg_dict = {
'_target_': 'builtins.dict',
'param1': 'value1',
'param2': 42
}
# Convert to DictConfig
cfg = OmegaConf.create(cfg_dict)
# Setup for kwargs
kwargs = {}
ARGS = {
'cfg': cfg,
'kwargs': kwargs
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- hydra, omegaconf, 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
|
| is_subsequence |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/teacher_base.py code served (permissive licence) · get_code("726af6b132a154e6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
from itertools import islice
# Set seed for reproducibility
torch.manual_seed(0)
# Construct arguments for is_subsequence
# The function checks if 'sub' is a subsequence of 'seq'
# Both should be comparable with == and support len()
# Create a simple list as the subsequence
sub = [1, 2, 3]
# Create a longer list as the sequence
seq = [0, 1, 2, 3, 4, 5, 6]
ARGS = {
"sub": sub,
"seq": seq
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| is_tensor |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/teacher_base.py code served (permissive licence) · get_code("090ebd62480b897f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
ARGS = {
"t": torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])
}
- 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
|
| override_system_prompt |
Ran ran on a synthesized input |
SakanaAI/RLT/custom_data/utils.py code served (permissive licence) · get_code("41b364280acc70df") How it ranRan 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 MockTokenizer. 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 PreTrainedTokenizerBase
class MockTokenizer(PreTrainedTokenizerBase):
def __init__(self, has_default_system_prompt=False, has_chat_template=False):
self.model_max_length = 512
self.padding_side = "right"
if has_default_system_prompt:
self.default_system_prompt = "You are a helpful assistant."
if has_chat_template:
self.chat_template = "{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] }} {system_prompt}{% endif %}"
def __call__(self, *args, **kwargs):
return {"input_ids": [], "attention_mask": []}
mock_tokenizer = MockTokenizer(has_default_system_prompt=True, has_chat_template=False)
ARGS = {
"tokenizer_or_tokenizer_name": mock_tokenizer,
"new_system_prompt": "You are an expert AI assistant."
}
- 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 MockTokenizer — a MockTokenizer output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockTokenizer 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
|
| selective_log_softmax |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/grpo.py code served (permissive licence) · get_code("39cc9bf845bc3e8d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn.functional as F
torch.manual_seed(0)
# The function expects:
# - logits: a tensor of shape (batch_size, seq_len, vocab_size) or compatible
# - index: a tensor of indices to gather from logits
batch_size = 2
seq_len = 3
vocab_size = 4
# Create logits tensor with shape (batch_size, seq_len, vocab_size)
logits = torch.randn(batch_size, seq_len, vocab_size, dtype=torch.float32)
# Create index tensor with shape (batch_size, seq_len) containing valid indices
index = torch.randint(0, vocab_size, (batch_size, seq_len))
ARGS = {
"logits": logits,
"index": index,
}
- 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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
|
| to_torch_tensor |
Ran ran on a synthesized input |
SakanaAI/RLT/trainers/teacher_rewards.py code served (permissive licence) · get_code("9c58d17145ebc986") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import torch
torch.manual_seed(0)
# Test case 1: torch.Tensor input
tensor_input = torch.randn(2, 4)
# Test case 2: numpy.ndarray input
numpy_input = np.random.randn(3, 5).astype(np.float32)
# Test case 3: list input
list_input = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]
# Test case 4: tuple input
tuple_input = ([1, 2, 3, 4], [5, 6, 7, 8])
# Device and dtype options
device = 'cpu'
dtype = torch.float32
# Create ARGS dict with different test cases
# We'll use the tensor input as the primary test
ARGS = {
'data': tensor_input,
'device': device,
'dtype': dtype
}
- 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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_init_weight_context_manager |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/trainers/utils_fsdp.py code served (permissive licence) · get_code("00ce1c00f50d9695") How it ran |
| get_process_line_fn |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/custom_data/sft_data.py code served (permissive licence) · get_code("901e9003ba5b945f") How it ran |
| get_process_line_fn |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/custom_data/teacher_data.py code served (permissive licence) · get_code("482691d35524f06f") How it ran |
| get_teacher_data_mask_delimiter |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/custom_data/teacher_data.py code served (permissive licence) · get_code("5fe3db6bb630006c") How it ran |
| init_fn |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/trainers/utils_fsdp.py code served (permissive licence) · get_code("376e45ad277a20e3") How it ran |
| load_formatted_sft_dataset |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/custom_data/sft_data.py code served (permissive licence) · get_code("2129b78fe0290670") How it ran |
| process_assistant_message |
Not yet run unverified (harvested, no recorded run) |
SakanaAI/RLT/custom_data/teacher_data.py code served (permissive licence) · get_code("2a27f4d8ec953177") How it ran |