| ComplexRMSNorm |
Ran ran on a synthesized input |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("fdb5549f6f12c137") 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
import torch.nn as nn
class ComplexRMSNorm(nn.Module):
"""RMSNorm for complex-valued tensors. Normalizes by RMS of moduli."""
def __init__(self, dim: int, eps: float=1e-06):
super().__init__()
self.weight = nn.Parameter(torch.ones(dim))
self.eps = eps
def forward(self, z: torch.Tensor) -> torch.Tensor:
rms = torch.sqrt(torch.mean(z.abs() ** 2, dim=-1, keepdim=True) + self.eps)
return z / rms * self.weight
INIT_ARGS = {
"dim": 4,
"eps": 1e-06,
}
ARGS = {
"z": torch.randn(2, 3, 4, dtype=torch.complex64),
}
if __name__ == "__main__":
model = ComplexRMSNorm(**INIT_ARGS)
output = model(**ARGS)
print("Output shape:", output.shape)
print("Output dtype:", output.dtype)
print("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)
|
| GLU |
Ran ran on a synthesized input |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("bc872c49688e5003") 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, 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 as nn
class GLU(nn.Module):
"""Gated Linear Unit: GLU(x) = w1(x) ⊙ sigmoid(w2(x))."""
def __init__(self, d: int):
super().__init__()
self.w1 = nn.Linear(d, d)
self.w2 = nn.Linear(d, d)
def forward(self, x: torch.Tensor) -> torch.Tensor:
return self.w1(x) * torch.sigmoid(self.w2(x))
INIT_ARGS = {
"d": 4,
}
ARGS = {
"x": torch.randn(2, 4),
}
if __name__ == "__main__":
glu = GLU(**INIT_ARGS)
output = glu(**ARGS)
print("Output shape:", output.shape)
print("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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| GluEncoder |
Ran ran on a synthesized input |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("2e555eced1370057") 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, 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 as nn
class GLU(nn.Module):
"""Gated Linear Unit: GLU(x) = w1(x) ⊙ sigmoid(w2(x))."""
def __init__(self, d: int):
super().__init__()
self.w1 = nn.Linear(d, d)
self.w2 = nn.Linear(d, d)
def forward(self, x: torch.Tensor) -> torch.Tensor:
return self.w1(x) * torch.sigmoid(self.w2(x))
class GluEncoder(nn.Module):
"""Encoder: depth GLU residual layers (at d_in), then Linear(d_in → d_out).
Matches JAX TIDES Encoder:
for glu in hidden_layers: x = x + glu(x)
return linear(x)
GLU residuals operate at d_in dimension, then project to d_out.
"""
def __init__(self, d_in: int, d_out: int, depth: int=0, init_method: str='default'):
super().__init__()
self.glu_layers = nn.ModuleList([GLU(d_in) for _ in range(depth)])
self.linear = nn.Linear(d_in, d_out)
if init_method == 'zeros':
nn.init.zeros_(self.linear.weight)
elif init_method == 'random':
nn.init.normal_(self.linear.weight, std=0.01)
def forward(self, x: torch.Tensor) -> torch.Tensor:
for glu in self.glu_layers:
x = x + glu(x)
return self.linear(x)
INIT_ARGS = {
'd_in': 4,
'd_out': 3,
'depth': 2,
'init_method': 'default'
}
ARGS = {
'x': torch.randn(2, 4)
}
if __name__ == '__main__':
model = GluEncoder(**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 2, dtype family float, shape (2, 3) — shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| LowRankHead |
Ran ran on a synthesized input |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("b3fd329846233412") 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, 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 as nn
class LowRankHead(nn.Module):
"""Projection head. rank>0: factored Linear(in,r)->Linear(r,out). rank<=0: full Linear(in,out)."""
def __init__(self, d_in: int, d_out: int, rank: int, init_method: str='zeros'):
super().__init__()
if rank > 0:
self.down = nn.Linear(d_in, rank)
self.up = nn.Linear(rank, d_out)
else:
self.down = None
self.up = nn.Linear(d_in, d_out)
if init_method == 'zeros':
nn.init.zeros_(self.up.weight)
elif init_method == 'random':
nn.init.normal_(self.up.weight, std=0.01)
def forward(self, x: torch.Tensor) -> torch.Tensor:
if self.down is not None:
return self.up(self.down(x))
return self.up(x)
INIT_ARGS = {
'd_in': 4,
'd_out': 3,
'rank': 2,
'init_method': 'zeros'
}
ARGS = {
'x': torch.randn(2, 4)
}
if __name__ == '__main__':
head = LowRankHead(**INIT_ARGS)
output = head(**ARGS)
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, 3) — shape (2, 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: 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 |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("ae412fb79bbc7983") 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, 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 as nn
class RMSNorm(nn.Module):
"""Root Mean Square Layer Normalization."""
def __init__(self, dim: int, eps: float=1e-06):
super().__init__()
self.weight = nn.Parameter(torch.ones(dim))
self.eps = eps
def forward(self, x: torch.Tensor) -> torch.Tensor:
rms = torch.sqrt(torch.mean(x ** 2, dim=-1, keepdim=True) + self.eps)
return x / rms * self.weight
INIT_ARGS = {
"dim": 4,
"eps": 1e-06,
}
ARGS = {
"x": torch.randn(2, 4),
}
if __name__ == "__main__":
model = RMSNorm(**INIT_ARGS)
output = model(**ARGS)
print("Output shape:", output.shape)
print("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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| _binary_operator |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("21407881265492b2") 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, 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 arguments for _binary_operator
# The function takes two tuples, each containing (A_tensor, Bu_tensor)
# It performs element-wise operations: A_j * A_i and addcmul(Bu_j, A_j, Bu_i)
# Create small tensors for q_i
A_i = torch.randn(2, 4)
Bu_i = torch.randn(2, 4)
q_i = (A_i, Bu_i)
# Create small tensors for q_j
A_j = torch.randn(2, 4)
Bu_j = torch.randn(2, 4)
q_j = (A_j, Bu_j)
ARGS = {
"q_i": q_i,
"q_j": q_j,
}
- 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, 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
|
| _init_B |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("10e630a73f606591") 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 (5, 4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
import numpy as np
import torch
torch.manual_seed(0)
# Define parameters for _init_B
local_P = 3
H = 4
P = 5
# Create a complex eigenvector inverse matrix (P, local_P)
# This should be a complex numpy array
Vinv = np.random.randn(P, local_P) + 1j * np.random.randn(P, local_P)
ARGS = {
"local_P": local_P,
"H": H,
"Vinv": Vinv,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- 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 3, dtype family float, shape (5, 4, 2) — shape (5, 4, 2) 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
|
| _init_C |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("dae8f59ad552e10c") 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 (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 math
import numpy as np
import torch
torch.manual_seed(0)
np.random.seed(0)
# Construct arguments for _init_C
H = 4 # Hidden dimension
local_P = 3 # Pre-transform size
P = 5 # Output dimension (P > local_P)
# Create V: (local_P, P) complex eigenvectors
V_re = np.random.normal(0, 0.1, (local_P, P))
V_im = np.random.normal(0, 0.1, (local_P, P))
V = V_re + 1j * V_im
ARGS = {
"H": H,
"local_P": local_P,
"V": V,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- 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 (4, 5) — shape (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
|
| _init_log_steps |
Ran ran, honoured the contract we drafted |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("78a11ec171045ad7") 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 1, dtype family float, shape (8,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
import torch
torch.manual_seed(0)
ARGS = {
"H": 8,
"dt_min": 0.001,
"dt_max": 1.0,
}
- 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 1, dtype family float, shape (8,) — shape (8,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| _interleave |
Ran ran; our contract draft was wrong, not the code |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("43246cf3af0e0fb4") 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, 8, 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 two tensors with compatible shapes for interleaving
# a has shape (2, 4, 3) and b has shape (2, 4, 3)
a = torch.randn(2, 4, 3)
b = torch.randn(2, 4, 3)
# Test with axis=1
axis = 1
ARGS = {
"a": a,
"b": b,
"axis": axis,
}
- 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, 8, 3) — shape (2, 8, 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
|
| _make_DPLR_HiPPO |
Ran ran; our contract draft was wrong, not the code |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("ea7a5707b6a44d22") 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 numpy as np
# The function _make_DPLR_HiPPO takes a single parameter N (int)
# Looking at the function body:
# - N is used to create arrays of size N
# - It's passed to _make_HiPPO(N)
# - It's used in np.arange(N) calls
# - No other parameters are needed
# Choose a small value for N to keep computation minimal
N = 4
ARGS = {
"N": N
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- numpy — 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
|
| _make_HiPPO |
Ran ran, honoured the contract we drafted |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("7c0de64bba557907") 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 ndarray, ndim 2, dtype family float, shape (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 numpy as np
def _make_HiPPO(N: int) -> np.ndarray:
P = np.sqrt(1 + 2 * np.arange(N))
A = P[:, None] * P[None, :]
A = np.tril(A) - np.diag(np.arange(N))
return -A
ARGS = {
"N": 4
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (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
|
| apply_ssm |
Ran ran; our contract draft was wrong, not the code |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("54e13153307e1838") 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; 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
torch.manual_seed(0)
# Define dimensions
L = 2 # sequence length
H = 3 # hidden dimension
P = 4 # state dimension
# Lambda_bar: (P,) complex
Lambda_bar = torch.randn(P, dtype=torch.complex64)
# B_bar: (P, H) complex
B_bar = torch.randn(P, H, dtype=torch.complex64)
# C_tilde: (H, P) complex
C_tilde = torch.randn(H, P, dtype=torch.complex64)
# D: (H,) real
D = torch.randn(H, dtype=torch.float32)
# input_sequence: (L, H) real
input_sequence = torch.randn(L, H, dtype=torch.float32)
# conj_sym: bool
conj_sym = True
# liquid: bool
liquid = False
# bidir: bool
bidir = False
ARGS = {
"Lambda_bar": Lambda_bar,
"B_bar": B_bar,
"C_tilde": C_tilde,
"D": D,
"input_sequence": input_sequence,
"conj_sym": conj_sym,
"liquid": liquid,
"bidir": bidir,
}
- 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 — no output shape is stated: observe_signature.py could not observe it (import:OSError)
- 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
|
| associative_scan |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("c78d99e1eebdea68") 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 list, 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 torch.nn.functional as F
from functools import partial
torch.manual_seed(0)
# The function takes:
# - operator: a Callable that combines two pytree structures
# - elems: a pytree of tensors (can be nested dict, list, tuple, or single tensor)
# - axis: int for which axis to scan along
# - reverse: bool for whether to reverse the scan
# Create a simple operator that adds two tensors element-wise
def add_operator(a, b):
"""Operator that adds two pytrees of tensors."""
if isinstance(a, torch.Tensor) and isinstance(b, torch.Tensor):
return a + b
elif isinstance(a, (list, tuple)):
return type(a)(add_operator(x, y) for x, y in zip(a, b))
elif isinstance(a, dict):
return {k: add_operator(a[k], b[k]) for k in a}
else:
return a + b
# Create test tensors with distinct dimensions
# Using shape (2, 4, 3) where:
# - 2 is the scan axis (axis=0)
# - 4 is batch dimension
# - 3 is feature dimension
tensor1 = torch.randn(2, 4, 3)
tensor2 = torch.randn(2, 4, 3)
# Test with a simple list of tensors
elems_list = [tensor1, tensor2]
# Test with nested structure (dict of tensors)
elems_dict = {
'a': torch.randn(2, 4, 3),
'b': torch.randn(2, 4, 3)
}
# Test with single tensor
elems_single = torch.randn(2, 4, 3)
ARGS = {
'operator': add_operator,
'elems': elems_list,
'axis': 0,
'reverse': 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 list, ndim 4, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| discretize_bilinear |
Ran ran; our contract draft was wrong, not the code |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("8652e29133091d11") 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)
# Lambda: (P,) complex diagonal state matrix
# P = 4 (number of state dimensions)
P = 4
Lambda = torch.randn(P, dtype=torch.complex64)
# B_tilde: (P, H) complex input matrix
# H = 3 (number of input features)
H = 3
B_tilde = torch.randn(P, H, dtype=torch.complex64)
# Delta: (P,) float step sizes
Delta = torch.randn(P, dtype=torch.float32).abs() + 0.1 # ensure positive values
ARGS = {
"Lambda": Lambda,
"B_tilde": B_tilde,
"Delta": Delta,
}
- 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
|
| discretize_zoh |
Ran ran; our contract draft was wrong, not the code |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("073538adbd4de683") 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)
# Lambda: (P,) complex diagonal state matrix
# P = 4 (state dimension)
P = 4
Lambda = torch.randn(P, dtype=torch.complex64)
# B_tilde: (P, H) complex input matrix
# H = 3 (input/hidden dimension, distinct from P)
H = 3
B_tilde = torch.randn(P, H, dtype=torch.complex64)
# Delta: (P,) float step sizes
Delta = torch.randn(P, dtype=torch.float32).abs() + 0.1 # ensure positive
ARGS = {
"Lambda": Lambda,
"B_tilde": B_tilde,
"Delta": Delta,
}
- 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
|
| TIDESSSM |
Not yet run unverified (harvested, no recorded run) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("00b97271e0c00f49") How it ran |
| _combine |
Not yet run unverified (harvested, no recorded run) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("f764c65598e4bf72") How it ran |
| _scan |
Not yet run unverified (harvested, no recorded run) |
TaylanSoydan/TIDES/tides/tides.py code served (permissive licence) · get_code("a774f8a49e88f957") How it ran |