| read_jsonl |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/eval/eval_latent_model_hf_batch.py code served (permissive licence) · get_code("3d5343ae289698e8") How it ranRan in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:24:19Z). 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 tempfile
import json
import os
# Create a temporary JSONL file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.jsonl")
test_data = [
{"id": 1, "text": "hello world"},
{"id": 2, "text": "foo bar"},
{"id": 3, "text": "test data"}
]
with open(temp_file, 'w', encoding='utf-8') as f:
for item in test_data:
f.write(json.dumps(item) + '\n')
ARGS = {
"file_path": temp_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, 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
|
| ChoicesDecision |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("f2a92a4585b27cb4") 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, ChoicesDecision: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from typing import Any, Callable, Dict, List, Optional
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass
class ChoicesDecision:
decision: str
meta_info: Optional[Dict[str, Any]] = None
ARGS = {
"decision": "option_a",
"meta_info": {
"confidence": 0.95,
"reasoning": "based on analysis",
"timestamp": 1234567890,
"scores": [0.1, 0.2, 0.3],
}
}
- 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 ChoicesDecision — 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 ChoicesDecision 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
|
| GlobalConfig |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("f07a9b93098407c2") 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, GlobalConfig: 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 os
import torch
import torch.nn as nn
# Set seed for reproducibility
torch.manual_seed(0)
# The GlobalConfig.__init__ method doesn't take any parameters other than self,
# so ARGS should be empty or not applicable. However, to be thorough and follow
# the instruction to map EVERY parameter, we note that __init__ takes only 'self'.
# Since there are no constructor parameters to pass, ARGS is an empty dict.
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 GlobalConfig — 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 GlobalConfig 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
|
| SglConcateAndAppend |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("a28a276fd0bbf4c8") 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, SglConcateAndAppend: 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
torch.manual_seed(0)
# First, reset the node counter to ensure clean state
from typing import Any, Callable, Dict, List, Optional
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list: List[SglExpr]):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglConcateAndAppend(SglExpr):
def __init__(self, states):
super().__init__()
self.states = states
def __repr__(self):
return f"ConcatenateAndAppend('{self.states}')"
# Create valid states argument - can be a string, list, or dict representing states
states = "state_1,state_2,state_3"
# Construct ARGS dictionary
ARGS = {
"states": states
}
- 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 SglConcateAndAppend — 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 SglConcateAndAppend 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
|
| SglConstantText |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("a0f4d08be2f1739a") 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, SglConstantText: 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
# Reset the node counter to ensure clean state
from typing import Any, Callable, Dict, List, Optional
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list: List[SglExpr]):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
# Reset node counter for clean test
SglExpr.node_ct = 0
# Create a simple constant text value
ARGS = {
"value": "Hello, world!"
}
- 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 SglConstantText — 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 SglConstantText 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
|
| SglExprList |
Ran ran on a synthesized input |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("6d89c4a7fc983fc4") 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 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, Callable, Dict, List, Optional
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglExprList(SglExpr):
def __init__(self, expr_list: List[SglExpr]):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
INIT_ARGS = {
'expr_list': [
SglConstantText('hello'),
SglConstantText('world'),
SglConstantText('test')
]
}
ARGS = {}
METHOD = 'print_graph_dfs'
if __name__ == '__main__':
SglExpr.node_ct = 0
instance = SglExprList(**INIT_ARGS)
result = instance.print_graph_dfs()
print(result)
- 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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| SglFork |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("1992c5d2f9475c9b") 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, SglFork: 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
torch.manual_seed(0)
# SglFork.__init__ takes parameters: self, number, and position_ids_offset
# Looking at the class definition:
# - number: int - required parameter
# - position_ids_offset: optional parameter with default None
ARGS = {
"number": 3,
"position_ids_offset": None,
}
- 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 SglFork — 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 SglFork 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
|
| SglGetForkItem |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("4894ce4f6523a387") 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, SglGetForkItem: 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.
# Define all the SglExpr classes first
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglVariable(SglExpr):
def __init__(self, name, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglGetForkItem(SglExpr):
def __init__(self, index):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
# Reset node counter for clean setup
SglExpr.node_ct = 0
# Create a simple fork node to serve as prev_node
fork_node = SglFork(number=3)
# Create the SglGetForkItem with required index parameter
get_fork_item = SglGetForkItem(index=1)
get_fork_item.prev_node = fork_node
ARGS = {
'index': 1
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type SglGetForkItem — 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 SglGetForkItem 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
|
| SglImage |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("272ec36e18437412") 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, SglImage: 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 typing import Any, Callable, Dict, List, Optional
# Reset the node counter for clean state
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list: List[SglExpr]):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglImage(SglExpr):
def __init__(self, path: str):
super().__init__()
self.path = path
def __repr__(self) -> str:
return f'SglImage({self.path})'
ARGS = {
'path': '/tmp/test_image.jpg'
}
- 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 SglImage — 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 SglImage 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
|
| SglRoleBegin |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("d934fb4b3debf847") 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, SglRoleBegin: 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 typing import Any, Callable, Dict, List, Optional
# Reset the node counter for clean execution
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list: List[SglExpr]):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglRoleBegin(SglExpr):
def __init__(self, role: str):
super().__init__()
self.role = role
def __repr__(self):
return f'RoleBegin({self.role})'
# Reset counter for test
SglExpr.node_ct = 0
# Construct valid arguments for SglRoleBegin
ARGS = {
'role': 'assistant'
}
- 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 SglRoleBegin — 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 SglRoleBegin 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
|
| SglRoleEnd |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("141d77acae0e5e36") 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, SglRoleEnd: 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
torch.manual_seed(0)
# SglRoleEnd has a single parameter: role (a string)
ARGS = {
"role": "assistant"
}
- 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 SglRoleEnd — 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 SglRoleEnd 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
|
| SglSamplingParams |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("7cbba3b173e2cbc9") 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, SglSamplingParams: 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 warnings
from typing import Any, Callable, Dict, List, Optional
import dataclasses
from typing import List, Optional, Union
@dataclasses.dataclass
class SglSamplingParams:
max_new_tokens: int = 128
min_new_tokens: int = 0
n: int = 1
stop: Union[str, List[str]] = ()
stop_token_ids: Optional[List[int]] = ()
temperature: float = 1.0
top_p: float = 1.0
top_k: int = -1
min_p: float = 0.0
frequency_penalty: float = 0.0
presence_penalty: float = 0.0
ignore_eos: bool = False
return_logprob: Optional[bool] = None
logprob_start_len: Optional[int] = (None,)
top_logprobs_num: Optional[int] = (None,)
return_text_in_logprobs: Optional[bool] = (None,)
json_schema: Optional[str] = None
dtype: Optional[str] = None
regex: Optional[str] = None
def clone(self):
return SglSamplingParams(self.max_new_tokens, self.min_new_tokens, self.n, self.stop, self.stop_token_ids, self.temperature, self.top_p, self.top_k, self.min_p, self.frequency_penalty, self.presence_penalty, self.ignore_eos, self.return_logprob, self.logprob_start_len, self.top_logprobs_num, self.return_text_in_logprobs, self.json_schema)
def to_openai_kwargs(self):
if self.regex is not None:
warnings.warn('Regular expression is not supported in the OpenAI backend.')
return {'max_tokens': self.max_new_tokens, 'max_completion_tokens': self.max_new_tokens, 'n': self.n, 'stop': self.stop or None, 'temperature': self.temperature, 'top_p': self.top_p, 'frequency_penalty': self.frequency_penalty, 'presence_penalty': self.presence_penalty}
def to_vertexai_kwargs(self):
if self.regex is not None:
warnings.warn('Regular expression is not supported in the VertexAI backend.')
return {'candidate_count': 1, 'max_output_tokens': self.max_new_tokens, 'stop_sequences': self.stop, 'temperature': self.temperature, 'top_p': self.top_p, 'top_k': self.top_k if self.top_k > 0 else None}
def to_anthropic_kwargs(self):
if self.regex is not None:
warnings.warn('Regular expression is not supported in the Anthropic backend.')
return {'max_tokens': self.max_new_tokens, 'stop_sequences': self.stop if isinstance(self.stop, (list, tuple)) else [self.stop], 'temperature': self.temperature, 'top_p': self.top_p, 'top_k': self.top_k}
def to_litellm_kwargs(self):
if self.regex is not None:
warnings.warn('Regular expression is not supported in the LiteLLM backend.')
return {'max_tokens': self.max_new_tokens, 'stop': self.stop or None, 'temperature': self.temperature, 'top_p': self.top_p, 'frequency_penalty': self.frequency_penalty, 'presence_penalty': self.presence_penalty}
def to_srt_kwargs(self):
return {'max_new_tokens': self.max_new_tokens, 'min_new_tokens': self.min_new_tokens, 'n': self.n, 'stop': self.stop, 'stop_token_ids': self.stop_token_ids, 'temperature': self.temperature, 'top_p': self.top_p, 'top_k': self.top_k, 'min_p': self.min_p, 'frequency_penalty': self.frequency_penalty, 'presence_penalty': self.presence_penalty, 'ignore_eos': self.ignore_eos, 'regex': self.regex, 'json_schema': self.json_schema}
ARGS = {
'max_new_tokens': 256,
'min_new_tokens': 10,
'n': 2,
'stop': ['</s>', '[END]'],
'stop_token_ids': [50256, 50257],
'temperature': 0.7,
'top_p': 0.95,
'top_k': 50,
'min_p': 0.01,
'frequency_penalty': 0.5,
'presence_penalty': 0.3,
'ignore_eos': False,
'return_logprob': True,
'logprob_start_len': 5,
'top_logprobs_num': 3,
'return_text_in_logprobs': True,
'json_schema': '{"type": "object", "properties": {"name": {"type": "string"}}}',
'dtype': 'float32',
'regex': r'^[a-z]+$'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type SglSamplingParams — 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 SglSamplingParams 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
|
| SglSelect |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("b6fe779807130708") 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, SglSelect: 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 typing import List, Any, Optional, Dict
# Define a minimal ChoicesSamplingMethod implementation
class MinimalChoicesSamplingMethod:
@property
def requires_unconditional_logprobs(self) -> bool:
return False
def __call__(self, *, choices: List[str], normalized_prompt_logprobs: List[float],
input_token_logprobs: List[List[Any]], output_token_logprobs: List[List[Any]],
unconditional_token_logprobs: Optional[List[List[Any]]] = None):
# Simple method that selects first choice
from dataclasses import dataclass
@dataclass
class ChoicesDecision:
decision: str
meta_info: Optional[Dict[str, Any]] = None
return ChoicesDecision(decision=choices[0], meta_info={"selected_idx": 0})
# Create arguments for SglSelect
ARGS = {
"name": "test_select",
"choices": ["option_a", "option_b", "option_c"],
"temperature": 0.7,
"choices_method": MinimalChoicesSamplingMethod()
}
- 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 SglSelect — 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 SglSelect 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
|
| SglVarScopeBegin |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("f9fcad6f82d96bee") 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, SglVarScopeBegin: 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.
# First, define all the SglExpr classes as provided in the function signature
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglVarScopeBegin(SglExpr):
def __init__(self, name):
super().__init__()
self.name = name
def __repr__(self):
return f"VarScopeBegin('{self.name}')"
# Now create valid arguments for SglVarScopeBegin
ARGS = {
"name": "my_scope"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type SglVarScopeBegin — 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 SglVarScopeBegin 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
|
| SglVarScopeEnd |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("8d5b46295206213f") 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, SglVarScopeEnd: 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.
# First, reset the node counter for clean state
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglVarScopeEnd(SglExpr):
def __init__(self, name: str):
super().__init__()
self.name = name
def __repr__(self):
return f"VarScopeEnd('{self.name}')"
# Reset node counter for reproducibility
SglExpr.node_ct = 0
# Create valid arguments for SglVarScopeEnd
ARGS = {
"name": "test_scope"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type SglVarScopeEnd — 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 SglVarScopeEnd 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
|
| SglVariable |
Ran ran on a synthesized input · constructed an object; no result was computed |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("df225de66b6b5bbc") 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, SglVariable: 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
# Reset the node counter to have predictable node IDs
from typing import List
class SglExpr:
node_ct = 0
def __init__(self):
self.node_id = SglExpr.node_ct
self.prev_node = None
self.pid = None
SglExpr.node_ct += 1
def __add__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr)
return self.concatenate_ir(self, other)
def __radd__(self, other):
if isinstance(other, str):
other = SglConstantText(other)
assert isinstance(other, SglExpr), f'{other}'
return self.concatenate_ir(other, self)
def concatenate_ir(self, a, b):
if isinstance(a, SglExprList):
if isinstance(b, SglExprList):
return SglExprList(a.expr_list + b.expr_list)
else:
return SglExprList(a.expr_list + [b])
elif isinstance(b, SglExprList):
return SglExprList([a] + b.expr_list)
return SglExprList([a, b])
def print_graph_dfs(self):
ret = ['']
visited = set()
def dfs_print(x):
if x is None or x in visited:
return
visited.add(x)
if x.prev_node is not None:
dfs_print(x.prev_node)
if isinstance(x, SglExprList):
for y in x.expr_list:
dfs_print(y)
elif isinstance(x, SglVariable):
dfs_print(x.source)
if isinstance(x, (SglFork, SglGetForkItem)):
ret[0] += f'%{x.node_id} = {x}\n'
elif x.prev_node is not None:
ret[0] += f'%{x.node_id} = %{x.prev_node.node_id} + ' + str(x) + '\n'
else:
ret[0] += f'%{x.node_id} = ' + str(x) + '\n'
dfs_print(self)
return ret[0]
class SglExprList(SglExpr):
def __init__(self, expr_list: List[SglExpr]):
super().__init__()
self.expr_list = expr_list
def __repr__(self):
return f'ExprList({self.expr_list})'
class SglFork(SglExpr):
def __init__(self, number: int, position_ids_offset=None):
super().__init__()
self.number = number
self.position_ids_offset = position_ids_offset
def __repr__(self):
return f'Fork(%{self.prev_node.node_id}, number={self.number}, position_ids_offset={self.position_ids_offset})'
class SglGetForkItem(SglExpr):
def __init__(self, index: int):
super().__init__()
self.index = index
def __repr__(self):
return f'GetForkItem(%{self.prev_node.node_id}, index={self.index})'
class SglConstantText(SglExpr):
def __init__(self, value: str):
super().__init__()
self.value = value
def __repr__(self):
return f'Constant({repr(self.value)})'
class SglVariable(SglExpr):
def __init__(self, name: str, source):
super().__init__()
self.name = name
self.source = source
def __repr__(self):
return f"Variable('{self.name}', source=%{self.source.node_id})"
# Reset node counter for clean state
SglExpr.node_ct = 0
# Create a simple source expression
source_expr = SglConstantText("hello world")
ARGS = {
"name": "my_variable",
"source": source_expr,
}
- 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 SglVariable — 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 SglVariable 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
|
| SglVideo |
Ran ran on a synthesized input |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("d2f68cf2d32ed644") 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 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
# INIT_ARGS for SglVideo.__init__
INIT_ARGS = {
'path': '/path/to/video.mp4',
'num_frames': 8
}
# SglVideo doesn't have a computation method like forward or __call__
# It's a data container class that just stores path and num_frames
# We'll call __repr__ to demonstrate it works
METHOD = '__repr__'
# ARGS for __repr__ method (which takes no arguments beyond self)
ARGS = {}
- 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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
|
| benchmark_sequential_vs_batch |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/benchmark_batch/benchmark_tokenizer.py code served (permissive licence) · get_code("64f004b9216b7322") 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 dict. 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 time
from statistics import mean
class MockTokenizer:
"""Mock tokenizer that supports both sequential and batch encoding."""
def encode(self, prompt):
"""Encode a single prompt into tokens."""
# Return a list of token ids
return [1, 2, 3] * len(prompt.split())
def __call__(self, prompts):
"""Batch encode multiple prompts."""
# Handle both single string and list of strings
if isinstance(prompts, str):
prompts = [prompts]
return [[1, 2, 3] * len(p.split()) for p in prompts]
# Create setup arguments
prompts = [
"Hello world this is a test prompt",
"Another sample prompt for benchmarking",
"Third prompt with some content here",
"Fourth test prompt string example",
"Fifth and final prompt for testing",
]
batch_size = 3
tokenizer = MockTokenizer()
ARGS = {
"prompts": prompts,
"batch_size": batch_size,
"tokenizer": tokenizer,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
|
| encode_frame |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("101b39e9dfbda08e") 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 bytes. 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
import cv2
# Create a small test frame as a numpy array
# OpenCV uses BGR format, so we create a small 10x8x3 array
frame = np.random.randint(0, 256, size=(10, 8, 3), dtype=np.uint8)
ARGS = {
"frame": frame
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
|
| encode_image_base64 |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("224998e193558d2a") 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 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 base64
from io import BytesIO
from PIL import Image
import numpy as np
# Create a small test image in memory
def create_test_image():
"""Create a small PIL Image for testing."""
img_array = np.random.randint(0, 256, (10, 10, 3), dtype=np.uint8)
return Image.fromarray(img_array, mode='RGB')
# Test image as PIL Image object
test_image = create_test_image()
# Test image as bytes
buffered = BytesIO()
test_image.save(buffered, format='PNG')
test_image_bytes = buffered.getvalue()
# Test image as file path - we'll use a string path
# (the function will try to open it, but we're just setting up the argument)
test_image_path = "/tmp/test_image.png"
ARGS = {
"image_path": test_image_bytes
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- PIL, numpy — 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
|
| encode_video_base64 |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("7c51176540428d49") 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 numpy as np
import cv2
from io import BytesIO
from PIL import Image
import tempfile
import os
# Create a minimal valid video file for testing
def create_test_video(path, width=320, height=240, num_frames=20, fps=10):
"""Create a simple test video file"""
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter(path, fourcc, fps, (width, height))
# Write frames with changing content so they're distinct
for i in range(num_frames):
frame = np.zeros((height, width, 3), dtype=np.uint8)
# Add a changing color bar to make frames distinct
color_val = int((i / num_frames) * 255)
frame[:, :] = [color_val, 100, 150]
# Add some text variation
cv2.putText(frame, f"Frame {i}", (50, 100), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 2)
out.write(frame)
out.release()
return path
# Create temporary video file
temp_dir = tempfile.gettempdir()
video_path = os.path.join(temp_dir, 'test_video_temp.mp4')
create_test_video(video_path, width=320, height=240, num_frames=20, fps=10)
ARGS = {
'video_path': video_path,
'num_frames': 16
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, cv2, numpy — 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
|
| generate_event_triple_prompt |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/generative_agents/agent_functions.py code served (permissive licence) · get_code("83900d0c3ab83065") 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 dict. 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.
ARGS = {
'persona_name': 'Alice Smith',
'action': 'is reading a book'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
|
| generate_pronunciatio_prompt |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/generative_agents/agent_functions.py code served (permissive licence) · get_code("577ff88cf5082d20") 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 dict. 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
# The function takes a single parameter: action (a string)
# It constructs a prompt string using the action and returns a dict
# No complex objects needed - just a simple string input
ARGS = {
'action': 'jumping over a fence'
}
- 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
|
| generate_random_prompt |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/benchmark_batch/benchmark_batch.py code served (permissive licence) · get_code("9afb749e3f5b90cf") 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 random
from unittest.mock import MagicMock
from transformers import AutoTokenizer
# Create a mock tokenizer that doesn't require downloading
mock_tokenizer = MagicMock()
mock_tokenizer.vocab_size = 1000
mock_tokenizer.decode = lambda token_ids, clean_up_tokenization_spaces=True: " ".join([f"token_{i}" for i in token_ids])
# Mock the AutoTokenizer.from_pretrained to return our mock tokenizer
original_from_pretrained = AutoTokenizer.from_pretrained
def mock_from_pretrained(tokenizer_dir):
return mock_tokenizer
AutoTokenizer.from_pretrained = mock_from_pretrained
ARGS = {
"index": 0,
"tokenizer_dir": "mock_tokenizer_path",
"num_tokens": 5
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- transformers — 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
|
| generate_random_prompts |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/benchmark_batch/benchmark_tokenizer.py code served (permissive licence) · get_code("5139455c0f07d032") 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 list, ndim 1, 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 random
import torch
class MockTokenizer:
"""Mock tokenizer that simulates the required interface."""
def __init__(self, vocab_size=1000):
self.vocab_size = vocab_size
def decode(self, token_ids, clean_up_tokenization_spaces=True):
"""Decode token ids to text."""
return ' '.join([f'token_{tid}' for tid in token_ids])
def encode(self, text):
"""Encode text to token ids."""
# Return a list of token ids based on text length
return list(range(len(text.split())))
torch.manual_seed(0)
random.seed(0)
ARGS = {
'num_prompts': 3,
'num_tokens': 5,
'tokenizer': MockTokenizer(vocab_size=500)
}
- 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 list, ndim 1, 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
|
| generate_unique_prefix |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/bench_in_batch_prefix/bench_in_batch_prefix.py code served (permissive licence) · get_code("19faa93c902e1c91") 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
torch.manual_seed(0)
ARGS = {
"base_text": "hello world example",
"index": 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 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_exception_traceback |
Ran ran on a synthesized input |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("549dc523c7c8d8a0") 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 sys
import traceback
def get_exception_traceback():
etype, value, tb = sys.exc_info()
err_str = ''.join(traceback.format_exception(etype, value, tb))
return err_str
# This function takes no parameters, so we need to set up a context
# where an exception is active when it's called.
# First, create the ARGS dict (empty since function has no parameters)
ARGS = {}
# To properly test this function, we need to call it within an exception context
# We'll create a helper that demonstrates this works
def setup_and_call():
try:
raise ValueError("Test exception for traceback")
except ValueError:
result = get_exception_traceback()
return result
# Execute to verify the setup works
test_result = setup_and_call()
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — 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
|
| insert_special_token_every_k |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
DJC-GO-SOLO/Latent-SFT/generate_latent_soft_label_hf_batch.py code served (permissive licence) · get_code("e14968596cd466cc") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
ARGS = {
"ids": [101, 202, 303, 404, 505],
"special_id": 999,
"k": 2
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| poignancy_event_prompt |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/generative_agents/agent_functions.py code served (permissive licence) · get_code("e4b32a865322152c") 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 dict. 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
ARGS = {
'persona_name': 'Alice',
'persona_iss': 'Alice is a 28-year-old software engineer who values career growth and maintains close relationships with her family. She is ambitious but also struggles with work-life balance.',
'event': 'Alice receives a job offer from her dream company with a 40% salary increase, but it requires relocating to another country away from her family.'
}
- 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
|
| prepare_single_cot |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/generate_latent_soft_label_hf_batch.py code served (permissive licence) · get_code("1170e3e35af4e8fb") 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 list, ndim 1, dtype family int; 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 numpy as np
from unittest.mock import Mock
torch.manual_seed(0)
class MockTokenizer:
def __call__(self, text, truncation=False, padding=False, return_attention_mask=False, add_special_tokens=False):
"""Mock tokenizer returns input_ids based on text length."""
token_count = max(1, len(text) // 10)
return {
'input_ids': list(range(token_count))
}
def apply_chat_template(self, messages, tokenize=False, add_generation_prompt=False):
"""Mock chat template application."""
content = ' '.join([msg.get('content', '') for msg in messages])
return f"<template>{content}</template>"
examples = {
'problem': 'What is 2+2?',
'cot': '<think>First, I need to add 2 and 2. Two plus two equals four.</think>',
'cot_answer': 'The answer is 4.'
}
tokenizer = MockTokenizer()
compress_token_id = 999
latent_token_ids = [
[100, 101, 102],
[103, 104, 105]
]
encoder_model_path = 'deepseek-v2'
compression_rate = 5
ARGS = {
'examples': examples,
'tokenizer': tokenizer,
'compress_token_id': compress_token_id,
'latent_token_ids': latent_token_ids,
'encoder_model_path': encoder_model_path,
'compression_rate': compression_rate
}
- 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 list, ndim 1, dtype family int — 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
|
| prepare_single_cot |
Ran ran, honoured the contract we drafted |
DJC-GO-SOLO/Latent-SFT/generate_latent_soft_label_lora_batch.py code served (permissive licence) · get_code("1c8f3b56f98ad894") 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 list, ndim 1, dtype family int; 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)
class MockTokenizer:
def __init__(self):
self.vocab_size = 128
def __call__(self, text, truncation=False, padding=False, return_attention_mask=False, add_special_tokens=False):
# Return mock token IDs based on text length
token_count = len(text.split()) + 5
return {'input_ids': list(range(token_count))}
def apply_chat_template(self, messages, tokenize=False, add_generation_prompt=False):
# Return a simple string template
content = ' '.join([msg['content'] for msg in messages])
return f"<template>{content}</template>"
class MockModel(nn.Module):
def __init__(self):
super().__init__()
self.tokenizer = MockTokenizer()
self.compress_token_id = 999
self.latent_token_ids = [[1000], [1001]]
# Create mock example data
examples = {
'problem': 'What is 2 + 2?',
'solution': '<think>Let me calculate this step by step. 2 + 2 equals 4.</think>',
'cot_answer': 'The answer is 4.'
}
# Instantiate the model
model = MockModel()
# Define compression rate
compression_rate = 5
ARGS = {
'examples': examples,
'model': model,
'encoder_model_path': 'deepseek-model',
'compression_rate': compression_rate
}
- 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 list, ndim 1, dtype family int — 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
|
| prepare_single_example |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/eval/eval_latent_model_hf_batch.py code served (permissive licence) · get_code("e80ec2d3cc2af3b3") 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 dict. 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
torch.manual_seed(0)
# Stand-in tokenizer class
class MockTokenizer:
def __init__(self):
self.vocab_size = 32000
def apply_chat_template(self, messages, tokenize=False, add_generation_prompt=False):
return "mock chat template output"
def __call__(self, text, truncation=False, padding=False, add_special_tokens=False, return_attention_mask=False):
# Return mock token ids for any input text
token_ids = [101, 2054, 2003, 1037, 3231, 1029]
return {'input_ids': token_ids}
# Stand-in model class
class MockModel(nn.Module):
def __init__(self):
super().__init__()
self.tokenizer = MockTokenizer()
self.latent_token_ids = [[999, 1000, 1001]]
self.device = 'cpu'
self.linear = nn.Linear(4, 4)
def forward(self, x):
return self.linear(x)
# Create instances
model = MockModel()
examples = {
'problem': 'What is 2 + 2?'
}
latent_model_path = 'path/to/model/checkpoint'
ARGS = {
'examples': examples,
'model': model,
'latent_model_path': latent_model_path
}
- 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
|
| right_pad_2d |
Ran ran, honoured the contract we drafted |
DJC-GO-SOLO/Latent-SFT/generate_latent_soft_label_hf_batch.py code served (permissive licence) · get_code("7647aa91afd57fde") 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 int, shape (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
torch.manual_seed(0)
# sequences: a list of 1D lists (each inner list is a sequence)
# fill_value: scalar value to pad with
# dtype: torch dtype for the output tensor
sequences = [
[1, 2, 3],
[4, 5],
[6, 7, 8, 9]
]
fill_value = 0
dtype = torch.long
ARGS = {
"sequences": sequences,
"fill_value": fill_value,
"dtype": dtype
}
- 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 int, shape (3, 4) — shape (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: none by the harness; any seed is in the setup block
|
| send_batch_request |
Ran ran; our contract draft was wrong, not the code |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/benchmark_batch/benchmark_batch.py code served (permissive licence) · get_code("5bc9a6f07218ab7b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, 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 time
import requests
from unittest.mock import Mock, patch
import torch
# Create a mock endpoint object with base_url attribute
endpoint = Mock()
endpoint.base_url = "http://localhost:8000"
# Create a list of prompts
prompts = [
"What is machine learning?",
"Explain neural networks."
]
# Number of tokens to generate
gen_tokens = 100
# Request identifier
request_id = "req_001"
# Mock the requests.post to avoid actual network calls
def mock_post(url, json=None, timeout=None):
"""Mock response for requests.post"""
mock_response = Mock()
mock_response.status_code = 200
mock_response.json = Mock(return_value={
"generated_text": ["Response 1", "Response 2"]
})
return mock_response
# Patch requests.post before defining ARGS
with patch('requests.post', side_effect=mock_post):
ARGS = {
'endpoint': endpoint,
'prompts': prompts,
'gen_tokens': gen_tokens,
'request_id': request_id
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- requests, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, 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
|
| ChoicesSamplingMethod |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("18796f7fc88439fb") How it ran |
| ProgramStateGroup |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("045099058d45370d") How it ran |
| SglCommitLazy |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("57cdf370be26a475") How it ran |
| SglGen |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("6fcfc0380ecb4e24") How it ran |
| StreamExecutor |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-GRPO/sglang_latent_reasoning_pkg/python/sglang/lang/interpreter.py code served (permissive licence) · get_code("a018c3fd05666881") How it ran |
| generate_random_string |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/bench_in_batch_prefix/bench_in_batch_prefix.py code served (permissive licence) · get_code("70f1d10961d52f6d") How it ran |
| prepare_all_prompts |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/benchmark_batch/benchmark_batch.py code served (permissive licence) · get_code("60d747ff8e6ab539") How it ran |
| prepare_prompts |
Not yet run unverified (harvested, no recorded run) |
DJC-GO-SOLO/Latent-SFT/sglang_latent_reasoning_pkg/benchmark/bench_in_batch_prefix/bench_in_batch_prefix.py code served (permissive licence) · get_code("e5914c7114b177c6") How it ran |