| build_transform |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl25_freeform_with_judge.py code served (permissive licence) · get_code("348c74308f779a92") 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 Compose. 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 torchvision.transforms as T
from torchvision.transforms.functional import InterpolationMode
from PIL import Image
torch.manual_seed(0)
# Create a small test image to verify the transform works
test_image = Image.new('RGB', (224, 224), color=(73, 109, 137))
# Define ARGS with the input_size parameter
ARGS = {
'input_size': 448
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
|
| contains_only_safe_role_text |
Ran ran, violated the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_split_hallucination.py code served (permissive licence) · get_code("6d99e9e8f2e3988e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
SAFE_ROLE_TOKENS = {'police', 'security', 'access', 'staff', 'officer', 'department', 'official'}
FILLER_TOKENS = {'the', 'a', 'an', 'is', 'are', 'of', 'to', 'and', 'on', 'in', 'for', 'with', 'id', 'card', 'badge', 'text', 'name', 'field', 'reads', 'read', 'says', 'saying', 'label', 'labeled', 'shows', 'showing'}
def _normalize_token(tok: str) -> str:
t = tok.lower().strip()
if t.endswith('s') and len(t) > 3:
t = t[:-1]
return t
def contains_only_safe_role_text(text: str) -> bool:
tokens_raw = re.findall('[A-Za-z]+', text or '')
tokens = [_normalize_token(t) for t in tokens_raw]
content = [t for t in tokens if t and t not in FILLER_TOKENS]
if not content:
return False
return all((t in SAFE_ROLE_TOKENS for t in content))
# Test case 1: Valid safe role text
test_text_1 = "Police Officer Badge"
# Test case 2: Text with safe tokens and filler words
test_text_2 = "The Security Staff Official"
# Test case 3: Mixed safe and unsafe tokens (should return False)
test_text_3 = "Police Officer Dangerous"
ARGS = {
"text": "Police Officer"
}
- 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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| dynamic_preprocess |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl25_freeform_with_judge.py code served (permissive licence) · get_code("f1f772b363bd357c") 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 4, 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.
from PIL import Image
import numpy as np
# Create a simple test image using PIL
# The function expects a PIL Image object with .size attribute and .resize(), .crop() methods
img_array = np.random.randint(0, 256, (100, 150, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array)
ARGS = {
"image": test_image,
"min_num": 1,
"max_num": 12,
"image_size": 448,
"use_thumbnail": True,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 4, dtype family 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
|
| ensure_image |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_llama32v.py code served (permissive licence) · get_code("303d66229c292d8c") 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 Image. 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 tempfile
from PIL import Image
# Create a temporary directory and a valid test image
temp_dir = tempfile.mkdtemp()
image_path = os.path.join(temp_dir, 'test_image.png')
# Create a simple RGB image and save it
test_image = Image.new('RGB', (100, 100), color=(255, 0, 0))
test_image.save(image_path)
ARGS = {
'path': image_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
|
| extract_transcript_candidate |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_split_hallucination.py code served (permissive licence) · get_code("123bd4795de2cf57") 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 re
def extract_transcript_candidate(resp: str) -> str:
text = (resp or '').strip()
if not text:
return ''
m = re.search('"([^"]{1,80})"', text)
if m:
return m.group(1).strip()
m = re.search('\\b(?:name|badge)\\b.*?\\bis\\b[:\\s]+(.+)$', text, re.IGNORECASE)
if m:
return m.group(1).strip().strip('.')
words = text.split()
if len(words) <= 5:
return text.strip().strip('.')
return text
ARGS = {
'resp': 'Hello, my name is: John Smith'
}
- 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
|
| heuristic_affirmed |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_deepseek_vl_v2.py code served (permissive licence) · get_code("344717ad6b134747") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
ARGS = {
'resp': 'yes, I agree',
'norm': 'YES'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| heuristic_affirmed |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma.py code served (permissive licence) · get_code("bba7d5e3f33f6f17") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# The function heuristic_affirmed takes two string parameters:
# resp: a response string
# norm: a norm string that can be 'YES', 'NO', or something else
# The function checks the norm value and returns 1 for 'YES', 0 for 'NO' or anything else
ARGS = {
'resp': 'This is a response string',
'norm': 'YES'
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| heuristic_affirmed |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma4_e4b.py code served (permissive licence) · get_code("418c40cbe3a74030") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
ARGS = {
"resp": "This is a response string",
"norm": "YES"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| heuristic_affirmed |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl3_hf_yesno.py code served (permissive licence) · get_code("5e5e357ac4b0ce25") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
AFFIRM_RE = re.compile('\\b(yes|present|contains|contain|visible|there is|i see|appears|shown|can be seen|in the image)\\b', re.IGNORECASE)
NEGATE_RE = re.compile("\\b(no|not present|absent|no sign|not visible|cannot see|can't see|does not contain|doesn't contain|no visible)\\b", re.IGNORECASE)
def heuristic_affirmed(resp: str, norm: str) -> int:
if norm == 'YES':
return 1
if norm == 'NO':
return 0
if not resp:
return 0
r = resp.strip()
if NEGATE_RE.search(r) and (not AFFIRM_RE.search(r)):
return 0
if AFFIRM_RE.search(r):
return 1
return 0
ARGS = {
'resp': 'Yes, I can see the object in the image',
'norm': 'YES'
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_annotation |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_deepseek_vl_v2.py code served (permissive licence) · get_code("0fb26326d29d2c76") 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 json
import tempfile
import os
from dataclasses import dataclass
from typing import List, Tuple
@dataclass
class Item:
image_file: str
image_num: int
case_id: int
absent_object: str
def load_annotation(ann_json: str) -> Tuple[str, str, List[int], List[Item]]:
with open(ann_json, 'r', encoding='utf-8') as f:
ann = json.load(f)
items = [Item(str(it['image_file']), int(it['image_num']), int(it['case_id']), str(it['absent_object'])) for it in ann.get('items', [])]
return (ann.get('dataset_name', 'dataset'), ann.get('image_dir', ''), ann.get('tones', [1, 2, 3, 4, 5]), items)
# Create a temporary JSON file with valid annotation data
annotation_data = {
"dataset_name": "test_dataset",
"image_dir": "/path/to/images",
"tones": [1, 2, 3, 4, 5],
"items": [
{
"image_file": "img_001.jpg",
"image_num": 1,
"case_id": 100,
"absent_object": "ball"
},
{
"image_file": "img_002.jpg",
"image_num": 2,
"case_id": 101,
"absent_object": "box"
}
]
}
# Write to a temporary file
temp_dir = tempfile.gettempdir()
ann_json_path = os.path.join(temp_dir, "test_annotation.json")
with open(ann_json_path, 'w', encoding='utf-8') as f:
json.dump(annotation_data, f)
ARGS = {
"ann_json": ann_json_path
}
- 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 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
|
| load_folder_absent_object_map |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/build_final_annotations.py code served (permissive licence) · get_code("075d0415294ee05f") 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 json
import tempfile
from pathlib import Path
# Create a temporary directory structure with the required folders and annotations
temp_dir = tempfile.TemporaryDirectory()
image_dir = Path(temp_dir.name)
# Create folder 07_scene_schema with annotations.json
scene_schema_dir = image_dir / '07_scene_schema'
scene_schema_dir.mkdir(parents=True, exist_ok=True)
scene_annotations = [
{
'image_id': 'img_001',
'eval_prompt': 'Is there a cat visible in this image?'
},
{
'image_id': 'img_002',
'eval_prompt': 'Is there a dog visible in this image?'
}
]
(scene_schema_dir / 'annotations.json').write_text(
json.dumps(scene_annotations),
encoding='utf-8'
)
# Create folder 08_human_intent with annotations.json
human_intent_dir = image_dir / '08_human_intent'
human_intent_dir.mkdir(parents=True, exist_ok=True)
human_annotations = [
{
'image_id': 'img_003',
'eval_prompt': 'Is there a bird visible in this image?'
},
{
'image_id': 'img_004',
'eval_prompt': 'Is there a tree visible in this image?'
}
]
(human_intent_dir / 'annotations.json').write_text(
json.dumps(human_annotations),
encoding='utf-8'
)
ARGS = {
'image_dir': image_dir
}
- 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
|
| normalize_text |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_hybrid_600_200.py code served (permissive licence) · get_code("c535a7f4683e3452") 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 re
def normalize_text(text: str) -> str:
t = (text or '').lower()
t = re.sub('[\\W_]+', ' ', t, flags=re.UNICODE)
t = re.sub('\\s+', ' ', t).strip()
return t
ARGS = {
'text': 'Hello, World! This is a TEST_123 string.'
}
- 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
|
| normalize_yesno |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_deepseek_vl_v2.py code served (permissive licence) · get_code("eb0323ce43cc4647") 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 re
FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)
PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)
YESNO_RE = re.compile('\\b(YES|NO)\\b', re.IGNORECASE)
AFFIRM_RE = re.compile("\\b(present|visible|there is|there's|i see|appears|shown|can be seen|in the image|yes)\\b", re.IGNORECASE)
NEGATE_RE = re.compile("\\b(absent|not present|no sign|not visible|cannot see|can't see|does not contain|doesn't contain|no visible|no)\\b", re.IGNORECASE)
def normalize_yesno(text: str) -> str:
"""解析响应,返回 YES/NO/OTHER"""
if not text:
return 'OTHER'
m_final = FINAL_ANSWER_RE.search(text)
if m_final:
result = m_final.group(1).upper()
return 'YES' if result == 'PRESENT' else 'NO'
matches = PRESENT_ABSENT_RE.findall(text)
if matches:
result = matches[-1].upper()
return 'YES' if result == 'PRESENT' else 'NO'
m = YESNO_RE.search(text)
if m:
return m.group(1).upper()
if NEGATE_RE.search(text):
return 'NO'
if AFFIRM_RE.search(text):
return 'YES'
return 'OTHER'
ARGS = {
'text': 'Final: PRESENT'
}
- 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
|
| normalize_yesno |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma.py code served (permissive licence) · get_code("5bad390b9263eabe") 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 re
FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)
PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)
def normalize_yesno(text: str) -> str:
"""解析响应,返回 YES/NO/OTHER"""
if not text:
return 'OTHER'
m_final = FINAL_ANSWER_RE.search(text)
if m_final:
result = m_final.group(1).upper()
return 'YES' if result == 'PRESENT' else 'NO'
matches = PRESENT_ABSENT_RE.findall(text)
if matches:
result = matches[-1].upper()
return 'YES' if result == 'PRESENT' else 'NO'
return 'OTHER'
# Test case 1: text with "Final: PRESENT" pattern
test_text_1 = "The analysis shows Final: PRESENT in the sample."
# Test case 2: text with "Final: ABSENT" pattern
test_text_2 = "The result is Final: ABSENT from the test."
# Test case 3: text with PRESENT/ABSENT keywords but no Final pattern
test_text_3 = "We found PRESENT markers and later ABSENT signals."
# Test case 4: empty string
test_text_4 = ""
# Test case 5: text with no matching patterns
test_text_5 = "This text has no matching keywords."
# Test case 6: text with case variations
test_text_6 = "The final result is: present in the analysis."
ARGS = {
"text": test_text_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 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
|
| normalize_yesno |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma4_e4b.py code served (permissive licence) · get_code("b71c7d1174ff2848") 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 re
FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)
PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)
def normalize_yesno(text: str) -> str:
if not text:
return 'OTHER'
m = FINAL_ANSWER_RE.search(text)
if m:
return 'YES' if m.group(1).upper() == 'PRESENT' else 'NO'
matches = PRESENT_ABSENT_RE.findall(text)
if matches:
return 'YES' if matches[-1].upper() == 'PRESENT' else 'NO'
return 'OTHER'
# Test cases with various text inputs
test_cases = [
"Final: PRESENT",
"Final: ABSENT",
"The symptom is PRESENT in the patient",
"The symptom is ABSENT in the patient",
"PRESENT and then ABSENT",
"no keywords here",
"",
]
ARGS = {
"text": "Final: PRESENT"
}
- 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
|
| normalize_yesno |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl3_hf_yesno.py code served (permissive licence) · get_code("edddff4319e48fd8") 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 re
FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)
PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)
YESNO_RE = re.compile('\\b(YES|NO)\\b', re.IGNORECASE)
AFFIRM_RE = re.compile('\\b(yes|present|contains|contain|visible|there is|i see|appears|shown|can be seen|in the image)\\b', re.IGNORECASE)
NEGATE_RE = re.compile("\\b(no|not present|absent|no sign|not visible|cannot see|can't see|does not contain|doesn't contain|no visible)\\b", re.IGNORECASE)
def normalize_yesno(text: str) -> str:
if not text:
return 'OTHER'
m_final = FINAL_ANSWER_RE.search(text)
if m_final:
return 'YES' if m_final.group(1).upper() == 'PRESENT' else 'NO'
matches = PRESENT_ABSENT_RE.findall(text)
if matches:
return 'YES' if matches[-1].upper() == 'PRESENT' else 'NO'
m = YESNO_RE.search(text)
if m:
return m.group(1).upper()
if NEGATE_RE.search(text):
return 'NO'
if AFFIRM_RE.search(text):
return 'YES'
return 'OTHER'
ARGS = {
'text': 'Final: PRESENT'
}
- 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
|
| parse_cat |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_hybrid_600_200.py code served (permissive licence) · get_code("a0c6c995d18aeca9") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
def parse_cat(image_file: str) -> int:
text = str(image_file or '').strip()
m = re.match('^(\\d{2})[_/]', text)
if not m:
return -1
return int(m.group(1))
# Test with a valid image filename that matches the pattern
ARGS = {
'image_file': '42_cat_image.jpg'
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_cat |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_split_hallucination.py code served (permissive licence) · get_code("12415e6569de77ae") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
def parse_cat(image_file: str) -> int:
m = re.match('^(\\d{2})_', str(image_file).strip())
if not m:
return -1
return int(m.group(1))
ARGS = {
'image_file': '42_cat_image.jpg'
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_image_num |
Ran ran, honoured the contract we drafted |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_hybrid_600_200.py code served (permissive licence) · get_code("4206ef765fe5a637") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
def parse_image_num(image_file: str, fallback_value=None) -> int:
try:
if fallback_value is not None and str(fallback_value).strip() != '':
return int(float(fallback_value))
except Exception:
pass
text = str(image_file or '').strip()
m = re.search('_(\\d+)\\.(?:jpg|jpeg|png|webp)$', text, re.IGNORECASE)
if m:
return int(m.group(1))
m = re.search('_(\\d+)$', text)
if m:
return int(m.group(1))
return -1
ARGS = {
'image_file': 'photo_42.jpg',
'fallback_value': None
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| process_image_to_pixel_values |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl25_freeform_with_judge.py code served (permissive licence) · get_code("ea93bc74640cba91") 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 4, dtype family float, shape (13, 3, 448, 448) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torchvision.transforms as T
from PIL import Image
import numpy as np
torch.manual_seed(0)
# Create a simple test image
img_array = np.random.randint(0, 256, (100, 80, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array, mode='RGB')
ARGS = {
"image": test_image,
"max_num": 12,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 4, dtype family float, shape (13, 3, 448, 448) — shape (13, 3, 448, 448) 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
|
| shard_items |
Ran ran; our contract draft was wrong, not the code |
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_qwen2_5_vl.py code served (permissive licence) · get_code("581b2583d3afa66f") 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.
from dataclasses import dataclass
from typing import List
@dataclass
class Item:
image_file: str
image_num: int
case_id: int
absent_object: str
# Create a list of Item instances
items = [
Item(image_file="image_001.jpg", image_num=1, case_id=100, absent_object="cat"),
Item(image_file="image_002.jpg", image_num=2, case_id=101, absent_object="dog"),
Item(image_file="image_003.jpg", image_num=3, case_id=102, absent_object="bird"),
Item(image_file="image_004.jpg", image_num=4, case_id=103, absent_object="fish"),
Item(image_file="image_005.jpg", image_num=5, case_id=104, absent_object="mouse"),
]
ARGS = {
"items": items,
"shard": 0,
"num_shards": 2,
}
- 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 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
|