| GPUMemoryTracker |
Ran ran on a synthesized input |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("e4d838778e6b952a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. 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
device = torch.device('cpu')
INIT_ARGS = {
'device': device,
'query_nvidia_smi': False # Disable nvidia-smi queries since we're on CPU
}
METHOD = 'checkpoint'
ARGS = {
'name': 'test_checkpoint'
}
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| _get_dataset_checkpoint_dir |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("1f7d64247a9dc7a1") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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
ARGS = {
'dataset': 'clear100',
'base_dir': '/tmp/model_data'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- 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
|
| _is_torchvision_backbone |
Ran ran, violated the contract we drafted |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("48209bcda65e0b8c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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)
# The function _is_torchvision_backbone takes a single parameter: model_name (str)
# It calls standardize_model_name(model_name) and checks if the result is in {'vgg16-bn', 'resnet-50'}
# We need to provide a model_name string that will test the function
ARGS = {
'model_name': 'resnet-50'
}
- 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 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
|
| calculate_metrics |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("e950bb9bbf851272") How it ranRan 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 numpy as np
# Create small sample data for binary classification
np.random.seed(0)
# Binary classification example
y_true = np.array([0, 1, 1, 0, 1, 0, 1, 1])
y_pred = np.array([0, 1, 1, 0, 0, 0, 1, 1])
y_probs = np.array([
[0.9, 0.1],
[0.2, 0.8],
[0.3, 0.7],
[0.8, 0.2],
[0.7, 0.3],
[0.85, 0.15],
[0.1, 0.9],
[0.2, 0.8]
])
num_classes = 2
ARGS = {
'y_true': y_true,
'y_pred': y_pred,
'y_probs': y_probs,
'num_classes': num_classes
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| count_grasp_total_flops |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("3400485692b5c4e6") 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
torch.manual_seed(0)
# Build a minimal model that the function will work with
class TinyModel(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(3, 8, kernel_size=3)
self.bn1 = nn.BatchNorm2d(8)
self.linear = nn.Linear(8 * 222 * 222, 10)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = x.view(x.size(0), -1)
x = self.linear(x)
return x
model = TinyModel()
model.eval()
device = torch.device('cpu')
ARGS = {
'model': model,
'input_size': (2, 3, 224, 224),
'n_sources': 3,
'n_train_samples': 100,
'initial_epochs': 2,
'finetune_epochs': 1,
'alignment_batches': 1,
'batch_size': 32,
'device': device
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| count_model_flops |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("27c478c98034fd4f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, 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 torch.nn as nn
torch.manual_seed(0)
# Build a small model with Conv2d, Linear, BatchNorm2d, and LayerNorm layers
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(3, 8, kernel_size=3, padding=1)
self.bn1 = nn.BatchNorm2d(8)
self.pool = nn.AdaptiveAvgPool2d((4, 4))
self.fc1 = nn.Linear(8 * 4 * 4, 16)
self.ln1 = nn.LayerNorm(16)
self.fc2 = nn.Linear(16, 2)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = self.pool(x)
x = x.view(x.size(0), -1)
x = self.fc1(x)
x = self.ln1(x)
x = self.fc2(x)
return x
model = SimpleModel()
model.eval()
ARGS = {
"model": model,
"input_size": (2, 3, 8, 8),
"device": torch.device("cpu")
}
- 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 int, ndim 0, dtype family int, 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
|
| fine_tune_model |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("cef3428d24e48afb") 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 torch.utils.data import DataLoader
torch.manual_seed(0)
# Create a simple model
class SimpleModel(nn.Module):
def __init__(self, input_size=4, num_classes=3):
super().__init__()
self.fc1 = nn.Linear(input_size, 8)
self.fc2 = nn.Linear(8, num_classes)
def forward(self, x):
x = torch.relu(self.fc1(x))
return self.fc2(x)
# Create a simple dataset (list of tuples)
def create_dummy_loader(num_samples=4, input_size=4, num_classes=3):
data = []
for i in range(num_samples):
x = torch.randn(2, input_size) # batch of 2
y = torch.randint(0, num_classes, (2,))
data.append((x, y))
return data
model = SimpleModel(input_size=4, num_classes=3)
train_loader = create_dummy_loader(num_samples=2, input_size=4, num_classes=3)
val_loader = create_dummy_loader(num_samples=2, input_size=4, num_classes=3)
device = torch.device('cpu')
ARGS = {
'model': model,
'train_loader': train_loader,
'val_loader': val_loader,
'device': device,
'epochs': 2,
'learning_rate': 5e-05
}
- 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
|
| get_data_module |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("7a2d991f4daebce0") 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 sys
from pathlib import Path
from unittest.mock import MagicMock, patch
import torch
torch.manual_seed(0)
# Create mock data modules to avoid import errors
class MockYearbookDataModule:
def __init__(self, data_root, subset_name, model_name, batch_size, num_workers, augmentation):
self.data_root = data_root
self.subset_name = subset_name
self.batch_size = batch_size
def prepare_data(self):
pass
def setup(self):
pass
def train_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 2, (2,))) for _ in range(2)]
def val_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 2, (2,))) for _ in range(2)]
def test_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 2, (2,))) for _ in range(2)]
def get_dataset_stats(self):
return {'class_names': ['class_0', 'class_1']}
class MockCLEAR10DataModule:
def __init__(self, data_root, year_name, model_name, batch_size, num_workers, augmentation):
self.data_root = data_root
self.year_name = year_name
self.batch_size = batch_size
def prepare_data(self):
pass
def setup(self):
pass
def train_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 10, (2,))) for _ in range(2)]
def val_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 10, (2,))) for _ in range(2)]
def test_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 10, (2,))) for _ in range(2)]
def get_dataset_stats(self):
return {'class_names': [f'class_{i}' for i in range(10)]}
class MockCLEAR100DataModule:
def __init__(self, data_root, year_name, model_name, batch_size, num_workers, augmentation):
self.data_root = data_root
self.year_name = year_name
self.batch_size = batch_size
def prepare_data(self):
pass
def setup(self):
pass
def train_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 30, (2,))) for _ in range(2)]
def val_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 30, (2,))) for _ in range(2)]
def test_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 30, (2,))) for _ in range(2)]
def get_dataset_stats(self):
return {'class_names': [f'class_{i}' for i in range(30)]}
# Patch the imports
sys.modules['yearbook'] = MagicMock()
sys.modules['yearbook.data_module_yearbook'] = MagicMock(YearbookDataModule=MockYearbookDataModule)
sys.modules['clear10'] = MagicMock()
sys.modules['clear10.data_module_clear10'] = MagicMock(CLEAR10DataModule=MockCLEAR10DataModule)
sys.modules['clear100_30classes'] = MagicMock()
sys.modules['clear100_30classes.data_module_clear100'] = MagicMock(CLEAR100DataModule=MockCLEAR100DataModule)
ARGS = {
'dataset': 'yearbook',
'target': 'subset_1',
'data_root': '../../datasets',
'batch_size': 32,
'num_workers': 0,
'model_name': 'apple/mobilevit-xx-small'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- clear10, clear100_30classes, torch, yearbook — 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_dataloaders |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("a425378802b4b531") 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
import sys
from pathlib import Path
from unittest.mock import Mock, MagicMock, patch
torch.manual_seed(0)
# Create minimal mock data modules
class MockYearbookDataModule:
def __init__(self, data_root, subset_name, model_name, batch_size, num_workers, augmentation):
self.data_root = data_root
self.subset_name = subset_name
self.batch_size = batch_size
def prepare_data(self):
pass
def setup(self):
pass
def train_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 2, (2,))) for _ in range(2)]
def val_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 2, (2,))) for _ in range(1)]
def test_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 2, (2,))) for _ in range(1)]
def get_dataset_stats(self):
return {'class_names': ['class0', 'class1']}
class MockCLEAR10DataModule:
def __init__(self, data_root, year_name, model_name, batch_size, num_workers, augmentation):
self.data_root = data_root
self.year_name = year_name
self.batch_size = batch_size
def prepare_data(self):
pass
def setup(self):
pass
def train_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 10, (2,))) for _ in range(2)]
def val_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 10, (2,))) for _ in range(1)]
def test_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 10, (2,))) for _ in range(1)]
def get_dataset_stats(self):
return {'class_names': [f'class{i}' for i in range(10)]}
class MockCLEAR100DataModule:
def __init__(self, data_root, year_name, model_name, batch_size, num_workers, augmentation):
self.data_root = data_root
self.year_name = year_name
self.batch_size = batch_size
def prepare_data(self):
pass
def setup(self):
pass
def train_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 30, (2,))) for _ in range(2)]
def val_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 30, (2,))) for _ in range(1)]
def test_dataloader(self):
return [(torch.randn(2, 3), torch.randint(0, 30, (2,))) for _ in range(1)]
def get_dataset_stats(self):
return {'class_names': [f'class{i}' for i in range(30)]}
# Patch the imports before defining ARGS
sys.modules['yearbook'] = MagicMock()
sys.modules['yearbook.data_module_yearbook'] = MagicMock(YearbookDataModule=MockYearbookDataModule)
sys.modules['clear10'] = MagicMock()
sys.modules['clear10.data_module_clear10'] = MagicMock(CLEAR10DataModule=MockCLEAR10DataModule)
sys.modules['clear100_30classes'] = MagicMock()
sys.modules['clear100_30classes.data_module_clear100'] = MagicMock(CLEAR100DataModule=MockCLEAR100DataModule)
ARGS = {
'dataset': 'yearbook',
'target': 'target_name',
'data_root': '../../datasets',
'batch_size': 32,
'num_workers': 0,
'model_name': 'apple/mobilevit-xx-small'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- clear10, clear100_30classes, torch, yearbook — 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
|
| get_grasp_flops_report |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("c5114231b7acba6b") 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
torch.manual_seed(0)
# Build a minimal model that satisfies the function's needs
class TinyModel(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(3, 8, kernel_size=3, padding=1)
self.bn1 = nn.BatchNorm2d(8)
self.linear = nn.Linear(8 * 16 * 16, 10)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = x.view(x.size(0), -1)
x = self.linear(x)
return x
model = TinyModel()
device = torch.device('cpu')
ARGS = {
'model': model,
'input_size': (2, 3, 16, 16),
'n_sources': 5,
'n_train_samples': 100,
'initial_epochs': 10,
'finetune_epochs': 5,
'alignment_batches': 2,
'batch_size': 32,
'device': device,
}
- 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
|
| get_huggingface_model_name |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("6540ebe0bd674c69") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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 torch.nn as nn
STANDARD_TO_HF_MAP = {'mobilevit-xxs': 'apple/mobilevit-xx-small', 'mobilevit-xs': 'apple/mobilevit-x-small', 'mobilevit-small': 'apple/mobilevit-small', 'efficientnet-b1': 'google/efficientnet-b1', 'resnet-50': 'microsoft/resnet-50'}
def get_huggingface_model_name(model_name: str) -> str:
"""
Convert any model name format to valid HuggingFace identifier.
Full HuggingFace names stay as-is.
Standardized names get converted back to HuggingFace format.
"""
if '/' in model_name:
return model_name
if model_name in STANDARD_TO_HF_MAP:
return STANDARD_TO_HF_MAP[model_name]
return model_name
ARGS = {
'model_name': 'mobilevit-xxs'
}
- 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 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
|
| standardize_model_name |
Ran ran; our contract draft was wrong, not the code |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("921099898da3e0f5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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 torch.nn as nn
# The function takes a single parameter: model_name (str)
# Looking at the function body:
# - It checks if model_name is in MODEL_NAME_MAP
# - It performs string operations (replace) on model_name
# - It returns a string
# Test with a model name that's in the map
ARGS = {
'model_name': 'apple/mobilevit-xx-small'
}
- 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 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
|
| transfer_aligned_parameters |
Ran ran, honoured the contract we drafted |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("05021f01edad19af") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, 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 torch.nn as nn
torch.manual_seed(0)
# Create a simple source model
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.layer1 = nn.Linear(4, 3)
self.layer2 = nn.Linear(3, 2)
def forward(self, x):
return self.layer2(self.layer1(x))
# Create a simple target model with same structure
class SimpleModel(nn.Module):
def __init__(self):
super().__init__()
self.layer1 = nn.Linear(4, 3)
self.layer2 = nn.Linear(3, 2)
def forward(self, x):
return self.layer2(self.layer1(x))
source_model = SimpleModel()
target_model = SimpleModel()
# Create alignment scores dict with parameter names and scores
alignment_scores = {
"layer1.weight": 0.8,
"layer1.bias": 0.7,
"layer2.weight": 0.5,
"layer2.bias": 0.3,
}
threshold = 0.4
ARGS = {
"source_model": source_model,
"target_model": target_model,
"alignment_scores": alignment_scores,
"threshold": threshold,
}
- 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 int, ndim 0, dtype family int, 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
|
| _build_torchvision_model |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("6429d29cff3d6ea3") How it ran |
| compute_gradient_alignment |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("868339718913ce91") How it ran |
| create_training_curves |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("e8aa04daf093f829") How it ran |
| evaluate_model |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("5faf0fe65b442218") How it ran |
| load_baseline_model |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("75008bb0c87badf8") How it ran |
| run_grasp_experiment |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("4af2444a3ff4f132") How it ran |
| save_confusion_matrix |
Not yet run unverified (harvested, no recorded run) |
Sekeh-Lab/grasp-multisource-transfer/experiments/grasp/run_grasp_experiment.py code served (permissive licence) · get_code("3835a07273e542ac") How it ran |