| Decoder |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("a1c051050bd5cf88") 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, Decoder: 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
from torch import nn
torch.manual_seed(0)
class WaveAct(nn.Module):
def __init__(self):
super(WaveAct, self).__init__()
self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)
def forward(self, x):
return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)
class MLP(nn.Module):
def __init__(self, d_input, d_output, d_ff=256):
super(MLP, self).__init__()
self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))
def forward(self, x):
return self.sequential(x)
class DecoderLayer(nn.Module):
def __init__(self, d_model, num_heads):
super(DecoderLayer, self).__init__()
self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
self.ff = MLP(d_model, d_model)
self.layer_norm_1 = nn.LayerNorm(d_model)
self.layer_norm_2 = nn.LayerNorm(d_model)
def forward(self, x, encoder_out, mask=None):
x2 = self.layer_norm_1(x)
x = x + self.attn(x2, encoder_out, encoder_out, key_padding_mask=~mask.squeeze(-1))[0]
x2 = self.layer_norm_2(x)
x = x + self.ff(x2)
return x
class Decoder(nn.Module):
def __init__(self, d_model, num_layers, num_heads):
super(Decoder, self).__init__()
self.num_layers = num_layers
self.layers = nn.ModuleList([DecoderLayer(d_model, num_heads) for _ in range(num_layers)])
def forward(self, x, encoder_out, mask_kv):
for i in range(self.num_layers):
x = self.layers[i](x, encoder_out, mask_kv)
return x
d_model = 4
num_layers = 2
num_heads = 2
batch_size = 2
seq_len_x = 3
seq_len_encoder = 5
x = torch.randn(batch_size, seq_len_x, d_model)
encoder_out = torch.randn(batch_size, seq_len_encoder, d_model)
mask_kv = torch.ones(batch_size, seq_len_encoder, 1, dtype=torch.bool)
ARGS = {
"d_model": d_model,
"num_layers": num_layers,
"num_heads": num_heads,
}
- 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 Decoder — 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 Decoder 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
|
| DecoderLayer |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("9268078cec167a5a") 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, DecoderLayer: 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
from torch import nn
torch.manual_seed(0)
class WaveAct(nn.Module):
def __init__(self):
super(WaveAct, self).__init__()
self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)
def forward(self, x):
return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)
class MLP(nn.Module):
def __init__(self, d_input, d_output, d_ff=256):
super(MLP, self).__init__()
self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))
def forward(self, x):
return self.sequential(x)
class DecoderLayer(nn.Module):
def __init__(self, d_model, num_heads):
super(DecoderLayer, self).__init__()
self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
self.ff = MLP(d_model, d_model)
self.layer_norm_1 = nn.LayerNorm(d_model)
self.layer_norm_2 = nn.LayerNorm(d_model)
def forward(self, x, encoder_out, mask=None):
x2 = self.layer_norm_1(x)
x = x + self.attn(x2, encoder_out, encoder_out, key_padding_mask=~mask.squeeze(-1))[0]
x2 = self.layer_norm_2(x)
x = x + self.ff(x2)
return x
d_model = 4
num_heads = 2
ARGS = {
"d_model": d_model,
"num_heads": num_heads,
}
- 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 DecoderLayer — 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 DecoderLayer 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
|
| Encoder |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("bb56bd0f6d39dc82") 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, Encoder: 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
from torch import nn
torch.manual_seed(0)
class WaveAct(nn.Module):
def __init__(self):
super(WaveAct, self).__init__()
self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)
def forward(self, x):
return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)
class MLP(nn.Module):
def __init__(self, d_input, d_output, d_ff=256):
super(MLP, self).__init__()
self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))
def forward(self, x):
return self.sequential(x)
class EncoderLayer(nn.Module):
def __init__(self, d_model, num_heads):
super(EncoderLayer, self).__init__()
self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
self.ff = MLP(d_model, d_model)
self.layer_norm_1 = nn.LayerNorm(d_model)
self.layer_norm_2 = nn.LayerNorm(d_model)
def forward(self, x, mask=None):
x2 = self.layer_norm_1(x)
x = x + self.attn(x2, x2, x2, key_padding_mask=~mask.squeeze(-1))[0]
x2 = self.layer_norm_2(x)
x = x + self.ff(x2)
return x
class Encoder(nn.Module):
def __init__(self, d_model, num_layers, num_heads):
super(Encoder, self).__init__()
self.num_layers = num_layers
self.layers = nn.ModuleList([EncoderLayer(d_model, num_heads) for _ in range(num_layers)])
def forward(self, x, mask=None):
for i in range(self.num_layers):
x = self.layers[i](x, mask)
return x
d_model = 4
num_layers = 2
num_heads = 2
x = torch.randn(2, 3, d_model)
mask = torch.ones(2, 3, 1, dtype=torch.bool)
ARGS = {
"d_model": d_model,
"num_layers": num_layers,
"num_heads": num_heads,
}
- 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 Encoder — 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 Encoder 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
|
| EncoderLayer |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("6fd35000ae1c6aff") 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, EncoderLayer: 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
from torch import nn
torch.manual_seed(0)
class WaveAct(nn.Module):
def __init__(self):
super(WaveAct, self).__init__()
self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)
def forward(self, x):
return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)
class MLP(nn.Module):
def __init__(self, d_input, d_output, d_ff=256):
super(MLP, self).__init__()
self.sequential = nn.Sequential(nn.Linear(d_input, d_ff), WaveAct(), nn.Linear(d_ff, d_output))
def forward(self, x):
return self.sequential(x)
class EncoderLayer(nn.Module):
def __init__(self, d_model, num_heads):
super(EncoderLayer, self).__init__()
self.attn = torch.nn.MultiheadAttention(d_model, num_heads, batch_first=True)
self.ff = MLP(d_model, d_model)
self.layer_norm_1 = nn.LayerNorm(d_model)
self.layer_norm_2 = nn.LayerNorm(d_model)
def forward(self, x, mask=None):
x2 = self.layer_norm_1(x)
x = x + self.attn(x2, x2, x2, key_padding_mask=~mask.squeeze(-1))[0]
x2 = self.layer_norm_2(x)
x = x + self.ff(x2)
return x
d_model = 4
num_heads = 2
batch_size = 2
seq_len = 3
x = torch.randn(batch_size, seq_len, d_model)
mask = torch.ones(batch_size, seq_len, 1, dtype=torch.bool)
ARGS = {
'd_model': d_model,
'num_heads': num_heads,
}
- 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 EncoderLayer — 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 EncoderLayer 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
|
| GCE |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("dbea0c0e9ec700c1") 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, GCE: 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
from torch import nn
torch.manual_seed(0)
# For the GCE module, we need to understand what it expects:
# - bc_dims: a list of dimensions for the different components
# - d_out: output dimension (default 256)
# Looking at the forward method:
# - condition: shape (batch, seq_len, sum(bc_dims))
# - type: a tensor for masking local encodes
# - It extracts global_encode from first bc_dims[0] features
# - It processes remaining features through linear layers
# - Each linear layer expects bc_dim input and outputs bc_dim * 2
# Create a small but valid configuration
bc_dims = [4, 3, 5] # 3 components with different sizes
d_out = 8
# Total input feature dimension: sum(bc_dims) = 4 + 3 + 5 = 12
# After processing: global (4) + local (3*2 + 5*2) = 4 + 6 + 10 = 20
# This matches what learnable_emb expects: d_input = sum(bc_dims) * 2 - bc_dims[0]
# = (4+3+5)*2 - 4 = 24 - 4 = 20
ARGS = {
"bc_dims": bc_dims,
"d_out": d_out,
}
- 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 GCE — 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 GCE 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
|
| MLP |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("5b88e56ee8033be9") 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, MLP: 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
from torch import nn
torch.manual_seed(0)
ARGS = {
"d_input": 4,
"d_output": 3,
"d_ff": 256
}
- 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 MLP — 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 MLP 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
|
| PatchEmbedding |
Ran ran on a synthesized input · constructed an object; no result was computed |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("35a388a3fe7f597e") 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, PatchEmbedding: 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
from torch import nn
torch.manual_seed(0)
# PatchEmbedding takes patch_size as parameter
patch_size = 4
# Create input tensors
batch_size = 2
max_seq_len = 5
d_emb = 3
# x: (batch_size, max_seq_len, d_emb)
x = torch.randn(batch_size, max_seq_len, d_emb)
# masks: (batch_size, max_seq_len, 1)
masks = torch.ones(batch_size, max_seq_len, 1, dtype=torch.float32)
ARGS = {
'patch_size': patch_size,
}
- 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 PatchEmbedding — 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 PatchEmbedding 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
|
| WaveAct |
Ran ran on a synthesized input |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("cdbf9045323325e3") 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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from torch import nn
class WaveAct(nn.Module):
def __init__(self):
super(WaveAct, self).__init__()
self.w1 = nn.Parameter(torch.ones(1), requires_grad=True)
self.w2 = nn.Parameter(torch.ones(1), requires_grad=True)
def forward(self, x):
return self.w1 * torch.sin(x) + self.w2 * torch.cos(x)
INIT_ARGS = {}
ARGS = {
'x': torch.randn(2, 4)
}
- 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 2, 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)
|
| get_bits |
Ran ran; our contract draft was wrong, not the code |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("514f85c5964e0881") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# The function expects:
# - x: a tensor with integer values, shape ending in some dimension
# - depth: an integer representing the number of bits to extract
# Looking at the function body:
# - x.shape[-1] is used to get dims
# - x // 2**i % 2 is used (integer operations on x)
# - x.device is accessed
# The function extracts binary representations of integers
# Create a small integer tensor with shape [4] (dims=4)
x = torch.tensor([5, 12, 3, 15], dtype=torch.int32)
# depth is the number of bits to extract
depth = 3
ARGS = {
"x": x,
"depth": depth,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| index |
Ran ran, honoured the contract we drafted |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("d1131f0b49544860") 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 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
torch.manual_seed(0)
ARGS = {
"x_bit": 1,
"y_bit": 0,
"z_bit": 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 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
|
| rotate |
Ran ran, violated the contract we drafted |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("a26c58cbaba46ba8") 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 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)
# Construct valid arguments for the rotate function
# The function expects:
# - x_rot: tensor with shape (dims, depth)
# - y_rot: tensor with shape (dims, depth)
# - z_rot: tensor with shape (dims, depth)
# - filter: tensor with shape (dims,) that will be unsqueezed and expanded to (dims, depth)
dims = 4
depth = 3
# Create x_rot, y_rot, z_rot as boolean tensors (since & operator is used with filter)
x_rot = torch.randint(0, 2, (dims, depth), dtype=torch.bool)
y_rot = torch.randint(0, 2, (dims, depth), dtype=torch.bool)
z_rot = torch.randint(0, 2, (dims, depth), dtype=torch.bool)
# Create filter as a 1D boolean tensor with dims elements
filter = torch.randint(0, 2, (dims,), dtype=torch.bool)
ARGS = {
"x_rot": x_rot,
"y_rot": y_rot,
"z_rot": z_rot,
"filter": filter,
}
- 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 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
|
| serialization |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("c720eda739273a55") 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 small coordinate tensors for a batch of 2 sequences with max_seq_len of 4
# Each coordinate has 3 spatial dimensions (x, y, z)
batch_size = 2
max_seq_len = 4
spatial_dims = 3
coords = torch.randn(batch_size, max_seq_len, spatial_dims)
# Create a mask tensor indicating which sequence positions are valid
# Shape: (batch_size, max_seq_len, 1)
mask = torch.tensor([
[[True], [True], [True], [False]],
[[True], [True], [False], [False]]
], dtype=torch.bool)
depth = 16
dims_mode = '3d'
ARGS = {
'coords': coords,
'mask': mask,
'depth': depth,
'dims': dims_mode
}
- 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
|
| sort_tensor |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("db147d40ad0b2527") 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, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Construct valid arguments for sort_tensor
# The function expects:
# - x: a 3D tensor with shape (batch, sequence, d_out)
# - indices: a 2D tensor with shape (batch, sequence) containing indices for gathering
batch_size = 2
sequence_length = 4
d_out = 3
# Create x tensor with shape (batch, sequence, d_out)
x = torch.randn(batch_size, sequence_length, d_out)
# Create indices tensor with shape (batch, sequence)
# Values should be valid indices for the sequence dimension (0 to sequence_length-1)
indices = torch.tensor([
[0, 2, 1, 3],
[3, 1, 2, 0]
], dtype=torch.long)
ARGS = {
'x': x,
'indices': indices
}
- 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, 4, 3) — shape (2, 4, 3) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| MMET |
Not yet run unverified (harvested, no recorded run) |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("dd3334c2ab2d9c42") How it ran |
| encode |
Not yet run unverified (harvested, no recorded run) |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("be6ea4c4439b5a73") How it ran |
| normalize |
Not yet run unverified (harvested, no recorded run) |
YichenLuo-0/MMET/model/mmet.py code served (permissive licence) · get_code("608d71d88a587b2f") How it ran |