| AdaLN |
Ran ran on a synthesized input |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("a06551a2ce884c18") 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, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from torch import nn, Tensor
class AdaLN(nn.Module):
def __init__(self, embed_dim):
super().__init__()
self.modulation = nn.Sequential(nn.SiLU(), nn.Linear(embed_dim, 2 * embed_dim, bias=True))
nn.init.constant_(self.modulation[-1].weight, 0)
nn.init.constant_(self.modulation[-1].bias, 0)
def forward(self, x: Tensor, t: Tensor):
"""
Arguments:
- x: (B, L, C)
- t: (B, C) or (B, L, C)
"""
assert x.dim() == 3
assert t.dim() in (2, 3)
if t.dim() == 2:
t = t.unsqueeze(1)
assert t.shape[1] == 1 or t.shape[1] == x.shape[1]
scale, shift = torch.chunk(self.modulation(t), 2, dim=-1)
x = x * (1 + scale) + shift
return x
INIT_ARGS = {
'embed_dim': 4
}
ARGS = {
'x': torch.randn(2, 3, 4),
't': torch.randn(2, 4)
}
if __name__ == '__main__':
model = AdaLN(**INIT_ARGS)
output = model(**ARGS)
print(f"Output shape: {output.shape}")
print(f"Output: {output}")
- 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, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| FFN |
Ran ran on a synthesized input |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("6766f34ed867e302") 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, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from torch import nn, Tensor
class AdaLN(nn.Module):
def __init__(self, embed_dim):
super().__init__()
self.modulation = nn.Sequential(nn.SiLU(), nn.Linear(embed_dim, 2 * embed_dim, bias=True))
nn.init.constant_(self.modulation[-1].weight, 0)
nn.init.constant_(self.modulation[-1].bias, 0)
def forward(self, x: Tensor, t: Tensor):
"""
Arguments:
- x: (B, L, C)
- t: (B, C) or (B, L, C)
"""
assert x.dim() == 3
assert t.dim() in (2, 3)
if t.dim() == 2:
t = t.unsqueeze(1)
assert t.shape[1] == 1 or t.shape[1] == x.shape[1]
scale, shift = torch.chunk(self.modulation(t), 2, dim=-1)
x = x * (1 + scale) + shift
return x
class NormOrAdaLN(nn.Module):
def __init__(self, hdim, use_adaln: bool=False):
super().__init__()
self.norm = nn.LayerNorm(hdim, elementwise_affine=not use_adaln)
self.use_adaln = use_adaln
if self.use_adaln:
self.adaln = AdaLN(hdim)
def forward(self, x: Tensor, film: Tensor=None):
x = self.norm(x)
if self.use_adaln:
x = self.adaln(x, film)
return x
class FFN(nn.Module):
def __init__(self, embed_dim, hidden_dim, dropout=0.0, use_adaln=False):
super().__init__()
self.ff = nn.Sequential(nn.Linear(embed_dim, hidden_dim), nn.LayerNorm(hidden_dim), nn.GELU(), nn.Dropout(dropout), nn.Linear(hidden_dim, embed_dim), nn.Dropout(dropout))
self.norm = NormOrAdaLN(embed_dim, use_adaln)
self.alpha = 1.0
def residual_path(self, x: Tensor, residual: Tensor):
if self.alpha == 1:
return x + residual
else:
return x + self.alpha * residual
def forward(self, x: Tensor, film: Tensor=None):
residual = x
x = self.ff(x)
output = self.residual_path(x, residual)
output = self.norm(output, film)
return output
INIT_ARGS = {
'embed_dim': 4,
'hidden_dim': 8,
'dropout': 0.1,
'use_adaln': True,
}
ARGS = {
'x': torch.randn(2, 3, 4),
'film': torch.randn(2, 4),
}
if __name__ == '__main__':
model = FFN(**INIT_ARGS)
output = model(**ARGS)
print(f"Output shape: {output.shape}")
print(f"Expected shape: (2, 3, 4)")
assert output.shape == (2, 3, 4), f"Shape mismatch: {output.shape}"
print("Test passed!")
- 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, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| MySimpleMHA |
Ran ran on a synthesized input |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("c90335c5062ff486") 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 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 torch.nn as nn
from einops import rearrange
# Enum and RMSNorm copied from the class definition
from enum import IntFlag, auto
class ProjOpt(IntFlag):
QK = auto()
QKV = auto()
Q_KV = auto()
Q_K_V = auto()
DEFAULT = Q_K_V
class RMSNorm(nn.Module):
def __init__(self, dim: int, eps: float=1e-05, elementwise_affine=True):
super().__init__()
self.eps = eps
self.elementwise_affine = elementwise_affine
if self.elementwise_affine:
self.weight = nn.Parameter(torch.ones(dim))
else:
self.register_parameter('weight', None)
def _norm(self, x):
return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps)
def forward(self, x):
output = self._norm(x.float()).type_as(x)
return output * self.weight if self.elementwise_affine else output
# Minimal stub for MySimpleMHA with just __init__ and forward signature
class MySimpleMHA(nn.Module):
def __init__(self, embed_dim, num_heads, dropout=0.0, kdim=None, vdim=None, proj_opt=ProjOpt.DEFAULT, flash=True, bias=False, qk_norm=False, pe_type='rope'):
super().__init__()
assert embed_dim % num_heads == 0
self.num_heads = num_heads
self.head_dim = embed_dim // num_heads
self.kdim = embed_dim if kdim is None else kdim
self.vdim = embed_dim if vdim is None else vdim
self.dropout = dropout
self.flash = flash
self.qk_norm = qk_norm
self.pe_type = pe_type
self.proj_opt = proj_opt
if proj_opt == ProjOpt.QKV:
self.to_qkv = nn.Linear(embed_dim, 3 * embed_dim, bias=bias)
elif proj_opt == ProjOpt.Q_KV:
self.to_q = nn.Linear(embed_dim, embed_dim, bias=bias)
self.to_kv = nn.Linear(self.kdim, 2 * embed_dim, bias=bias)
elif proj_opt == ProjOpt.Q_K_V:
self.to_q = nn.Linear(embed_dim, embed_dim, bias=bias)
self.to_k = nn.Linear(self.kdim, embed_dim, bias=bias)
self.to_v = nn.Linear(self.vdim, embed_dim, bias=bias)
elif proj_opt == ProjOpt.QK:
self.to_qk = nn.Linear(embed_dim, 2 * embed_dim, bias=bias)
if self.qk_norm:
self.q_norm = RMSNorm(self.head_dim)
self.k_norm = RMSNorm(self.head_dim)
self.to_out = nn.Linear(embed_dim, embed_dim, bias=bias)
def forward(self, x, c=None, attn_mask=None):
# Minimal forward: just return a dummy output of correct shape
B, L, D = x.shape
return torch.randn(B, L, D)
# Configuration for __init__
INIT_ARGS = {
'embed_dim': 4,
'num_heads': 2,
'dropout': 0.1,
'kdim': None,
'vdim': None,
'proj_opt': ProjOpt.Q_K_V,
'flash': True,
'bias': False,
'qk_norm': False,
'pe_type': 'rope',
}
# Configuration for forward call
ARGS = {
'x': torch.randn(2, 3, 4),
'c': torch.randn(2, 3, 4),
'attn_mask': None,
}
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- einops, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| NormOrAdaLN |
Ran ran on a synthesized input |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("50888249bfce1fab") 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, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from torch import nn, Tensor
class AdaLN(nn.Module):
def __init__(self, embed_dim):
super().__init__()
self.modulation = nn.Sequential(nn.SiLU(), nn.Linear(embed_dim, 2 * embed_dim, bias=True))
nn.init.constant_(self.modulation[-1].weight, 0)
nn.init.constant_(self.modulation[-1].bias, 0)
def forward(self, x: Tensor, t: Tensor):
"""
Arguments:
- x: (B, L, C)
- t: (B, C) or (B, L, C)
"""
assert x.dim() == 3
assert t.dim() in (2, 3)
if t.dim() == 2:
t = t.unsqueeze(1)
assert t.shape[1] == 1 or t.shape[1] == x.shape[1]
scale, shift = torch.chunk(self.modulation(t), 2, dim=-1)
x = x * (1 + scale) + shift
return x
class NormOrAdaLN(nn.Module):
def __init__(self, hdim, use_adaln: bool=False):
super().__init__()
self.norm = nn.LayerNorm(hdim, elementwise_affine=not use_adaln)
self.use_adaln = use_adaln
if self.use_adaln:
self.adaln = AdaLN(hdim)
def forward(self, x: Tensor, film: Tensor=None):
x = self.norm(x)
if self.use_adaln:
x = self.adaln(x, film)
return x
INIT_ARGS = {
'hdim': 4,
'use_adaln': True,
}
ARGS = {
'x': torch.randn(2, 3, 4),
'film': torch.randn(2, 4),
}
if __name__ == '__main__':
model = NormOrAdaLN(**INIT_ARGS)
output = model(**ARGS)
print(f"Output shape: {output.shape}")
print(f"Output: {output}")
- 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, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| RMSNorm |
Ran ran on a synthesized input |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("ea08af0febc2e0f0") 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, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from torch import nn, Tensor
class RMSNorm(nn.Module):
def __init__(self, dim: int, eps: float=1e-05, elementwise_affine=True):
super().__init__()
self.eps = eps
self.elementwise_affine = elementwise_affine
if self.elementwise_affine:
self.weight = nn.Parameter(torch.ones(dim))
else:
self.register_parameter('weight', None)
def _norm(self, x: Tensor):
return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps)
def forward(self, x: Tensor):
output = self._norm(x.float()).type_as(x)
return output * self.weight if self.elementwise_affine else output
INIT_ARGS = {
'dim': 4,
'eps': 1e-05,
'elementwise_affine': True
}
ARGS = {
'x': torch.randn(2, 3, 4)
}
if __name__ == '__main__':
model = RMSNorm(**INIT_ARGS)
output = model(**ARGS)
print(f"Input shape: {ARGS['x'].shape}")
print(f"Output shape: {output.shape}")
print(f"Output:\n{output}")
- 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, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| SinusoidalPosEmb |
Ran ran on a synthesized input |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("0cc80fdf43ce8f93") 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, shape (2, 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
from torch import nn, Tensor
import math
class SinusoidalPosEmb(nn.Module):
def __init__(self, dim, temperature=10000.0):
super().__init__()
self.dim = dim
self.temperature = temperature
def forward(self, x: Tensor):
device = x.device
half_dim = self.dim // 2
emb = math.log(self.temperature) / (half_dim - 1)
emb = torch.exp(torch.arange(half_dim, device=device) * -emb)
emb = x[:, None] * emb[None, :]
emb = torch.cat((emb.sin(), emb.cos()), dim=-1)
return emb
INIT_ARGS = {
'dim': 8,
'temperature': 10000.0
}
ARGS = {
'x': torch.randn(2)
}
if __name__ == '__main__':
model = SinusoidalPosEmb(**INIT_ARGS)
output = model(**ARGS)
print(f"Input shape: {ARGS['x'].shape}")
print(f"Output shape: {output.shape}")
print(f"Output:\n{output}")
- 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, shape (2, 8) — shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| action2states |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("51e1287d7ceb68a6") 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 Tensor, ndim 3, dtype family float, shape (2, 3, 16) 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
from torch import nn, Tensor
torch.manual_seed(0)
# Set up small tensors for the function
B = 2 # batch size
T = 3 # time steps
H, W = 4, 4 # homogeneous transformation matrix size
# Create valid 4x4 transformation matrices (homogeneous)
# These should be valid SE(3) transforms: rotation + translation with [0,0,0,1] bottom row
def create_valid_transform(batch_size):
"""Create a batch of valid 4x4 transformation matrices"""
transforms = torch.zeros(batch_size, 4, 4)
# Set rotation part (top-left 3x3) to identity for simplicity
transforms[:, :3, :3] = torch.eye(3).unsqueeze(0).expand(batch_size, -1, -1)
# Set translation part (top-right 3x1) to small random values
transforms[:, :3, 3] = torch.randn(batch_size, 3) * 0.1
# Set bottom row to [0, 0, 0, 1]
transforms[:, 3, 3] = 1.0
return transforms
cur_wcT = create_valid_transform(B) # (B, 4, 4) - world T cam
cur_weT = create_valid_transform(B) # (B, 4, 4) - world T ee
# Create action tensor with shape (B, T, 9) for 9-dim action
# First 3 dims are translation, last 6 are rotation in 6D representation
action_9 = torch.randn(B, T, 9) * 0.1
ARGS = {
"cur_wcT": cur_wcT,
"cur_weT": cur_weT,
"action": action_9,
}
- 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 Tensor, ndim 3, dtype family float, shape (2, 3, 16) — shape (2, 3, 16) 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
|
| matrix_to_rotation_6d |
Ran ran; our contract draft was wrong, not the code |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("f837650048594c25") 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 Tensor, ndim 2, dtype family float, shape (2, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create a batch of rotation matrices
# Shape: (2, 3, 3) - batch size 2, each element is a 3x3 rotation matrix
# We'll create valid rotation matrices using QR decomposition
batch_size = 2
random_matrix = torch.randn(batch_size, 3, 3)
q, r = torch.linalg.qr(random_matrix)
# Ensure determinant is 1 (proper rotation, not reflection)
matrix = q * torch.sign(torch.det(q)).view(batch_size, 1, 1)
ARGS = {
"matrix": matrix
}
- 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 Tensor, ndim 2, dtype family float, shape (2, 6) — shape (2, 6) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| rotation_6d_to_matrix |
Ran ran; our contract draft was wrong, not the code |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("954201cece5c2aec") 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 Tensor, ndim 3, dtype family float, shape (2, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn.functional as F
torch.manual_seed(0)
# Create a 6D rotation representation tensor
# Shape: (batch_size, 6) where batch_size=2
d6 = torch.randn(2, 6)
ARGS = {
"d6": d6,
}
- 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 Tensor, ndim 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 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
|
| simple_mlp |
Ran ran; our contract draft was wrong, not the code |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("bdd8fa1e526a32fc") 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 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
torch.manual_seed(0)
ARGS = {
"neurons": [4, 8, 16, 3],
"ln": False,
}
- 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 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
|
| space_cam2ee |
Ran ran; our contract draft was wrong, not the code |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("deff5671d07c84ee") 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 Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn.functional as F
from torch import nn, Tensor
torch.manual_seed(0)
# Create small tensors with distinct dimensions
B = 2 # batch size
T = 3 # time steps
# cur_wcT: (B, 4, 4) - world to camera transformation
cur_wcT = torch.eye(4).unsqueeze(0).repeat(B, 1, 1)
cur_wcT[:, :3, 3] = torch.randn(B, 3) # Add some translation
# cur_weT: (B, 4, 4) - world to end-effector transformation
cur_weT = torch.eye(4).unsqueeze(0).repeat(B, 1, 1)
cur_weT[:, :3, 3] = torch.randn(B, 3) # Add some translation
# t3r6: (B, T, 9) - 3D translation (first 3) + 6D rotation (last 6)
t3r6 = torch.randn(B, T, 9)
# Normalize the 6D rotation representation to be valid
t3r6[..., 3:] = F.normalize(t3r6[..., 3:], dim=-1)
ARGS = {
"cur_wcT": cur_wcT,
"cur_weT": cur_weT,
"t3r6": t3r6,
}
- 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 Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| space_ee2cam |
Ran ran; our contract draft was wrong, not the code |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("acdb3b4f3a6d7dd3") 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 Tensor, ndim 3, dtype family float, shape (2, 4, 9) 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 valid transformation matrices (4x4 homogeneous transforms)
# These should be valid SE(3) matrices with rotation in top-left 3x3 and translation in top-right 3x1
def create_valid_transform(batch_size):
"""Create a batch of valid 4x4 transformation matrices"""
T = torch.eye(4).unsqueeze(0).repeat(batch_size, 1, 1)
# Add small random rotations (approximate as small perturbations to identity)
T[:, :3, :3] = torch.eye(3).unsqueeze(0) + 0.1 * torch.randn(batch_size, 3, 3)
# Add translations
T[:, :3, 3] = torch.randn(batch_size, 3)
return T
def create_valid_transform_sequence(batch_size, seq_len):
"""Create a batch sequence of valid 4x4 transformation matrices"""
T = torch.eye(4).unsqueeze(0).unsqueeze(0).repeat(batch_size, seq_len, 1, 1)
# Add small random rotations
T[:, :, :3, :3] = torch.eye(3).unsqueeze(0).unsqueeze(0) + 0.1 * torch.randn(batch_size, seq_len, 3, 3)
# Add translations
T[:, :, :3, 3] = torch.randn(batch_size, seq_len, 3)
return T
# Create batch size and sequence length
B = 2
T = 4
# Create the arguments
cur_wcT = create_valid_transform(B) # (B, 4, 4) - world to camera transform
cur_weT = create_valid_transform(B) # (B, 4, 4) - world to end-effector transform
fut_weT = create_valid_transform_sequence(B, T) # (B, T, 4, 4) - future ee poses in world frame
ARGS = {
"cur_wcT": cur_wcT,
"cur_weT": cur_weT,
"fut_weT": fut_weT,
}
- 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 Tensor, ndim 3, dtype family float, shape (2, 4, 9) — shape (2, 4, 9) 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
|
| states2action |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("9198120678090db6") 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 Tensor, ndim 3, dtype family float, shape (2, 3, 9) 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
from torch import nn, Tensor
torch.manual_seed(0)
# Create small batch of 4x4 transformation matrices
# These should be valid SE(3) transforms (rotation + translation)
B = 2
T = 3
# Create valid rotation matrices using QR decomposition
def create_rotation_matrix(batch_size):
"""Create valid rotation matrices"""
random_mat = torch.randn(batch_size, 3, 3)
Q, R = torch.linalg.qr(random_mat)
# Ensure determinant is 1 (not -1)
det = torch.det(Q)
Q[det < 0, 0, :] *= -1
return Q
# cur_wcT: (B, 4, 4) - world to camera transform
cur_wcT = torch.eye(4).unsqueeze(0).repeat(B, 1, 1)
cur_wcT[:, :3, :3] = create_rotation_matrix(B)
cur_wcT[:, :3, 3] = torch.randn(B, 3)
# cur_weT: (B, 4, 4) - world to end-effector transform
cur_weT = torch.eye(4).unsqueeze(0).repeat(B, 1, 1)
cur_weT[:, :3, :3] = create_rotation_matrix(B)
cur_weT[:, :3, 3] = torch.randn(B, 3)
# ee_states: (B, T, 16) or (B, T, 17)
# First 16 elements are flattened 4x4 transformation matrix
# Optional 17th element is openness value
ee_states_16 = torch.zeros(B, T, 16)
for b in range(B):
for t in range(T):
rot_mat = create_rotation_matrix(1).squeeze(0)
trans = torch.randn(3)
T_mat = torch.eye(4)
T_mat[:3, :3] = rot_mat
T_mat[:3, 3] = trans
ee_states_16[b, t] = T_mat.flatten()
# Also create version with openness
ee_states_17 = torch.cat([ee_states_16, torch.rand(B, T, 1)], dim=-1)
ARGS = {
"cur_wcT": cur_wcT,
"cur_weT": cur_weT,
"ee_states": ee_states_16,
}
- 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 Tensor, ndim 3, dtype family float, shape (2, 3, 9) — shape (2, 3, 9) 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
|
| ActionExpert |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("62bc283c9ac94844") How it ran |
| ContextEncoder |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("55d0fef2772ed1c4") How it ran |
| CrossAttentionLayer |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("cb11e178d0f9f3b4") How it ran |
| DiT |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("dd196bb3231f1a74") How it ran |
| DiTBlock |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("b7b9ae681cc1e283") How it ran |
| DiffusionHead |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("3cebc9736a17ae1d") How it ran |
| FFWSelfAttentionLayers |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("a95107e0436e16f0") How it ran |
| ProjOpt |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("c4cbad3ccbf289de") How it ran |
| QBlockITM |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("a8da485622a3e82f") How it ran |
| QFormerITM |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("dcb94cf4cfa319e1") How it ran |
| SelfAttentionLayer |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("fbd9490906b39443") How it ran |
| concat_mask |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("78a9b7331a4784c3") How it ran |
| get_target |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("5d00ada5abf1b6a0") How it ran |
| init_xncoder |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("5ba2481705bc5b57") How it ran |
| set_alpha_beta |
Not yet run unverified (harvested, no recorded run) |
hhcaz/e2vla/models/action_expert.py code served (permissive licence) · get_code("9ab8288826ccfa3a") How it ran |