| EnsConv2d |
Ran ran on a synthesized input · constructed an object; no result was computed |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("ad34619b242f6a9d") 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 an instance of its own class, EnsConv2d: the run constructed the object and did not call it, so no result was computed. 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
torch.manual_seed(0)
# Define helper functions used by EnsConv2d
def ens_to_batch(in_tensor: torch.Tensor) -> torch.Tensor:
try:
out_tensor = in_tensor.view(-1, *in_tensor.shape[2:])
except RuntimeError:
out_tensor = in_tensor.reshape(-1, *in_tensor.shape[2:]).contiguous()
return out_tensor
def split_batch_ens(in_tensor: torch.Tensor, like_tensor: torch.Tensor) -> torch.Tensor:
try:
out_tensor = in_tensor.view(*like_tensor.shape[:2], *in_tensor.shape[1:])
except RuntimeError:
out_tensor = in_tensor.reshape(*like_tensor.shape[:2], *in_tensor.shape[1:]).contiguous()
return out_tensor
# Define EnsembleWrapper
class EnsembleWrapper(torch.nn.Module):
def __init__(self, base_layer: torch.nn.Module):
super().__init__()
self.base_layer = base_layer
def forward(self, in_tensor: torch.Tensor) -> torch.Tensor:
in_tensor_batched = ens_to_batch(in_tensor)
modified_tensor = self.base_layer(in_tensor_batched)
out_tensor = split_batch_ens(modified_tensor, in_tensor)
return out_tensor
# Define EnsConv2d
class EnsConv2d(torch.nn.Module):
"""
Added viewing for ensemble-based 2d convolutions.
"""
def __init__(self, *args, **kwargs):
super().__init__()
self.conv2d = EnsembleWrapper(torch.nn.Conv2d(*args, **kwargs))
def forward(self, in_tensor: torch.Tensor) -> torch.Tensor:
convolved_tensor = self.conv2d(in_tensor)
return convolved_tensor
# Define arguments for EnsConv2d
# EnsConv2d takes *args and **kwargs that are passed to torch.nn.Conv2d
# Conv2d signature: Conv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, ...)
# We need: in_channels=3, out_channels=4, kernel_size=3
ARGS = {
'in_channels': 3,
'out_channels': 4,
'kernel_size': 3,
'stride': 1,
'padding': 1,
}
- 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 EnsConv2d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EnsConv2d 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
|
| EnsembleWrapper |
Ran ran on a synthesized input · constructed an object; no result was computed |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("3750e194b65c613a") 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 an instance of its own class, EnsembleWrapper: the run constructed the object and did not call it, so no result was computed. 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)
# Create a simple base layer that takes a batched input and processes it
class SimpleBaseLayer(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def forward(self, x: torch.Tensor) -> torch.Tensor:
return self.linear(x)
# Instantiate the base layer
base_layer = SimpleBaseLayer()
ARGS = {
"base_layer": base_layer
}
- 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 EnsembleWrapper — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EnsembleWrapper 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
|
| MLPBlock |
Ran ran on a synthesized input · constructed an object; no result was computed |
uantwerpm4s/pp_eupp/Transformer.py code served (permissive licence) · get_code("bbd2919773fe3e55") 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 an instance of its own class, MLPBlock: the run constructed the object and did not call it, so no result was computed. 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
torch.manual_seed(0)
# The MLPBlock.__init__ takes n_channels and n_mult as parameters
# The forward method expects a tensor with shape (..., n_channels)
# We'll use batch_size=2, n_channels=4 for tiny tensors
n_channels = 4
n_mult = 2
# Create a sample input tensor with shape (batch_size, n_channels)
# This matches what the forward method expects
in_tensor = torch.randn(2, n_channels)
ARGS = {
"n_channels": n_channels,
"n_mult": n_mult,
}
- 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 MLPBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLPBlock 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
|
| SelfAttentionModule |
Ran ran on a synthesized input |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("26d1810bc409110b") 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 Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
# Helper callables for weight_estimator and reweighter
def weight_estimator(key, query):
# key: (batch, seq, dim), query: (batch, seq, dim)
# Compute attention weights
scores = torch.matmul(query, key.transpose(-2, -1)) # (batch, seq, seq)
weights = torch.softmax(scores / (key.size(-1) ** 0.5), dim=-1)
return weights
def reweighter(value, weights):
# value: (batch, seq, dim), weights: (batch, seq, seq)
# Apply attention weights to values
output = torch.matmul(weights, value) # (batch, seq, dim)
return output
# Define dimensions
batch_size = 2
seq_len = 5
input_dim = 6
hidden_dim = 8
# Build projector modules
value_projector = nn.Linear(input_dim, hidden_dim)
key_projector = nn.Linear(input_dim, hidden_dim)
query_projector = nn.Linear(input_dim, hidden_dim)
output_projector = nn.Linear(hidden_dim, input_dim)
# Activation
activation = nn.ReLU()
INIT_ARGS = {
'value_projector': value_projector,
'key_projector': key_projector,
'query_projector': query_projector,
'output_projector': output_projector,
'activation': activation,
'weight_estimator': weight_estimator,
'reweighter': reweighter
}
# Input tensor for forward pass
in_tensor = torch.randn(batch_size, seq_len, input_dim)
ARGS = {
'in_tensor': in_tensor
}
- 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 Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
- 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| SoftmaxWeights |
Ran ran on a synthesized input |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("58af3fed01b7382e") 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 Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# SoftmaxWeights has no __init__ parameters (inherits from WeightEstimator which inherits from torch.nn.Module)
INIT_ARGS = {}
# forward method takes key and query tensors
# Shape convention: (batch, i/j, channels, *spatial_dims)
# Using distinct dimensions: batch=2, i=3, j=5, channels=4, spatial=6x7
batch_size = 2
i_size = 3
j_size = 5
channels = 4
spatial_h = 6
spatial_w = 7
key = torch.randn(batch_size, i_size, channels, spatial_h, spatial_w)
query = torch.randn(batch_size, j_size, channels, spatial_h, spatial_w)
ARGS = {
'key': key,
'query': query
}
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- 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 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
- 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| StackedTransformer |
Ran ran on a synthesized input · constructed an object; no result was computed |
uantwerpm4s/pp_eupp/Transformer.py code served (permissive licence) · get_code("8334b746497b2f6a") 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 an instance of its own class, StackedTransformer: the run constructed the object and did not call it, so no result was computed. 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)
ARGS = {
"num_blocks": 2,
"n_data_shape": (2, 3, 4, 5),
"n_heads": 5,
"mlp_mult": 2,
"projection_channels": 10,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type StackedTransformer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a StackedTransformer 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
|
| TransformerBlock |
Ran ran on a synthesized input · constructed an object; no result was computed |
uantwerpm4s/pp_eupp/Transformer.py code served (permissive licence) · get_code("b8f30b82390a6db8") 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 an instance of its own class, TransformerBlock: the run constructed the object and did not call it, so no result was computed. 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)
# Define the arguments for TransformerBlock
ARGS = {
"n_data_shape": (2, 3, 4, 5, 8), # (batch, ensemble, time, height, width, channels)
"n_heads": 2,
"mlp_mult": 4
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type TransformerBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TransformerBlock 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
|
| WeightedScore |
Ran ran on a synthesized input · constructed an object; no result was computed |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("e4801729382540d8") 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 an instance of its own class, WeightedScore: the run constructed the object and did not call it, so no result was computed. 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 numpy as np
torch.manual_seed(0)
# Create a simple base_score function that takes predictions and targets
# and returns a non-reduced score tensor
class SimpleScoreModule(nn.Module):
def __init__(self):
super().__init__()
def forward(self, pred, target):
# Return element-wise score (non-reduced)
# Shape: (batch, lat, lon) -> (batch, lat, lon)
return (pred - target) ** 2
base_score_fn = SimpleScoreModule()
# Use default lats (None) to test the default behavior
lats = None
ARGS = {
"base_score": base_score_fn,
"lats": lats,
}
- 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 WeightedScore — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a WeightedScore 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
|
| branch_layer |
Ran ran; our contract draft was wrong, not the code |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("f52b211eaf1367c3") 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 Sequential. 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 import nn as nn
torch.manual_seed(0)
# Define the helper functions and classes from the function signature
class EnsembleWrapper(torch.nn.Module):
def __init__(self, base_layer: torch.nn.Module):
super().__init__()
self.base_layer = base_layer
def forward(self, in_tensor: torch.Tensor) -> torch.Tensor:
in_tensor_batched = ens_to_batch(in_tensor)
modified_tensor = self.base_layer(in_tensor_batched)
out_tensor = split_batch_ens(modified_tensor, in_tensor)
return out_tensor
class EnsConv2d(torch.nn.Module):
def __init__(self, *args, **kwargs):
super().__init__()
self.conv2d = EnsembleWrapper(torch.nn.Conv2d(*args, **kwargs))
def forward(self, in_tensor: torch.Tensor) -> torch.Tensor:
convolved_tensor = self.conv2d(in_tensor)
return convolved_tensor
def ens_to_batch(in_tensor: torch.Tensor) -> torch.Tensor:
try:
out_tensor = in_tensor.view(-1, *in_tensor.shape[2:])
except RuntimeError:
out_tensor = in_tensor.reshape(-1, *in_tensor.shape[2:]).contiguous()
return out_tensor
def split_batch_ens(in_tensor: torch.Tensor, like_tensor: torch.Tensor) -> torch.Tensor:
try:
out_tensor = in_tensor.view(*like_tensor.shape[:2], *in_tensor.shape[1:])
except RuntimeError:
out_tensor = in_tensor.reshape(*like_tensor.shape[:2], *in_tensor.shape[1:]).contiguous()
return out_tensor
def branch_layer(nr_channels, nr_heads):
return nn.Sequential(EnsConv2d(in_channels=nr_channels, out_channels=nr_heads, kernel_size=1, bias=False), nn.ReLU(inplace=True))
# Setup arguments for branch_layer function
ARGS = {
'nr_channels': 4,
'nr_heads': 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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
|
| crps_loss |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("023f04ffe4196204") 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 torch
import numpy as np
torch.manual_seed(0)
# Create small tensors for the function arguments
batch_size = 2
dim = 4
pred_mean = torch.randn(batch_size, dim)
pred_stddev = torch.abs(torch.randn(batch_size, dim)) + 0.1 # Ensure positive
target = torch.randn(batch_size, dim)
eps = 1e-12
ARGS = {
"pred_mean": pred_mean,
"pred_stddev": pred_stddev,
"target": target,
"eps": eps
}
- 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
|
| ens_to_batch |
Ran ran; our contract draft was wrong, not the code |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("6789383a70b5c542") 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 3, dtype family float, shape (6, 4, 5) 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 takes a tensor and reshapes it by flattening the first two dimensions
# while preserving all dimensions from index 2 onward.
# We need a tensor with at least 3 dimensions to test the reshape logic.
# Create a tensor with shape (2, 3, 4, 5)
# - First two dims (2, 3) will be flattened to 6
# - Remaining dims (4, 5) stay as is
in_tensor = torch.randn(2, 3, 4, 5)
ARGS = {
"in_tensor": in_tensor
}
- 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 3, dtype family float, shape (6, 4, 5) — shape (6, 4, 5) 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
|
| scaled_dot_product_attention_custom |
Ran ran, violated the contract we drafted |
uantwerpm4s/pp_eupp/Transformer.py code served (permissive licence) · get_code("6f8ebcbf0a2d1a10") 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 3, dtype family float, shape (2, 3, 5) 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)
# Create small tensors for attention mechanism
batch_size = 2
seq_len_q = 3
seq_len_k = 4
head_dim = 5
# Query: (batch, seq_len_q, head_dim)
query = torch.randn(batch_size, seq_len_q, head_dim)
# Key: (batch, seq_len_k, head_dim)
key = torch.randn(batch_size, seq_len_k, head_dim)
# Value: (batch, seq_len_k, head_dim)
value = torch.randn(batch_size, seq_len_k, head_dim)
# Scale factor (typically sqrt(head_dim))
scale = head_dim ** 0.5
ARGS = {
"query": query,
"key": key,
"value": value,
"scale": scale
}
- 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 3, dtype family float, shape (2, 3, 5) — shape (2, 3, 5) 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
|
| split_batch_ens |
Ran ran; our contract draft was wrong, not the code |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("74fe55c52a7b6a5b") 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 4, dtype family float, shape (2, 3, 7, 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 torch
torch.manual_seed(0)
# The function reshapes in_tensor based on the shape of like_tensor
# It takes the first 2 dimensions from like_tensor.shape and the rest from in_tensor.shape[1:]
# So we need:
# - in_tensor with shape (batch*ens, *features)
# - like_tensor with shape (batch, ens, *anything)
# Example:
# like_tensor.shape = (2, 3, 4, 5) -> first 2 dims are (2, 3)
# in_tensor.shape = (6, 7, 8) -> batch*ens=6, features=(7, 8)
# output should be (2, 3, 7, 8)
in_tensor = torch.randn(6, 7, 8) # (batch*ens=6, feat1=7, feat2=8)
like_tensor = torch.randn(2, 3, 4, 5) # (batch=2, ens=3, ...)
ARGS = {
"in_tensor": in_tensor,
"like_tensor": like_tensor,
}
- 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 4, dtype family float, shape (2, 3, 7, 8) — shape (2, 3, 7, 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
|
| split_mean_perts |
Ran ran; our contract draft was wrong, not the code |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("fcab1db5e55829f5") 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 tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create a small tensor with distinct dimensions
# Shape: (batch=2, features=4, height=3, width=5)
in_tensor = torch.randn(2, 4, 3, 5)
# Define ARGS dict with all parameters
ARGS = {
"in_tensor": in_tensor,
"dim": 1
}
- 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 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
|
| BaseNet |
Not yet run unverified (harvested, no recorded run) |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("24e7e6a6819ae729") How it ran |
| EnsAttention |
Not yet run unverified (harvested, no recorded run) |
uantwerpm4s/pp_eupp/Transformer.py code served (permissive licence) · get_code("fb7b244cd8a8a820") How it ran |
| Reweighter |
Not yet run unverified (harvested, no recorded run) |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("904c66e4297f4d17") How it ran |
| StateReweighter |
Not yet run unverified (harvested, no recorded run) |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("0a79f2e78656549c") How it ran |
| TransformerNet |
Not yet run unverified (harvested, no recorded run) |
tobifinn/ensemble_transformer/ens_transformer/models/transformer_net.py code served (permissive licence) · get_code("de833e6644ba1743") How it ran |
| TransformerNet |
Not yet run unverified (harvested, no recorded run) |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("a94febc2f5a68109") How it ran |
| WeightEstimator |
Not yet run unverified (harvested, no recorded run) |
spcl/ens10/baselines/models/tformer.py code served (permissive licence) · get_code("fb91c28f159e549c") How it ran |