| clean_decoded_sequence |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/generate.py code served (permissive licence) · get_code("b496ed302b06c77f") 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 clean_decoded_sequence(text: str) -> str:
text = re.sub('<pad>|<cls>|<eos>', '', text)
text = re.sub('<mask>', '_', text)
return re.sub('\\s+', '', text)
ARGS = {
'text': 'hello <pad> world <cls> <mask> <eos> test'
}
- 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
|
| cosine_schedule |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/cpt/training/masking.py code served (permissive licence) · get_code("02878829f365fc01") 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 1, dtype family float, shape (8,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
import torch
torch.manual_seed(0)
# The function takes a single parameter `t` which should be a torch.Tensor
# The function computes cos(t * pi * 0.5), so t can be any tensor
# Let's create a small tensor with values in a reasonable range for testing
t = torch.linspace(0, 1, 8) # Small tensor with 8 elements in range [0, 1]
ARGS = {
"t": t
}
- 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 1, dtype family float, shape (8,) — shape (8,) 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
|
| dataclass_isinstance |
Ran ran, violated the contract we drafted |
XL-S224/AAMFM/src/cpt/training/config.py code served (permissive licence) · get_code("01f73d603c5ec2e0") 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.
from dataclasses import dataclass
@dataclass
class SampleDataclass:
field1: int
field2: str
class NonDataclass:
def __init__(self):
self.field1 = 42
ARGS = {
"value": SampleDataclass(field1=10, field2="test")
}
- 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 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
|
| get_warmup_stable_cosine_scheduler |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/cpt/training/trainer.py code served (permissive licence) · get_code("26609068c7339452") 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 LambdaLR. 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 torch.optim import SGD
torch.manual_seed(0)
# Create a minimal model
model = nn.Linear(4, 3)
# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)
# Define arguments for the function
ARGS = {
"optimizer": optimizer,
"num_warmup_steps": 100,
"num_stable_steps": 200,
"num_decay_steps": 300,
"min_lr_ratio": 0.1,
"num_cycles": 0.5
}
- 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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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
|
| kabsch_align |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
XL-S224/AAMFM/src/eval/evaluate.py code served (permissive licence) · get_code("44ba59368543d40e") 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. 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 two sets of 3D coordinates (N, 3) with N > 0
# Using distinct batch sizes to make shapes unambiguous
reference = torch.randn(4, 3, dtype=torch.float32)
mobile = torch.randn(4, 3, dtype=torch.float32)
ARGS = {
'reference': reference,
'mobile': mobile,
}
- 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
|
| kabsch_rmsd |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
XL-S224/AAMFM/src/eval/evaluate.py code served (permissive licence) · get_code("7acdb57d27ade01f") 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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create small tensors with shape (N, 3) where N > 0
# reference and mobile must have the same shape
reference = torch.tensor([
[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[7.0, 8.0, 9.0],
[10.0, 11.0, 12.0]
], dtype=torch.float32)
mobile = torch.tensor([
[1.1, 2.1, 3.1],
[4.1, 5.1, 6.1],
[7.1, 8.1, 9.1],
[10.1, 11.1, 12.1]
], dtype=torch.float32)
ARGS = {
"reference": reference,
"mobile": mobile,
}
- 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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_antigen_features |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/dpo/data_pipeline/preference_dataset.py code served (permissive licence) · get_code("9135fcf2d6c65c1d") 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 tempfile
import os
torch.manual_seed(0)
# Create a temporary file with sample antigen features
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "antigen_features.pt")
# Create sample data matching the expected structure
sample_records = {
"record_1": {
"target_id": "SABDAB001",
"node_feature": torch.randn(2, 4)
},
"record_2": {
"target_id": "SABDAB002",
"node_feature": torch.randn(2, 4)
}
}
torch.save(sample_records, temp_file)
ARGS = {
"path": temp_file,
"id_key": "target_id"
}
- 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
|
| load_full_finetune_config |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/cpt/training/config.py code served (permissive licence) · get_code("e7e16a1855273aef") 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 FullFinetuneConfig. 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 tempfile
from pathlib import Path
from dataclasses import dataclass, field
from typing import Any, Dict, Optional
# Create a minimal valid YAML config file in a temp directory
temp_dir = tempfile.mkdtemp()
config_path = Path(temp_dir) / "test_config.yaml"
# Write a minimal valid YAML config
config_content = """
data:
npz_paths: null
npz_paths_eval: null
npz_key: 'data'
batch_size: 64
num_workers: 4
train_ratio: 0.95
model:
model_name: null
model_path: null
common:
seed: null
training:
epochs: 1
accumulation_steps: 1
lr_max: 5e-05
lr_min: 1e-06
decay_steps: 0
decay_ratio: 0.5
weight_decay: 0.01
scheduler_epochs: 1
warmup_steps: 0
warmup_radio: null
betas: null
mixed_precision: 'bf16'
eval:
eval_every_steps: 0
every_save_steps: 0
output_dir: 'outputs/cpt'
wandb:
wandb_enabled: false
wandb_project: 'cpt'
wandb_name: null
wandb_entity: null
wandb_dir: null
"""
with open(config_path, 'w') as f:
f.write(config_content)
# Define the ARGS dictionary with the path parameter
ARGS = {
'path': str(config_path)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type FullFinetuneConfig — a FullFinetuneConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FullFinetuneConfig 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
|
| load_npz_data |
Ran ran, honoured the contract we drafted |
XL-S224/AAMFM/src/cpt/data_pipeline/npz_dataset.py code served (permissive licence) · get_code("532418445e621656") 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 ndarray, ndim 2, dtype family int, shape (3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import tempfile
import os
# Create temporary npz files for testing
temp_dir = tempfile.mkdtemp()
# Create first npz file with 'data' key
data1 = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])
npz_path1 = os.path.join(temp_dir, 'test1.npz')
np.savez(npz_path1, data=data1)
# Create second npz file with 'data' key
data2 = np.array([[9, 10, 11, 12]])
npz_path2 = os.path.join(temp_dir, 'test2.npz')
np.savez(npz_path2, data=data2)
ARGS = {
'npz_paths': [npz_path1, npz_path2],
'key': 'data'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family int, shape (3, 4) — shape (3, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_rabd_entries |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/runtime_data.py code served (permissive licence) · get_code("613945253617da09") 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 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 json
import tempfile
from pathlib import Path
# Create a temporary JSONL file with valid RAbD entries
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False, encoding='utf-8')
# Write sample JSONL data
sample_entries = [
{'pdb': '1A2B', 'heavy_chain': 'H', 'light_chain': 'L', 'antigen_chains': ['A', 'B']},
{'pdb': '2C3D', 'heavy_chain': 'H', 'light_chain': 'L', 'antigen_chains': ['A']},
{'pdb': '3E4F', 'heavy_chain': 'H', 'light_chain': '', 'antigen_chains': []},
]
for entry in sample_entries:
temp_file.write(json.dumps(entry) + '\n')
temp_file.close()
ARGS = {
'path': Path(temp_file.name),
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| mask_stru_tokens |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/cpt/training/masking.py code served (permissive licence) · get_code("a53115b3ddb87207") 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 1, dtype family int, shape (6,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import math
torch.manual_seed(0)
# Create a small token tensor
# tokens should be a 1D or 2D tensor of integers
tokens = torch.tensor([1, 2, 3, 4, 5, 6], dtype=torch.long)
# mask_idx is an integer used to replace masked tokens
mask_idx = 0
# special_tokens is a list/sequence of token IDs that should not be masked
special_tokens = [0, 1]
# return_mask is a boolean flag
return_mask = False
ARGS = {
"tokens": tokens,
"mask_idx": mask_idx,
"special_tokens": special_tokens,
"return_mask": return_mask,
}
- 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 1, dtype family int, shape (6,) — shape (6,) 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
|
| mask_tokens |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/cpt/training/masking.py code served (permissive licence) · get_code("ac2f32e7c4b80284") 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 3, 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 random
import torch
from torch.distributions.beta import Beta
torch.manual_seed(0)
random.seed(0)
# Create a small batch of tokens
# tokens shape: (batch_size, seq_len) = (2, 4)
tokens = torch.tensor([
[5, 6, 0, 0], # 0 is pad_idx, so some positions are padding
[7, 1, 8, 0] # 1 is pipe_idx in this example
], dtype=torch.long)
mask_idx = 2 # index to use for masking
pad_idx = 0 # index representing padding (should not be masked)
pipe_idx = 1 # index representing pipe (should not be masked)
ARGS = {
"tokens": tokens,
"mask_idx": mask_idx,
"pad_idx": pad_idx,
"pipe_idx": pipe_idx,
"return_mask": 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 tuple, ndim 3, dtype family int — 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
|
| normalize_sample_id |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/runtime_data.py code served (permissive licence) · get_code("b45852db6e2f2c3f") 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 = {
'value': ' SampleID_001 '
}
- 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
|
| parse_args |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/dpo/training/trainer.py code served (permissive licence) · get_code("8b8ec8a7964385f7") 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 Namespace. 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
from pathlib import Path
from typing import Optional, Sequence
# Create a temporary config file path (we won't actually create the file)
# The function just takes it as a string argument, doesn't necessarily read it
config_path = "/tmp/config/DPO.yaml"
# The function parse_args takes an optional argv parameter
# When argv is None, it uses sys.argv[1:]; when provided, it uses argv
# We'll provide a minimal argv list
argv_value = [
"--config", config_path,
"--resume-from", None
]
# Since we're constructing arguments for the function, we need to pass
# the argv parameter that parse_args accepts
ARGS = {
"argv": [
"--config", config_path
]
}
- 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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
|
| pdb_id_from_sample_id |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/runtime_data.py code served (permissive licence) · get_code("3e6d78805e9d7d5e") 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.
# Set up the function arguments
# The function pdb_id_from_sample_id takes a single parameter: value (str)
# It normalizes the string and extracts the PDB portion before the first underscore
# Create test cases for the value parameter
test_value = "1abc_A" # A sample ID with chain suffix
test_value_normalized = "1xyz" # A bare PDB ID
# Define the ARGS dictionary with a valid string argument
ARGS = {
"value": "1abc_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 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
|
| resolve_and_validate_paths |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/generate.py code served (permissive licence) · get_code("1b02cedb4c6f6823") 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 argparse
from pathlib import Path
import tempfile
import os
# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
project_root = Path(temp_dir)
# Create necessary directories
pdb_dir = project_root / 'pdb'
pdb_dir.mkdir(exist_ok=True)
output_dir = project_root / 'output'
output_dir.mkdir(exist_ok=True)
esm3_weights_dir = project_root / 'model/base_model/esm3/data/weights'
esm3_weights_dir.mkdir(parents=True, exist_ok=True)
# Create dummy files for checkpoint, rabd_json, antigen_features
checkpoint_file = project_root / 'checkpoint.pth'
checkpoint_file.write_text('dummy checkpoint')
rabd_json_file = project_root / 'rabd.json'
rabd_json_file.write_text('{}')
antigen_features_file = project_root / 'antigen_features.npy'
antigen_features_file.write_text('dummy features')
# Create dummy ESM3 weight files
for weight_filename in ('esm3_sm_open_v1.pth', 'esm3_structure_encoder_v0.pth', 'esm3_structure_decoder_v0.pth', 'esm3_function_decoder_v0.pth'):
weight_file = esm3_weights_dir / weight_filename
weight_file.write_text('dummy weight')
# Create argparse.Namespace with all required arguments
args = argparse.Namespace(
checkpoint=str(checkpoint_file),
rabd_json=str(rabd_json_file),
pdb_dir=str(pdb_dir),
antigen_features=str(antigen_features_file),
output_dir=str(output_dir),
mini_batch_size=4,
num_targets=8,
samples_per_target=2,
sequence_steps=10,
structure_steps=5,
cdr_index=3
)
ARGS = {
'args': args,
'project_root': project_root
}
- 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
|
| resolve_path |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/generate.py code served (permissive licence) · get_code("70cc09c9af8c8edb") 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 PosixPath. 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.
from pathlib import Path
import tempfile
import os
# Create a temporary directory to serve as project root
with tempfile.TemporaryDirectory() as tmpdir:
project_root = Path(tmpdir)
# Test case 1: relative path
path_str = "src/module.py"
ARGS = {
"path_str": path_str,
"project_root": project_root,
}
- 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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| split_antibody |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/compute_pll.py code served (permissive licence) · get_code("c12eb27776c8e955") 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)
# The function split_antibody takes a single parameter: antibody_sequence
# It expects a string in the format "heavy|light" where both parts are non-empty
# The function splits on the '|' delimiter and validates both parts exist
ARGS = {
'antibody_sequence': 'MKVL|DIQM'
}
- 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
|
| sum_chain_pll |
Ran ran, honoured the contract we drafted |
XL-S224/AAMFM/src/eval/compute_pll.py code served (permissive licence) · get_code("38cdd3eda0887465") 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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
ARGS = {
"heavy_pll": 1.5,
"light_pll": 2.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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| target_id_from_design_id |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/compute_pll.py code served (permissive licence) · get_code("29b7959f0dced6c3") 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
import numpy as np
# The function target_id_from_design_id takes a design_id string parameter
# and removes the final sample-index suffix (the part after the last underscore).
# It expects the design_id to be in format "target_id_sample_index" where
# sample_index is a digit.
# Valid design_id examples:
# - "my_design_1" -> returns "my_design"
# - "protein_fold_42" -> returns "protein_fold"
ARGS = {
"design_id": "my_target_design_5"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| to_structure_encoder_inputs |
Ran ran; our contract draft was wrong, not the code |
XL-S224/AAMFM/src/eval/evaluate.py code served (permissive licence) · get_code("6df6fceb027c772e") 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. 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 ProteinChain:
def __init__(self):
# atom37_positions: shape (num_atoms, 3) - 3D coordinates
self.atom37_positions = torch.randn(5, 3, dtype=torch.float32).numpy()
# confidence: shape (num_atoms,) - confidence scores
self.confidence = torch.randn(5, dtype=torch.float32).numpy()
# residue_index: shape (num_atoms,) - residue indices
self.residue_index = torch.randint(0, 4, (5,), dtype=torch.long).numpy()
chain = ProteinChain()
ARGS = {
"chain": chain,
"should_normalize_coordinates": 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 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
|
| build_policy_and_ref_models |
Not yet run unverified (harvested, no recorded run) |
XL-S224/AAMFM/src/dpo/training/trainer.py code served (permissive licence) · get_code("4aa1f8ac0ec9865f") How it ran |