| ADMUNet5DBackbone |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("ceaa158b1cee399c") 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, ADMUNet5DBackbone: 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 jax
import jax.numpy as jnp
import flax.linen as nn
from collections.abc import Sequence
# Mock ADMUNet2D since it's referenced but not defined
class ADMUNet2D(nn.Module):
in_channels: int
model_channels: int
out_channels: int
num_res_blocks: int
attention_resolutions: Sequence[int]
dropout_rate: float
channel_mult: Sequence[int]
conv_resample: bool
num_heads: int
num_head_channels: int
num_heads_upsample: int
use_scale_shift_norm: bool
resblock_updown: bool
use_conv_skip: bool
use_new_attention_order: bool
@nn.compact
def __call__(self, h, *, timesteps=None, cond=None, train: bool=False):
# Simple mock that returns appropriately shaped output
return jnp.ones((*h.shape[:-1], self.out_channels))
ARGS = {
"feature_dim": 128,
"output_channels": 256,
"num_res_blocks": 2,
"attention_resolutions": (2, 4, 8),
"channel_mult": (1, 2, 2, 2),
"num_heads": 4,
"num_head_channels": -1,
"num_heads_upsample": -1,
"dropout_rate": 0.0,
"conv_resample": True,
"use_scale_shift_norm": True,
"resblock_updown": False,
"use_conv_skip": False,
"use_new_attention_order": False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ADMUNet5DBackbone — 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 ADMUNet5DBackbone 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
|
| AnchorTableConfig |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("bb36df142636a78e") 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, AnchorTableConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from dataclasses import dataclass, field
torch.manual_seed(0)
@dataclass(frozen=True)
class AnchorTransformConfig:
center_columns: bool = False
whiten: bool = False
whiten_eps: float = 1e-05
equalize_row_norms: bool = False
target_row_norm: float | None = None
scale: float = 1.0
@dataclass(frozen=True)
class AnchorTableConfig:
family: str
vocab_size: int
anchor_dim: int
init_std: float = 1.0
seed: int | None = None
order_weight: float = 1.0
residual_weight: float = 1.0
projection_seed: int | None = None
pretrained_path: str | None = None
transform: AnchorTransformConfig = field(default_factory=AnchorTransformConfig)
normalize_at_use: bool = False
# Create the transform config
transform_config = AnchorTransformConfig(
center_columns=False,
whiten=False,
whiten_eps=1e-05,
equalize_row_norms=False,
target_row_norm=None,
scale=1.0
)
# Create arguments for AnchorTableConfig
ARGS = {
"family": "anchor_table",
"vocab_size": 100,
"anchor_dim": 8,
"init_std": 1.0,
"seed": 42,
"order_weight": 1.0,
"residual_weight": 1.0,
"projection_seed": 123,
"pretrained_path": None,
"transform": transform_config,
"normalize_at_use": False,
}
- 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 AnchorTableConfig — 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 AnchorTableConfig 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
|
| AnchorTableViews |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("3a9c011dec842d0d") 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, AnchorTableViews: 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 jax.numpy as jnp
import numpy as np
# Create small JAX arrays for the AnchorTableViews dataclass
# Using distinct sizes for different dimensions: (2, 4), (2, 5), (2, 3)
raw_array = jnp.array(np.random.randn(2, 4), dtype=jnp.float32)
transformed_array = jnp.array(np.random.randn(2, 5), dtype=jnp.float32)
final_array = jnp.array(np.random.randn(2, 3), dtype=jnp.float32)
ARGS = {
"raw": raw_array,
"transformed": transformed_array,
"final": final_array,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type AnchorTableViews — 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 AnchorTableViews 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
|
| AnchorTransformConfig |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("0de294e6d8d05000") 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, AnchorTransformConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
from dataclasses import dataclass
torch.manual_seed(0)
ARGS = {
"center_columns": False,
"whiten": False,
"whiten_eps": 1e-05,
"equalize_row_norms": False,
"target_row_norm": None,
"scale": 1.0,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type AnchorTransformConfig — 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 AnchorTransformConfig 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
|
| CondEmbedding |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("36993dea20d0a4f2") 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, CondEmbedding: 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 jax
import jax.numpy as jnp
import flax.linen as nn
def get_timestep_embedding(timesteps, embedding_dim: int, dtype='float'):
assert embedding_dim > 2
half_dim = embedding_dim // 2
emb = jnp.log(10000) / (half_dim - 1)
emb = jnp.exp(jnp.arange(half_dim, dtype='float32') * -emb)
emb = timesteps.astype('float32')[:, None] * emb[None, :]
emb = jnp.concatenate([jnp.sin(emb), jnp.cos(emb)], axis=1)
if embedding_dim % 2 == 1:
emb = jax.lax.pad(emb, jnp.array(0, dtype), ((0, 0, 0), (0, 1, 0)))
return emb
class CondEmbedding(nn.Module):
embedding_dim: int = 256
@nn.compact
def __call__(self, t, cond=None):
n_embd = int(self.embedding_dim)
temb = get_timestep_embedding(t, n_embd)
if cond is None:
cond_in = temb
else:
cond_in = jnp.concatenate([temb, cond], axis=-1)
h = nn.swish(nn.Dense(features=n_embd * 4, name='dense0')(cond_in))
h = nn.Dense(n_embd)(h)
return h
# Create small test tensors
batch_size = 2
embedding_dim = 8
t = jnp.arange(batch_size, dtype=jnp.int32)
cond = jnp.ones((batch_size, 4), dtype=jnp.float32)
# Build CondEmbedding instance
model = CondEmbedding(embedding_dim=embedding_dim)
# Initialize the model to get parameters
key = jax.random.PRNGKey(0)
params = model.init(key, t, cond)
ARGS = {
'embedding_dim': embedding_dim,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type CondEmbedding — 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 CondEmbedding 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
|
| GPT2LikeBackbone |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("fa4f07614837213f") 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, GPT2LikeBackbone: 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 jax
import jax.numpy as jnp
import flax.linen as nn
# Mock the gpt2_like module since it's imported in the function
class MockModelArgs:
def __init__(self, dim, n_layers, n_heads, output_channels, hidden_dim,
dropout_rate, use_attn_dropout, embed_input, n_embed_classes,
max_seq_len, causal):
self.dim = dim
self.n_layers = n_layers
self.n_heads = n_heads
self.output_channels = output_channels
self.hidden_dim = hidden_dim
self.dropout_rate = dropout_rate
self.use_attn_dropout = use_attn_dropout
self.embed_input = embed_input
self.n_embed_classes = n_embed_classes
self.max_seq_len = max_seq_len
self.causal = causal
class MockGPT2LikeTransformer(nn.Module):
args: MockModelArgs
def __call__(self, z, *, cond=None, train=False):
# Return output with same shape as input for testing
return z
# Create a mock gpt2_like module
class MockGPT2Like:
ModelArgs = MockModelArgs
GPT2LikeTransformer = MockGPT2LikeTransformer
import sys
from types import ModuleType
gpt2_like = MockGPT2Like()
sys.modules['gpt2_like'] = gpt2_like
# Now define the arguments for GPT2LikeBackbone
ARGS = {
'dim': 64,
'n_layers': 2,
'n_heads': 4,
'output_channels': 32,
'dropout_rate': 0.1,
'use_attn_dropout': True,
'embed_input': False,
'n_embed_classes': 10,
'hidden_dim': 128,
'max_seq_len': 512,
'causal': True,
}
# Create sample input tensors for the __call__ method
z = jnp.ones((2, 8, 64)) # batch_size=2, seq_len=8, dim=64
cond = None
train = False
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type GPT2LikeBackbone — 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 GPT2LikeBackbone 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
|
| TransformerBackbone |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("3aed381d5fd39965") 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, TransformerBackbone: 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 jax
import jax.numpy as jnp
import flax.linen as nn
# Create minimal stand-in transformer modules since they're imported but not defined
class MockModelArgs:
def __init__(self, dim, n_layers, n_heads, n_kv_heads, output_channels,
multiple_of, dropout_rate, depth_scaled_init, mlp_type,
cond_type, embed_input, n_embed_classes, use_attn_dropout=True):
self.dim = dim
self.n_layers = n_layers
self.n_heads = n_heads
self.n_kv_heads = n_kv_heads
self.output_channels = output_channels
self.multiple_of = multiple_of
self.dropout_rate = dropout_rate
self.depth_scaled_init = depth_scaled_init
self.mlp_type = mlp_type
self.cond_type = cond_type
self.embed_input = embed_input
self.n_embed_classes = n_embed_classes
self.use_attn_dropout = use_attn_dropout
class MockTransformer(nn.Module):
args: MockModelArgs
@nn.compact
def __call__(self, z, *, cond=None, train=False):
# Simple passthrough that returns output matching output_channels
batch_size = z.shape[0]
return jnp.zeros((batch_size, self.args.output_channels))
# Create mock transformer and sharded_transformer modules
class transformer:
ModelArgs = MockModelArgs
Transformer = MockTransformer
class sharded_transformer:
ModelArgs = MockModelArgs
Transformer = MockTransformer
# Inject into module namespace for the function to use
import sys
current_module = sys.modules[__name__]
sys.modules['transformer'] = transformer
sys.modules['sharded_transformer'] = sharded_transformer
# Create input tensors
z_input = jnp.ones((2, 4), dtype=jnp.float32) # batch_size=2, dim=4
cond_input = jnp.ones((2, 4), dtype=jnp.float32) # conditioning input
ARGS = {
'dim': 4,
'n_layers': 2,
'n_heads': 2,
'output_channels': 8,
'dropout_rate': 0.1,
'use_attn_dropout': True,
'mlp_type': 'swiglu',
'depth_scaled_init': False,
'cond_type': 'adaln',
'multiple_of': 32,
'embed_input': False,
'n_embed_classes': 1,
'sharded': False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type TransformerBackbone — 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 TransformerBackbone 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
|
| UNet5DBackbone |
Ran ran on a synthesized input · constructed an object; no result was computed |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("bd23e5eedd4dc824") 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, UNet5DBackbone: 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 jax
import jax.numpy as jnp
import flax.linen as nn
from collections.abc import Sequence
# Create minimal stand-in modules for unet and uvit since they're imported in the function
class MockUNet(nn.Module):
d_channels: int
n_layers: int
output_channels: int
dropout_rate: float = 0.0
@nn.compact
def __call__(self, h, *, cond=None, train: bool=False):
# Simple pass-through that reshapes to output_channels
batch_size = h.shape[0]
return jnp.ones((batch_size, self.output_channels))
class MockUNetDiT(nn.Module):
d_channels: int
n_layers: int
n_dit_layers: int
dit_num_heads: int
dit_hidden_size: int
ch_mult: Sequence[int]
output_channels: int
dropout_rate: float = 0.0
@nn.compact
def __call__(self, h, *, cond=None, train: bool=False):
# Simple pass-through that reshapes to output_channels
batch_size = h.shape[0]
return jnp.ones((batch_size, self.output_channels))
# Mock the uvit and unet modules
class unet:
@staticmethod
def UNet(**kwargs):
return MockUNet(**kwargs)
class uvit:
@staticmethod
def UNet(**kwargs):
return MockUNetDiT(**kwargs)
# Now define the UNet5DBackbone
class UNet5DBackbone(nn.Module):
feature_dim: int = 128
n_layers: int = 32
n_dit_layers: int = 0
dit_num_heads: int = 12
dit_hidden_size: int = 768
ch_mult: Sequence[int] = (1,)
output_channels: int = 256
dropout_rate: float = 0.0
@nn.compact
def __call__(self, z, *, cond=None, timesteps=None, train: bool=False):
del timesteps
h = z.reshape(list(z.shape)[:-2] + [-1])
if self.n_dit_layers > 0:
h = uvit.UNet(d_channels=self.feature_dim, n_layers=self.n_layers, n_dit_layers=self.n_dit_layers, dit_num_heads=self.dit_num_heads, dit_hidden_size=self.dit_hidden_size, ch_mult=self.ch_mult, output_channels=self.output_channels * z.shape[-2], dropout_rate=self.dropout_rate)(h, cond=cond, train=train)
else:
h = unet.UNet(d_channels=self.feature_dim, n_layers=self.n_layers, output_channels=self.output_channels * z.shape[-2], dropout_rate=self.dropout_rate)(h, cond=cond, train=train)
return h.reshape(list(z.shape)[:-1] + [self.output_channels])
# Create input tensors
batch_size = 2
spatial_dims = (4, 3) # Distinct sizes for different dimensions
z_input = jnp.ones((batch_size, *spatial_dims, 5)) # batch, spatial, spatial, channels
cond_input = jnp.ones((batch_size, 8))
timesteps_input = jnp.array([1, 2])
# Define ARGS dict with all parameters
ARGS = {
"feature_dim": 128,
"n_layers": 32,
"n_dit_layers": 0,
"dit_num_heads": 12,
"dit_hidden_size": 768,
"ch_mult": (1, 2),
"output_channels": 256,
"dropout_rate": 0.1,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type UNet5DBackbone — 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 UNet5DBackbone 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
|
| _build_anchor_base_table |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("c34ef8e9a5d32fec") 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 ArrayImpl, ndim 2, dtype family float, shape (8, 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 jax
import jax.numpy as jnp
from dataclasses import dataclass, field
# First, define the helper dataclasses that are used
@dataclass(frozen=True)
class AnchorTransformConfig:
center_columns: bool = False
whiten: bool = False
whiten_eps: float = 1e-05
equalize_row_norms: bool = False
target_row_norm: float | None = None
scale: float = 1.0
@dataclass(frozen=True)
class AnchorTableConfig:
family: str
vocab_size: int
anchor_dim: int
init_std: float = 1.0
seed: int | None = None
order_weight: float = 1.0
residual_weight: float = 1.0
projection_seed: int | None = None
pretrained_path: str | None = None
transform: AnchorTransformConfig = field(default_factory=AnchorTransformConfig)
normalize_at_use: bool = False
# Create a minimal AnchorTableConfig
config = AnchorTableConfig(
family="normal",
vocab_size=8,
anchor_dim=4,
init_std=1.0,
seed=42,
order_weight=1.0,
residual_weight=1.0,
projection_seed=None,
pretrained_path=None,
transform=AnchorTransformConfig(),
normalize_at_use=False
)
# Create dtype
dtype = jnp.float32
# Create optional rng (can be None since seed is provided)
rng = None
# Build the ARGS dict
ARGS = {
"config": config,
"dtype": dtype,
"rng": rng,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax, sticky — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (8, 4) — shape (8, 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
|
| _build_normal_table |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("e4f2364fcd5fcb29") 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 ArrayImpl, ndim 2, dtype family float, shape (10, 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 jax
import jax.numpy as jnp
ARGS = {
'vocab_size': 10,
'anchor_dim': 4,
'init_std': 0.1,
'seed': 42,
'rng': None,
'dtype': jnp.float32,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (10, 4) — shape (10, 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
|
| _build_ordered_normal_table |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("6420290ebf4f985e") 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 ArrayImpl, ndim 2, dtype family float, shape (8, 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 jax
import jax.numpy as jnp
ARGS = {
"vocab_size": 8,
"anchor_dim": 4,
"init_std": 0.1,
"seed": 42,
"rng": None,
"order_weight": 1.0,
"residual_weight": 0.5,
"dtype": jnp.float32,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (8, 4) — shape (8, 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
|
| _build_thermometer_table |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("8fe1d0200c6c7fdc") 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 ArrayImpl, ndim 2, dtype family float, shape (8, 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 jax
import jax.numpy as jnp
# Set seed for reproducibility
jax.config.update("jax_default_prng_impl", "threefry2x32")
ARGS = {
'vocab_size': 8,
'anchor_dim': 4,
'projection_seed': 42,
'seed': 123,
'rng': None,
'dtype': jnp.float32,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (8, 4) — shape (8, 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
|
| _ensure_positive_int |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("5afe865c9dd7af9f") 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 = {
'name': 'test_parameter',
'value': 5
}
- 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
|
| _fix_qr_signs |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("516260c9083287e7") 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 ArrayImpl, 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 jax.numpy as jnp
import numpy as np
# Create Q and R matrices from a QR decomposition
# Q should be (m, n) and R should be (n, n)
np.random.seed(0)
# Create a random matrix and decompose it
A = np.random.randn(4, 3).astype(np.float32)
q_np, r_np = np.linalg.qr(A)
# Convert to JAX arrays
q = jnp.array(q_np, dtype=jnp.float32)
r = jnp.array(r_np, dtype=jnp.float32)
ARGS = {
"q": q,
"r": r,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, 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
|
| _normalize_anchor_family |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("c6be70152c916cd4") 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 str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
from typing import Any
# Analyze the function:
# - It takes one parameter: value (type: Any)
# - It converts value to string, lowercases it
# - It looks up the result in _LEGACY_ANCHOR_FAMILY_ALIASES dict
# - It returns either the alias or the original family string
# Test with a simple string value that will trigger the legacy alias lookup
ARGS = {
'value': 'ordered_random_residual'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| _ordered_scalar_table |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("080c3f5e24a3cec7") 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 ArrayImpl, ndim 2, dtype family float, shape (10, 1) 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 jax.numpy as jnp
ARGS = {
"vocab_size": 10,
"dtype": jnp.float32,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (10, 1) — shape (10, 1) 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
|
| _orthogonal_projection_matrix |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("7f42b92d73d13496") 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 ArrayImpl, 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 jax
import jax.numpy as jnp
# Set random seed for reproducibility
key = jax.random.PRNGKey(42)
# Define arguments for _orthogonal_projection_matrix
ARGS = {
'input_dim': 4,
'output_dim': 3,
'key': key,
'dtype': jnp.float32,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, 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
|
| _resolve_random_key |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("2a01de39f445d6cf") 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 PRNGKeyArray. 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 jax
import jax.numpy as jnp
# Test case 1: with seed parameter
ARGS = {
'seed': 42,
'rng': None,
'context': 'test_context'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PRNGKeyArray — a PRNGKeyArray 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
|
| apply_anchor_transforms |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("ee63aedcb2ec88ab") 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 ArrayImpl, 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 jax.numpy as jnp
from dataclasses import dataclass
@dataclass(frozen=True)
class AnchorTransformConfig:
center_columns: bool = False
whiten: bool = False
whiten_eps: float = 1e-05
equalize_row_norms: bool = False
target_row_norm: float | None = None
scale: float = 1.0
# Create a small 2D table (4 rows, 3 columns)
table = jnp.array([
[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[7.0, 8.0, 9.0],
[10.0, 11.0, 12.0]
], dtype=jnp.float32)
# Create a transform config with various options
transform = AnchorTransformConfig(
center_columns=True,
whiten=False,
whiten_eps=1e-05,
equalize_row_norms=False,
target_row_norm=None,
scale=1.0
)
ARGS = {
"table": table,
"transform": transform,
"include_scale": True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, 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
|
| build_image_backbone |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("2d12e0499673c1de") 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 UNet5DBackbone. 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 numpy as np
from collections.abc import Sequence
torch.manual_seed(0)
ARGS = {
'name': 'unet5d',
'feature_dim': 128,
'n_layers': 32,
'n_dit_layers': 0,
'dit_num_heads': 12,
'dit_hidden_size': 768,
'ch_mult': (1, 2, 2, 2),
'vocab_size': 256,
'dropout_rate': 0.1,
'adm_num_res_blocks': 2,
'adm_attention_resolutions': (2, 4, 8),
'adm_num_heads': 4,
'adm_num_head_channels': -1,
'adm_num_heads_upsample': -1,
'adm_conv_resample': True,
'adm_use_scale_shift_norm': True,
'adm_resblock_updown': False,
'adm_use_conv_skip': False,
'adm_use_new_attention_order': False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type UNet5DBackbone — a UNet5DBackbone output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a UNet5DBackbone 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
|
| build_image_token_backbone |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("167e47522ac8e61e") 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 UNet5DBackbone. 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 jax
import jax.numpy as jnp
import flax.linen as nn
from collections.abc import Sequence
torch.manual_seed(0)
ARGS = {
'name': 'unet5d',
'feature_dim': 128,
'n_layers': 4,
'n_dit_layers': 0,
'dit_num_heads': 8,
'dit_hidden_size': 256,
'ch_mult': (1, 2),
'output_channels': 64,
'dropout_rate': 0.1,
'adm_num_res_blocks': 2,
'adm_attention_resolutions': (2, 4),
'adm_num_heads': 4,
'adm_num_head_channels': -1,
'adm_num_heads_upsample': -1,
'adm_conv_resample': True,
'adm_use_scale_shift_norm': True,
'adm_resblock_updown': False,
'adm_use_conv_skip': False,
'adm_use_new_attention_order': False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type UNet5DBackbone — a UNet5DBackbone output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a UNet5DBackbone 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
|
| build_sequence_backbone |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("2ed6486c99d47169") 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 TransformerBackbone. 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 jax
import jax.numpy as jnp
import flax.linen as nn
# Set seed for reproducibility
jax.config.update('jax_platform_name', 'cpu')
ARGS = {
'name': 'transformer',
'feature_dim': 4,
'num_heads': 2,
'n_layers': 2,
'vocab_size': 128,
'dropout_rate': 0.1,
'use_attn_dropout': True,
'mlp_type': 'swiglu',
'depth_scaled_init': False,
'cond_type': 'adaln',
'model_sharding': False,
'embed_input': False,
'n_embed_classes': 1,
'hidden_dim': None,
'max_seq_len': None,
'causal': False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type TransformerBackbone — a TransformerBackbone output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TransformerBackbone 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
|
| ensure_prng_key |
Ran ran, honoured the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("3e93ef0ec437a8fe") 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 PRNGKeyArray. 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 jax
import jax.numpy as jnp
import numpy as np
# Test case 1: Legacy PRNG key (shape (2,) and uint32 dtype)
legacy_key = jnp.array([1, 2], dtype=jnp.uint32)
# Test case 2: Modern PRNG key (wrapped key from jax.random)
modern_key = jax.random.key(0)
# Test case 3: Non-key object (should pass through)
non_key = np.array([1, 2, 3])
# We'll test with the legacy key as the main argument
ARGS = {
"key": legacy_key
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PRNGKeyArray — a PRNGKeyArray output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_timestep_embedding |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("c745ab05bfebae0f") 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 ArrayImpl, ndim 2, dtype family float, shape (4, 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 jax.numpy as jnp
import jax
# Analyze the function:
# - timesteps: needs to be a JAX array that can be indexed with [:, None]
# - embedding_dim: int > 2
# - dtype: string for data type
# Create small test inputs
timesteps = jnp.array([0, 1, 2, 3], dtype='int32')
embedding_dim = 8
dtype = 'float32'
ARGS = {
'timesteps': timesteps,
'embedding_dim': embedding_dim,
'dtype': dtype
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (4, 8) — shape (4, 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
|
| is_legacy_prng_key |
Ran ran, violated the contract we drafted |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("8259f904c275422c") 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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import jax.numpy as jnp
import numpy as np
# Test case 1: Valid legacy PRNG key
legacy_key = jnp.array([1, 2], dtype=jnp.uint32)
# Test case 2: Invalid - wrong shape
wrong_shape_key = jnp.array([1, 2, 3], dtype=jnp.uint32)
# Test case 3: Invalid - wrong dtype
wrong_dtype_key = jnp.array([1, 2], dtype=jnp.float32)
# Test case 4: Non-array object with shape and dtype attributes
class FakeKey:
def __init__(self, shape, dtype):
self.shape = shape
self.dtype = dtype
fake_legacy_key = FakeKey((2,), jnp.uint32)
# Use the valid legacy key as the primary test case
ARGS = {
'key': legacy_key
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_rng |
Ran ran; our contract draft was wrong, not the code |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("8c488adb5d774452") 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 PRNGKeyArray. 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 jax
import jax.random
def make_rng(seed: int) -> jax.Array:
return jax.random.key(int(seed))
ARGS = {
"seed": 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PRNGKeyArray — a PRNGKeyArray 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
|
| ContinuousClassifier |
Not yet run unverified (harvested, no recorded run) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("a294689d80789bf8") How it ran |
| SJD |
Not yet run unverified (harvested, no recorded run) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("1567f3ac4ab019fa") How it ran |
| TokenAnchors |
Not yet run unverified (harvested, no recorded run) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("3f808af3160da607") How it ran |
| build_anchor_table |
Not yet run unverified (harvested, no recorded run) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("52c85732bc945a66") How it ran |
| build_anchor_table_views |
Not yet run unverified (harvested, no recorded run) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("42775dc395520729") How it ran |
| make_anchor_initializer |
Not yet run unverified (harvested, no recorded run) |
PascalJD/sticky-jump-diffusions/src/sticky/models/sjd/sjd_model.py code served (permissive licence) · get_code("c47b08f3f14b8400") How it ran |