| first_quadrant_sst2 |
Ran ran, honoured the contract we drafted |
eit-nlp/2d-coordinate-system-for-icl/utils/first_quadrant_processing.py code served (permissive licence) · get_code("a5f8c26c3b18acec") 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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
import random
torch.manual_seed(0)
class MockTokenizer:
def __init__(self):
self.vocab_size = 100
def encode(self, text):
# Simple mock: return token ids based on text length
return [1, 2, 3] * (len(text) // 10 + 1)
def decode(self, token_ids):
if isinstance(token_ids, list):
return "positive" if sum(token_ids) % 2 == 0 else "negative"
return "positive"
class MockWrapper:
def __init__(self):
self.tokenizer = MockTokenizer()
def tokenize(self, text):
# Return (input_ids, attention_mask) style tuple
token_ids = self.tokenizer.encode(text)
return [torch.tensor(token_ids, dtype=torch.long)]
def list_decode(self, token_ids):
# Return list of string tokens
return ["positive", "negative", "label"]
def get_logit(self, input_ids):
# Return logits over vocabulary
# input_ids is a list with one tensor
batch_size = 1
vocab_size = 100
return torch.randn(batch_size, vocab_size)
class MockArgs:
def __init__(self):
self.num_samples = 2
# Create train dataset list with SST2-like samples
train_dataset_list = [
{'sentence': 'This movie is great', 'label': 1},
{'sentence': 'I loved this film', 'label': 1},
{'sentence': 'This was terrible', 'label': 0},
{'sentence': 'Absolutely horrible', 'label': 0},
{'sentence': 'Amazing performance', 'label': 1},
{'sentence': 'Very bad acting', 'label': 0},
{'sentence': 'Fantastic story', 'label': 1},
{'sentence': 'Boring and dull', 'label': 0},
]
ARGS = {
'wrapper': MockWrapper(),
'train_dataset_list': train_dataset_list,
'args': MockArgs()
}
- 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 float, 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
|
| fourth_quadrant_emo |
Ran ran, honoured the contract we drafted |
eit-nlp/2d-coordinate-system-for-icl/utils/fourth_quadrant_processing.py code served (permissive licence) · get_code("6fb95e710c7c52a3") 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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
import random
torch.manual_seed(0)
random.seed(0)
class MockTokenizer:
def __init__(self):
self.vocab_size = 100
def tokenize(self, text):
# Return a list with token ids
tokens = [torch.tensor([[1, 2, 3, 4]])]
return tokens
def list_decode(self, token_ids):
# Return string tokens
return ['hello', 'world', 'test']
def decode(self, token_id):
# Return a string prediction
return 'happy'
class MockWrapper:
def __init__(self):
self.tokenizer = MockTokenizer()
def tokenize(self, text):
tokens = torch.tensor([[1, 2, 3, 4]])
return [tokens]
def list_decode(self, token_ids):
return ['token1', 'token2']
def get_logit(self, input_ids):
# Return logits of shape (1, vocab_size)
return torch.randn(1, 100)
# Create training dataset
train_dataset_list = [
{'text': 'I am so happy today', 'label': 1},
{'text': 'This makes me very sad', 'label': 2},
{'text': 'I am really angry', 'label': 3},
{'text': 'Just another day', 'label': 0},
{'text': 'So much joy in my heart', 'label': 1},
{'text': 'Feeling down and depressed', 'label': 2},
{'text': 'This is infuriating', 'label': 3},
{'text': 'Nothing special here', 'label': 0},
{'text': 'Absolutely delighted', 'label': 1},
{'text': 'Tears are flowing', 'label': 2},
{'text': 'Furious beyond measure', 'label': 3},
{'text': 'Regular text content', 'label': 0},
{'text': 'Thrilled to be alive', 'label': 1},
{'text': 'Heart is broken', 'label': 2},
{'text': 'Rage consumes me', 'label': 3},
{'text': 'Mundane daily routine', 'label': 0},
]
class Args:
def __init__(self):
self.num_samples = 4
ARGS = {
'wrapper': MockWrapper(),
'train_dataset_list': train_dataset_list,
'args': 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 float, 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
|
| fourth_quadrant_trec |
Ran ran, honoured the contract we drafted |
eit-nlp/2d-coordinate-system-for-icl/utils/fourth_quadrant_processing.py code served (permissive licence) · get_code("ea90a6dd70f35598") 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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
import random
torch.manual_seed(0)
class MockTokenizer:
def __init__(self):
self.vocab_size = 100
def encode(self, text):
return [1, 2, 3, 4]
def decode(self, token_ids):
if isinstance(token_ids, torch.Tensor):
token_ids = token_ids.tolist()
if not token_ids:
return "Abbreviation"
return "Abbreviation"
class MockWrapper:
def __init__(self):
self.tokenizer = MockTokenizer()
self.model = nn.Linear(10, 100)
def tokenize(self, text):
inp_ids = torch.tensor([[1, 2, 3, 4]], dtype=torch.long)
return inp_ids
def list_decode(self, token_ids):
return ["hello", "world", "test"]
def get_logit(self, input_ids):
batch_size = input_ids.shape[0]
logits = torch.randn(batch_size, 100)
return logits
class Args:
def __init__(self):
self.num_samples = 3
train_dataset_list = [
{
'text': f'sample text {i}',
'coarse_label': i % 6
}
for i in range(20)
]
wrapper = MockWrapper()
args = Args()
ARGS = {
'wrapper': wrapper,
'train_dataset_list': train_dataset_list,
'args': 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 float, 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
|
| icl_generation |
Ran ran; our contract draft was wrong, not the code |
eit-nlp/2d-coordinate-system-for-icl/utils/fourth_quadrant_processing.py code served (permissive licence) · get_code("87ae745630e3718d") 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
# Set seed for reproducibility
random.seed(0)
# Define test data structures
label_to_samples = {
'positive': [
{'text': 'This movie was amazing and I loved it.'},
{'text': 'Great film with excellent acting.'},
{'text': 'I really enjoyed watching this.'}
],
'negative': [
{'text': 'This was a terrible waste of time.'},
{'text': 'Poor quality and boring plot.'},
{'text': 'I did not like this movie at all.'}
]
}
test_sample = 'This film was quite good.'
ARGS = {
'label_to_samples': label_to_samples,
'test_sample': test_sample
}
- 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
|
| icl_generation_color_and_capital |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
eit-nlp/2d-coordinate-system-for-icl/utils/second_quadrant_processing.py code served (permissive licence) · get_code("d5f6f01c6d67575d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Construct arguments for icl_generation_color_and_capital
data = [
"The sky is blue",
"The grass is green",
"The snow is white",
"The fire is red"
]
dissimilar_labels_indices = [0, 2]
labels = ["color: blue", "color: green", "color: white", "color: red"]
random_data = "The ocean is"
ARGS = {
"data": data,
"dissimilar_labels_indices": dissimilar_labels_indices,
"labels": labels,
"random_data": random_data
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| icl_generation_sst2 |
Ran ran; our contract draft was wrong, not the code |
eit-nlp/2d-coordinate-system-for-icl/utils/first_quadrant_processing.py code served (permissive licence) · get_code("ffb2f4006315e711") 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
random.seed(0)
# Construct label_to_samples
# The function calls random.choice(sample) where sample is a value in the dict
# and iterates over it, so each value should be a list of dicts with 'sentence' key
label_to_samples = {
'positive': [
{'sentence': 'This movie was absolutely wonderful!'},
{'sentence': 'I really enjoyed this film.'},
{'sentence': 'Great acting and storytelling.'}
],
'negative': [
{'sentence': 'This was a terrible waste of time.'},
{'sentence': 'I did not like this movie at all.'},
{'sentence': 'Boring and poorly made.'}
]
}
# Construct test_sample
# The function uses it as a string to format into the template
test_sample = 'The plot was interesting but the ending was confusing.'
ARGS = {
'label_to_samples': label_to_samples,
'test_sample': test_sample
}
- 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
|
| icl_generation_sst2 |
Ran ran; our contract draft was wrong, not the code |
eit-nlp/2d-coordinate-system-for-icl/utils/second_quadrant_processing.py code served (permissive licence) · get_code("8dccec5f5228331d") 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
# Set seed for reproducibility
random.seed(0)
# Create label_to_samples dict
# The function expects a dict where keys are labels and values are lists of dicts
# Each dict in the list should have a 'sentence' key
label_to_samples = {
'positive': [
{'sentence': 'This movie is absolutely wonderful and engaging.'},
{'sentence': 'I loved every minute of this fantastic film.'},
{'sentence': 'The acting and direction were both excellent.'},
{'sentence': 'A truly masterpiece that will stay with me forever.'},
],
'negative': [
{'sentence': 'This film was a complete waste of time.'},
{'sentence': 'The plot was confusing and the acting was terrible.'},
{'sentence': 'I fell asleep during this boring movie.'},
{'sentence': 'One of the worst films I have ever seen.'},
]
}
# Create test_sample as a string
test_sample = 'This movie was pretty good and entertaining.'
# Create args object with shot_number attribute
class Args:
def __init__(self):
self.shot_number = 2
args = Args()
# Define ARGS dict mapping all parameters
ARGS = {
'label_to_samples': label_to_samples,
'test_sample': test_sample,
'args': args
}
- 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
|
| template_generation_color_and_capital |
Ran ran; our contract draft was wrong, not the code |
eit-nlp/2d-coordinate-system-for-icl/utils/first_quadrant_processing.py code served (permissive licence) · get_code("6fa67476046b6014") 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
# Set seed for reproducibility
random.seed(0)
# Create sample data and labels
data = [
"The sky is blue and the grass is green.",
"Paris is the capital of France.",
"London is a major city in England.",
"Red and yellow are primary colors.",
"Berlin is the capital of Germany.",
"The ocean is vast and beautiful."
]
labels = [
"color",
"capital",
"capital",
"color",
"capital",
"color"
]
ARGS = {
"data": data,
"labels": labels
}
- 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
|
| third_quadrant_emo |
Ran ran, honoured the contract we drafted |
eit-nlp/2d-coordinate-system-for-icl/utils/third_quadrant_processing.py code served (permissive licence) · get_code("13de22588444da78") 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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type 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
import random
torch.manual_seed(0)
random.seed(0)
# Create a minimal wrapper class that satisfies the interface used by the function
class MockTokenizerWrapper:
def __init__(self):
self.tokenizer = MockTokenizer()
def tokenize(self, text):
# Return a list containing token ids
tokens = text.split()[:10] # Simple tokenization
token_ids = [torch.tensor([i % 100 for i in range(len(tokens))])]
return token_ids
def list_decode(self, token_ids):
# Return list of string tokens
return [f"tok_{i}" for i in range(len(token_ids))]
def get_logit(self, input_ids):
# Return logits for next token prediction
# Shape: [1, vocab_size]
batch_size = len(input_ids)
vocab_size = 100
logits = torch.randn(batch_size, vocab_size)
return logits
class MockTokenizer:
def decode(self, token_ids):
# Return a string prediction
return "happy"
# Create mock args
class MockArgs:
def __init__(self, dataset_path, num_samples):
self.dataset_path = dataset_path
self.num_samples = num_samples
# Create sample training dataset with emotion labels
def create_train_dataset(num_samples=20):
dataset = []
labels = [0, 1, 2, 3] # others, happy, sad, angry
label_names = ['others', 'happy', 'sad', 'angry']
for i in range(num_samples):
label = labels[i % 4]
dataset.append({
'text': f'This is sample text number {i} with {label_names[label]} emotion',
'label': label
})
return dataset
# Construct ARGS
wrapper = MockTokenizerWrapper()
train_dataset_list = create_train_dataset(20)
args = MockArgs(dataset_path='emotion.txt', num_samples=5)
ARGS = {
'wrapper': wrapper,
'train_dataset_list': train_dataset_list,
'args': 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 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
|
| third_quadrant_trec |
Ran ran, honoured the contract we drafted |
eit-nlp/2d-coordinate-system-for-icl/utils/third_quadrant_processing.py code served (permissive licence) · get_code("74d4b887b676e8e6") 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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type 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
import random
torch.manual_seed(0)
class MockTokenizer:
def tokenize(self, text):
# Return a list containing input_ids
return [torch.tensor([[1, 2, 3, 4]])]
def list_decode(self, input_ids):
# Return list of string tokens
return ['tok1', 'tok2', 'tok3', 'tok4']
def decode(self, token_ids):
# Return a string prediction
return 'Abbreviation'
class MockWrapper:
def __init__(self):
self.tokenizer = MockTokenizer()
def tokenize(self, text):
return self.tokenizer.tokenize(text)
def list_decode(self, input_ids):
return self.tokenizer.list_decode(input_ids)
def get_logit(self, input_ids):
# Return logits for vocabulary
return torch.randn(1, 1, 100)
class MockArgs:
def __init__(self, dataset_path, num_samples):
self.dataset_path = dataset_path
self.num_samples = num_samples
# Create mock wrapper
wrapper = MockWrapper()
# Create mock args with trec dataset
args = MockArgs(dataset_path='trec_dataset', num_samples=3)
# Create train dataset list with TREC-like samples
train_dataset_list = []
labels = [0, 1, 2, 3, 4, 5] # 6 TREC categories
for i in range(20):
train_dataset_list.append({
'text': f'What is the capital of France? Sample {i}',
'coarse_label': labels[i % 6]
})
ARGS = {
'wrapper': wrapper,
'train_dataset_list': train_dataset_list,
'args': 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 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
|
| tokenize |
Ran ran; our contract draft was wrong, not the code |
eit-nlp/2d-coordinate-system-for-icl/task_recognition_pir.py code served (permissive licence) · get_code("b9aa70482de54509") 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
torch.manual_seed(0)
class MockWrapper:
def tokenize(self, text):
# Returns a list of lists of token IDs
# Simulating batch processing
return [[101, 2054, 2003, 102], [101, 3231, 2003, 102]]
def list_decode(self, token_ids):
# Takes a list of token IDs and returns list of strings
return ["[CLS]", "what", "is", "[SEP]"]
text = "what is this"
wrapper = MockWrapper()
ARGS = {
"text": text,
"wrapper": wrapper
}
- 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
|
| second_quadrant_sst2 |
Not yet run unverified (harvested, no recorded run) |
eit-nlp/2d-coordinate-system-for-icl/utils/second_quadrant_processing.py code served (permissive licence) · get_code("64e83651e7051164") How it ran |