| CuteTTSSegment |
Ran ran on a synthesized input · constructed an object; no result was computed |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("187a451fefb2d125") 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 CuteTTSSegment: the class was constructed and called, and the call returned an instance of its own class. 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
# CuteTTSSegment is a dataclass, so INIT_ARGS maps to its fields
batch_size = 2
seq_length = 8
audio_length = 12
feature_dim = 4
semantic_dim = 6
INIT_ARGS = {
'input_ids': torch.randint(0, 100, (batch_size, seq_length)),
'speech_tensor': torch.randn(batch_size, audio_length, feature_dim),
'speech_mask': torch.rand(batch_size, audio_length) > 0.5,
'speech_pad_mask': torch.rand(batch_size, audio_length) > 0.3,
'speech_semantic_tensor': torch.randn(batch_size, audio_length, semantic_dim),
'speaker_linear_mask': torch.rand(batch_size, seq_length) > 0.4,
}
# The class doesn't have a forward or __call__ method for computation
# We'll test the .to() method and properties
METHOD = 'to'
ARGS = {'device': 'cpu', 'dtype': torch.float32}
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type CuteTTSSegment — the call returned an instance of its own class, which has no array shape; none is stated — the instrument coerces any output to an array; for a CuteTTSSegment 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| LocalFeedForward |
Ran ran on a synthesized input |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("7364ec9a6dfd6880") 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
from torch import Tensor
import torch.nn.functional as F
class LocalFeedForward(nn.Module):
def __init__(self, hidden_dim: int, ffn_dim: int):
super().__init__()
self.gate_proj = nn.Linear(hidden_dim, ffn_dim, bias=False)
self.up_proj = nn.Linear(hidden_dim, ffn_dim, bias=False)
self.down_proj = nn.Linear(ffn_dim, hidden_dim, bias=False)
def forward(self, x: Tensor) -> Tensor:
return self.down_proj(F.silu(self.gate_proj(x)) * self.up_proj(x))
INIT_ARGS = {
'hidden_dim': 4,
'ffn_dim': 6,
}
ARGS = {
'x': torch.randn(2, 4),
}
if __name__ == '__main__':
model = LocalFeedForward(**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, 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)
|
| LocalSelfAttention |
Ran ran on a synthesized input |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("9c44ded88213aa9f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from torch import Tensor
import torch.nn.functional as F
def _apply_local_rope(query: Tensor, key: Tensor, theta: float) -> tuple[Tensor, Tensor]:
head_dim = query.size(-1)
if head_dim % 2 != 0:
raise ValueError(f'RoPE requires an even head_dim, got {head_dim}.')
seq_len = query.size(-2)
inv_freq = 1.0 / float(theta) ** (torch.arange(0, head_dim, 2, device=query.device, dtype=torch.float32) / head_dim)
positions = torch.arange(seq_len, device=query.device, dtype=torch.float32)
freqs = positions[:, None] * inv_freq[None, :]
emb = torch.cat((freqs, freqs), dim=-1)
cos = emb.cos()
sin = emb.sin()
view_shape = (1, 1, seq_len, head_dim)
cos = cos.view(view_shape)
sin = sin.view(view_shape)
orig_dtype = query.dtype
query = query.to(torch.float32)
key = key.to(torch.float32)
return ((query * cos + _rotate_half(query) * sin).to(orig_dtype), (key * cos + _rotate_half(key) * sin).to(orig_dtype))
def _rotate_half(x: Tensor) -> Tensor:
x1, x2 = x.chunk(2, dim=-1)
return torch.cat((-x2, x1), dim=-1)
class LocalSelfAttention(nn.Module):
def __init__(self, hidden_dim: int, num_heads: int, num_kv_heads: int, use_rope: bool=True, rope_theta: float=10000.0):
super().__init__()
if hidden_dim % num_heads != 0:
raise ValueError('hidden_dim must be divisible by num_heads.')
if num_heads % num_kv_heads != 0:
raise ValueError('num_heads must be divisible by num_kv_heads.')
self.hidden_dim = int(hidden_dim)
self.num_heads = int(num_heads)
self.num_kv_heads = int(num_kv_heads)
self.head_dim = self.hidden_dim // self.num_heads
self.kv_dim = self.num_kv_heads * self.head_dim
self.use_rope = bool(use_rope)
self.rope_theta = float(rope_theta)
if self.use_rope:
if self.head_dim % 2 != 0:
raise ValueError(f'RoPE requires an even head_dim, got {self.head_dim}.')
if self.rope_theta <= 0.0:
raise ValueError('rope_theta must be positive.')
self.q_proj = nn.Linear(self.hidden_dim, self.hidden_dim, bias=False)
self.k_proj = nn.Linear(self.hidden_dim, self.kv_dim, bias=False)
self.v_proj = nn.Linear(self.hidden_dim, self.kv_dim, bias=False)
self.o_proj = nn.Linear(self.hidden_dim, self.hidden_dim, bias=False)
def forward(self, hidden_states: Tensor) -> Tensor:
bsz, seq_len, _ = hidden_states.shape
query = self.q_proj(hidden_states).view(bsz, seq_len, self.num_heads, self.head_dim)
key = self.k_proj(hidden_states).view(bsz, seq_len, self.num_kv_heads, self.head_dim)
value = self.v_proj(hidden_states).view(bsz, seq_len, self.num_kv_heads, self.head_dim)
query = query.transpose(1, 2)
key = key.transpose(1, 2)
value = value.transpose(1, 2)
if self.use_rope:
query, key = _apply_local_rope(query, key, self.rope_theta)
if self.num_kv_heads != self.num_heads:
repeat = self.num_heads // self.num_kv_heads
key = key.repeat_interleave(repeat, dim=1)
value = value.repeat_interleave(repeat, dim=1)
attn_output = F.scaled_dot_product_attention(query, key, value, is_causal=False)
attn_output = attn_output.transpose(1, 2).contiguous().view(bsz, seq_len, self.hidden_dim)
return self.o_proj(attn_output)
INIT_ARGS = {
'hidden_dim': 8,
'num_heads': 2,
'num_kv_heads': 2,
'use_rope': True,
'rope_theta': 10000.0,
}
ARGS = {
'hidden_states': torch.randn(2, 3, 8),
}
if __name__ == '__main__':
model = LocalSelfAttention(**INIT_ARGS)
output = model(**ARGS)
print(f'Output shape: {output.shape}')
print(f'Expected shape: (2, 3, 8)')
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| LocalTransformerLayer |
Ran ran on a synthesized input |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("a70c868f8f34eaa1") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
# INIT_ARGS for LocalTransformerLayer.__init__
INIT_ARGS = {
'hidden_dim': 8,
'ffn_dim': 16,
'num_heads': 4,
'num_kv_heads': 2,
'rms_norm_eps': 1e-6,
'use_rope': True,
'rope_theta': 10000.0,
'speaker_adaln_zero_enabled': True,
'speaker_embedding_dim': 12
}
# ARGS for LocalTransformerLayer.forward
# The forward method signature needs to be inferred from the class
# Looking at the class, forward is not explicitly defined, so we need to check what it expects
# Based on LocalSelfAttention.forward, it takes hidden_states: Tensor
# LocalFeedForward.forward takes x: Tensor
# The layer likely takes hidden_states and optionally speaker_embedding if adaln is enabled
# Since forward is not shown in the snippet but _modulate is defined with shift/scale,
# and speaker_adaln projects to 6 * hidden_dim, this suggests the forward takes
# hidden_states and optionally speaker_embedding
# Let me construct based on typical transformer layer patterns with adaln:
# forward(hidden_states, speaker_embedding=None)
batch_size = 2
seq_len = 5
hidden_dim = INIT_ARGS['hidden_dim']
speaker_embedding_dim = INIT_ARGS['speaker_embedding_dim']
ARGS = {
'hidden_states': torch.randn(batch_size, seq_len, hidden_dim),
'speaker_embedding': torch.randn(batch_size, speaker_embedding_dim)
}
- Setup block drafted by
- a language model, class construct-then-call prompt, model not recorded
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| SinusoidalPosEmb |
Ran ran on a synthesized input |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("4cb53cc2981a7acd") 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 (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 torch
import torch.nn as nn
from torch import Tensor
import math
class SinusoidalPosEmb(nn.Module):
def __init__(self, dim: int):
super().__init__()
if dim % 2 != 0:
raise ValueError('SinusoidalPosEmb requires an even dimension.')
self.dim = int(dim)
def forward(self, x: Tensor, scale: float=1000.0) -> Tensor:
if x.ndim < 1:
x = x.unsqueeze(0)
half_dim = self.dim // 2
emb = math.log(10000) / (half_dim - 1)
emb = torch.exp(torch.arange(half_dim, dtype=x.dtype, device=x.device) * -emb)
emb = scale * x.unsqueeze(1) * emb.unsqueeze(0)
return torch.cat((emb.sin(), emb.cos()), dim=-1)
INIT_ARGS = {
'dim': 8
}
ARGS = {
'x': torch.tensor([0.0, 1.0, 2.0, 3.0]),
'scale': 1000.0
}
model = SinusoidalPosEmb(**INIT_ARGS)
output = model(**ARGS)
- 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 (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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| TimestepEmbedding |
Ran ran on a synthesized input |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("a828baaee7c14acd") 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
from torch import Tensor
class TimestepEmbedding(nn.Module):
def __init__(self, channels: int):
super().__init__()
self.linear_1 = nn.Linear(channels, channels, bias=True)
self.act = nn.SiLU()
self.linear_2 = nn.Linear(channels, channels, bias=True)
def forward(self, sample: Tensor) -> Tensor:
return self.linear_2(self.act(self.linear_1(sample)))
INIT_ARGS = {
"channels": 4,
}
ARGS = {
"sample": torch.randn(2, 4),
}
if __name__ == "__main__":
model = TimestepEmbedding(**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, 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)
|
| _apply_local_rope |
Ran ran; our contract draft was wrong, not the code |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("05ef73565bb65fa8") 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 5, 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)
# Create small tensors for query and key
# head_dim must be even (required by the function)
# seq_len is the sequence length dimension
batch_size = 2
seq_len = 3
head_dim = 4
query = torch.randn(batch_size, 1, seq_len, head_dim, dtype=torch.float32)
key = torch.randn(batch_size, 1, seq_len, head_dim, dtype=torch.float32)
theta = 10000.0
ARGS = {
"query": query,
"key": key,
"theta": theta,
}
- 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 5, 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
|
| _rotate_half |
Ran ran; our contract draft was wrong, not the code |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("f8e2b29c6cb080e2") 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, 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 Tensor
torch.manual_seed(0)
# The function _rotate_half takes a tensor x and:
# 1. Chunks it into 2 parts along the last dimension
# 2. Rearranges them as (-x2, x1)
# So we need a tensor with an even last dimension
x = torch.randn(2, 4)
ARGS = {
"x": x
}
- 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, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| euler |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("a719808df278203a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (1, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)
# Define a simple forward function that takes (x, t, c) and returns velocity
class MockForwardFn(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 4)
def forward(self, x, t, c):
# x shape: (batch, input_dim)
# t shape: (batch,)
# c shape: (batch, context_dim)
# returns velocity with same shape as x
batch_size = x.shape[0]
return torch.randn(batch_size, x.shape[1], device=x.device)
# Create mock objects
input_dim = 4
forward_fn = MockForwardFn()
c = torch.randn(2, 5) # batch=2, context_dim=5
cfg = 0.5
num_sampling_steps = 3
ARGS = {
'input_dim': input_dim,
'forward_fn': forward_fn,
'c': c,
'cfg': cfg,
'num_sampling_steps': num_sampling_steps
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (1, 4) — shape (1, 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
|
| euler_step |
Ran ran; our contract draft was wrong, not the code |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("18f99b938b96e2b6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 small tensors for x and v
# x: position tensor, shape (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4, dtype=torch.float32)
# v: velocity tensor
# Since cfg_mult=2, the function chunks v in half along dim 0
# So v should have shape (4, 4) to get 2 chunks of (2, 4) each
v = torch.randn(4, 4, dtype=torch.float32)
# dt: time step (float)
dt = 0.01
# cfg: classifier-free guidance scale (float)
cfg = 7.5
# cfg_mult: multiplier for chunking (int)
cfg_mult = 2
ARGS = {
'x': x,
'v': v,
'dt': dt,
'cfg': cfg,
'cfg_mult': cfg_mult
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| euler_step_eager |
Ran ran; our contract draft was wrong, not the code |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("e97ee7453086d750") 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, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 small tensors for the function
# x: input tensor that gets updated
x = torch.randn(2, 4, dtype=torch.float32)
# v: velocity tensor - will be chunked if cfg_mult == 2
# For cfg_mult=2, it needs to be chunked into 2 parts, so batch size should be 4
v = torch.randn(4, 4, dtype=torch.float32)
# dt: time step (float)
dt = 0.1
# cfg: classifier-free guidance scale (float)
cfg = 7.5
# cfg_mult: multiplier for conditional/unconditional split
cfg_mult = 2
ARGS = {
"x": x,
"v": v,
"dt": dt,
"cfg": cfg,
"cfg_mult": cfg_mult,
}
- 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, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_sampler_compile_mode |
Ran ran on a synthesized input |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("f3b12f7bd9cccfb0") 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
_sampler_compile_mode = 'full-sampler'
def get_sampler_compile_mode() -> str:
return _sampler_compile_mode
ARGS = {}
- 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 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
|
| get_velocity_from_cfg |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("fff6ad04f633569d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create a small velocity tensor with batch size 4, feature dim 5
# The function chunks this by 2 on dim 0, so we need batch size divisible by 2
velocity = torch.randn(4, 5)
# cfg is a scaling factor (float)
cfg = 1.5
# cfg_mult is an integer that determines behavior
cfg_mult = 2
ARGS = {
"velocity": velocity,
"cfg": cfg,
"cfg_mult": cfg_mult,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 5) — shape (2, 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
|
| AudioDiTHead |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("4ba93031880f5b69") How it ran |
| AudioLocEnc |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("ced1bcb4a06932e5") How it ran |
| CuteTTSConfig |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("b0b8a11bf04a6a75") How it ran |
| CuteTTSModel |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("615520cdec485bb5") How it ran |
| LocalTransformer |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("4c890b0690facc38") How it ran |
| _euler_sway |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("0b64e10524ba36f9") How it ran |
| sway_timesteps |
Not yet run unverified (harvested, no recorded run) |
OPPO-Mente-Lab/CuteTTS/src/cutetts/modeling/model.py code served (permissive licence) · get_code("b99733d67a9964ce") How it ran |