SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.03668 · ICLR · 2024

GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction

Oscar Sainz, Iker García-Ferrero, Rodrigo Agerri, Oier Lopez De Lacalle, German Rigau, Eneko Agirre

arXiv · PDF · Open in the Atlas

Code that ran

18 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 15 failures of our instrument; 7 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.03668.json · badge: /api/ran/2310.03668.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hitz-zentroa/GoLLIE canonical (classifier label)
classifier basis: census
15 ran · 2 no recorded run
hitz-zentroa/gollie community
Papers with Code archive
3 ran · 5 no recorded run
FunctionStatusWhere it lives
FlashRotaryEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("c8bee51bf997140e")
How it ran

Ran 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, FlashRotaryEmbedding: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "dim": 8,
    "base": 10000.0,
    "interleaved": False,
    "scale_base": None,
    "scaling_factor": 1.0,
    "pos_idx_in_fp32": True,
    "device": 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 FlashRotaryEmbedding — 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 FlashRotaryEmbedding 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
LlamaRMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("3e5e1a1a6ae02184")
How it ran

Ran 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, LlamaRMSNorm: 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 torch import nn

torch.manual_seed(0)

ARGS = {
    'hidden_size': 4,
    'eps': 1e-06
}
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 LlamaRMSNorm — 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 LlamaRMSNorm 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
clean_guidelines Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/paraphrase/utils.py
code served (permissive licence) · get_code("a31cb9b49aa3fb29")
How it ran

Ran 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.

# Setup code for clean_guidelines function

ARGS = {
    "guidelines": {
        "guideline_1": {
            "en": [
                "This is a\ntest\twith\n  multiple   spaces",
                "Another\tguideline\nwith\nnewlines"
            ],
            "fr": [
                "Ceci est un\ntest\tavec\n  espaces",
            ]
        },
        "guideline_2": {
            "en": [
                "Simple\ntext\twith\ttabs"
            ],
            "de": [
                "Ein\ntest\nmit\t  \tAbstanden"
            ]
        }
    }
}
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
find_all_linear_names Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/model/model_utils.py
code served (permissive licence) · get_code("ef50b7a39a5c925f")
How it ran

Ran 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 torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.lm_head = nn.Linear(2, 4)
        self.other_module = nn.ReLU()
        self.nested = nn.Sequential(
            nn.Linear(4, 3),
            nn.Linear(3, 2)
        )
    
    def forward(self, x):
        return x

model = SimpleModel()

ARGS = {
    "model": model,
    "quantization": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
bitsandbytes, 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
fix_prompt_outputs Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/evaluate.py
code served (permissive licence) · get_code("25ec67d8318f45ea")
How it ran

Ran 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

def fix_prompt_outputs(text: str) -> str:
    """Fixes some known structural bugs.

    Args:
        text (str): Bugged output.

    Returns:
        str: Corrected output.
    """
    text = text.replace(')\n ', '),\n ')
    return text


# The function takes a single string parameter
# Create a test string with the pattern that needs fixing
text_with_bug = "some code)\n some more code"

ARGS = {
    "text": text_with_bug
}
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_class Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/evaluate.py
code served (permissive licence) · get_code("40c63137e2539113")
How it ran

Ran 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 type. 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)

# The function get_class takes a class_path string and dynamically imports
# and returns the class at that path. It splits by '.', imports the first
# component, then uses getattr to traverse the rest.

# We need to provide a valid class_path string that can be resolved.
# A simple choice is to use a built-in or standard library class.
# For example: 'torch.nn.Linear' or 'torch.Tensor'

class_path = "torch.nn.Linear"

ARGS = {
    "class_path": class_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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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_class Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/generate_data.py
code served (permissive licence) · get_code("d5e035b43805bee4")
How it ran

Ran 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 type. 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

# This function takes a class_path string and dynamically imports and returns
# the class/object at that path. We need to provide a valid class_path.

# Let's use a built-in class path that exists in standard libraries
# For example: 'torch.nn.Linear' or 'torch.Tensor'

ARGS = {
    'class_path': 'torch.nn.Linear'
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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_device_map Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/model/load_model.py
code served (permissive licence) · get_code("47660e151147cb9e")
How it ran

Ran 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. 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 os
import logging

torch.manual_seed(0)

# Set up basic logging to avoid warnings during execution
logging.basicConfig(level=logging.INFO)

# Test case 1: force_auto_device_map=True without DDP environment
ARGS = {
    "force_auto_device_map": True,
    "max_memory_MB": 1024,
    "use_better_transformer": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
get_num_return_sentences Ran
ran, honoured the contract we drafted
hitz-zentroa/GoLLIE/src/paraphrase/utils.py
code served (permissive licence) · get_code("d4149ebae2786013")
How it ran

Ran 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 json
import tempfile
import os

# Create a temporary config file
temp_dir = tempfile.mkdtemp()
config_path = os.path.join(temp_dir, "config.json")

config = {
    "num_return_sequences": 5
}

with open(config_path, 'w') as f:
    json.dump(config, f)

ARGS = {
    "config_path": config_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 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
get_trainable_parameters Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hitz-zentroa/GoLLIE/src/model/model_utils.py
code served (permissive licence) · get_code("f32e00b404c9eec4")
How it ran

Ran 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 torch
import torch.nn as nn
from transformers import PreTrainedModel

torch.manual_seed(0)

class SimplePreTrainedModel(PreTrainedModel):
    """Minimal PreTrainedModel subclass for testing get_trainable_parameters."""
    
    def __init__(self):
        # Create a minimal config
        from transformers import PretrainedConfig
        config = PretrainedConfig()
        super().__init__(config)
        
        # Add some simple parameters
        self.layer1 = nn.Linear(4, 8)
        self.layer2 = nn.Linear(8, 3)
        
        # Make some parameters non-trainable
        self.layer2.weight.requires_grad = False
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        return x

# Create model instance
model = SimplePreTrainedModel()

ARGS = {
    "model": model,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
prepare_data Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/dataset/dataset.py
code served (permissive licence) · get_code("67c3b2ef9e5c371c")
How it ran

Ran 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 BatchEncoding. 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
from transformers import BatchEncoding

class StandInTokenizer:
    """Minimal tokenizer implementation for testing."""
    def __init__(self):
        self.eos_token_id = 50256
    
    def __call__(self, text=None, text_target=None, max_length=2048, truncation=True, 
                 padding=False, return_tensors=None, add_special_tokens=True):
        """Tokenize text and return BatchEncoding."""
        if text_target is not None:
            # For encoder-decoder target tokenization
            tokens = [100, 101, 102, self.eos_token_id][:max_length]
        else:
            # For input tokenization
            tokens = [1000, 1001, 1002, self.eos_token_id][:max_length]
        
        attention_mask = [1] * len(tokens)
        
        return BatchEncoding({
            'input_ids': tokens,
            'attention_mask': attention_mask
        })

# Create a minimal tokenizer instance
tokenizer = StandInTokenizer()

# Example string with "result =" separator
example_decoder = "prompt text result = output text"
example_causal = "def function(): result = value"

ARGS = {
    'example': example_causal,
    'tokenizer': tokenizer,
    'is_encoder_decoder': False,
    'max_length': 2048,
    'inference': False,
    'prompt_loss_weight': 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BatchEncoding — a BatchEncoding output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BatchEncoding output the recorded ndim 1 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_model_for_kbit_training Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/model/model_utils.py
code served (permissive licence) · get_code("4fa8a9b51ecfca0c")
How it ran

Ran 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 MockModel. 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)

class MockEmbedding(nn.Module):
    def __init__(self):
        super().__init__()
        self.weight = nn.Parameter(torch.randn(10, 4, dtype=torch.float32))
    
    def forward(self, x):
        return torch.nn.functional.embedding(x, self.weight)

class MockModel(nn.Module):
    def __init__(self, is_loaded_in_4bit=True):
        super().__init__()
        self.is_loaded_in_4bit = is_loaded_in_4bit
        self.is_loaded_in_8bit = False
        
        self.embedding = MockEmbedding()
        self.layer_norm = nn.LayerNorm(4, dtype=torch.float32)
        self.lm_head = nn.Linear(4, 10, dtype=torch.float32)
        
        self.gradient_checkpointing = False
    
    def get_input_embeddings(self):
        return self.embedding
    
    def enable_input_require_grads(self):
        pass
    
    def gradient_checkpointing_enable(self):
        self.gradient_checkpointing = True
    
    def forward(self, x):
        x = self.embedding(x)
        x = self.layer_norm(x)
        x = self.lm_head(x)
        return x

model = MockModel(is_loaded_in_4bit=True)

ARGS = {
    'model': model,
    'use_gradient_checkpointing': True,
    'layer_norm_names': ['layer_norm'],
    'output_embedding_layer_name': 'lm_head'
}
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 MockModel — a MockModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockModel 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
remove_hallucinations Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/evaluate.py
code served (permissive licence) · get_code("02c4c2306e3a0610")
How it ran

Ran 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 torch

class Prediction:
    """Stand-in prediction class that has an exists_in method."""
    def __init__(self, text):
        self.text = text
    
    def exists_in(self, sentence):
        """Check if this prediction's text exists in the sentence."""
        return self.text in sentence

torch.manual_seed(0)

ARGS = {
    "unlabelled_sentence": "The quick brown fox jumps over the lazy dog",
    "predictions": [
        Prediction("quick brown"),
        Prediction("lazy dog"),
        Prediction("not in sentence"),
        Prediction("fox"),
    ]
}
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
rmsnorm_func Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("349dce8e37362617")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. 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)

# Analyze the function:
# - hidden_states: tensor that is converted to float32, has .pow(), .mean(), operations, and final .to(input_dtype)
# - weight: tensor that is multiplied with hidden_states
# - variance_epsilon: scalar added to variance

# hidden_states shape: (batch, ..., dim) where mean(-1) is taken, so last dim is important
# weight shape: must broadcast with hidden_states after normalization

# Create tiny tensors
batch_size = 2
hidden_dim = 4

hidden_states = torch.randn(batch_size, hidden_dim, dtype=torch.float32)
weight = torch.ones(hidden_dim, dtype=torch.float32)
variance_epsilon = 1e-6

ARGS = {
    "hidden_states": hidden_states,
    "weight": weight,
    "variance_epsilon": variance_epsilon,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_bilou_encoding Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/tasks/label_encoding.py
code served (permissive licence) · get_code("d2660d11a380300e")
How it ran

Ran 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 torch
import numpy as np

# Setup code for to_bilou_encoding function

# The function takes a list of tags and converts them to BILOU encoding
# Tags should be in BIO format (B-TYPE, I-TYPE, O)
# BILOU format uses: B (Beginning), I (Inside), L (Last), O (Outside), U (Unit/single)

ARGS = {
    "tags": [
        "B-PER",
        "I-PER",
        "O",
        "B-LOC",
        "O",
        "B-ORG",
        "I-ORG",
        "I-ORG",
        "O"
    ]
}
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 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
to_iob2_encoding Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/tasks/label_encoding.py
code served (permissive licence) · get_code("6c7118a2f5cc50e4")
How it ran

Ran 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 torch

# Construct valid arguments for to_iob2_encoding
# The function takes a list of IOB-format tags and converts them to IOB2 format

# Create a list of tags in various formats that the function will process
tags = [
    'B-PER',      # Beginning of person entity
    'I-PER',      # Inside person entity
    'O',          # Outside any entity
    'U-ORG',      # Unit (single token entity) of organization
    'B-LOC',      # Beginning of location entity
    'I-LOC',      # Inside location entity
    'I-ORG',      # Inside organization (but previous was not ORG, so should become B-ORG)
    'O',
    'B-PER',
    'I-PER',
]

ARGS = {
    'tags': tags
}
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
to_iob_encoding Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/tasks/label_encoding.py
code served (permissive licence) · get_code("f709c942540a746b")
How it ran

Ran 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 typing import List

def to_iob_encoding(tags: List[str]) -> List[str]:
    prev_tag_b: str = 'O'
    prev_tag_t: str = ''
    for i in range(len(tags)):
        tag = tags[i]
        if tag == 'O':
            prev_tag_b = 'O'
            prev_tag_t = ''
        else:
            try:
                b, t = tag.split('-')
            except ValueError:
                raise ValueError(f'Error tag {tag}, unable to split the tag in 2 fields.')
            if (b == 'B' or b == 'U') and prev_tag_b != 'O' and (prev_tag_t == t):
                tags[i] = f'B-{t}'
            else:
                tags[i] = f'I-{t}'
            prev_tag_b = b
            prev_tag_t = t
    return tags


# Test cases with various tag sequences
tags_1 = ['O', 'B-PER', 'I-PER', 'O', 'B-LOC', 'I-LOC', 'I-LOC']
tags_2 = ['U-PER', 'B-ORG', 'I-ORG', 'O']
tags_3 = ['B-PER', 'B-PER', 'I-LOC', 'O', 'U-ORG']

ARGS = {
    'tags': ['O', 'B-PER', 'I-PER', 'O', 'B-LOC', 'I-LOC', 'I-LOC']
}
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
update_guidelines Ran
ran; our contract draft was wrong, not the code
hitz-zentroa/GoLLIE/src/paraphrase/utils.py
code served (permissive licence) · get_code("e05fd99ba3c452ba")
How it ran

Ran 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

# Construct the arguments for update_guidelines

# paraphrases: List[str] - a list of paraphrase strings
paraphrases = [
    "This is a paraphrase one.",
    "This is a paraphrase two.",
    "This is a paraphrase three."
]

# guidelines: Dict[str, Dict[str, List[str]]] 
# Structure: {task_name: {language: [existing_guidelines]}}
guidelines = {
    "task_1": {
        "en": ["Guideline 1", "Guideline 2"],
        "fr": ["Directive 1"]
    },
    "task_2": {
        "en": ["Rule 1"],
        "fr": ["Règle 1", "Règle 2"]
    },
    "task_3": {
        "en": ["Instruction 1", "Instruction 2", "Instruction 3"],
        "fr": ["Consigne 1"]
    }
}

# language: str - the target language
language = "en"

ARGS = {
    "paraphrases": paraphrases,
    "guidelines": guidelines,
    "language": language
}
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
LlamaAttention Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("04267dd6afc2cfd2")
How it ran

no invocation recorded.

LlamaDecoderLayer Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("71e315c10d6d705e")
How it ran

no invocation recorded.

LlamaForCausalLM Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("fb6a17240fa2036c")
How it ran

no invocation recorded.

LlamaModel Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("b6c0bf260825919c")
How it ran

no invocation recorded.

batch_tokenization Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/GoLLIE/src/dataset/dataset.py
code served (permissive licence) · get_code("d28dcf85671df49b")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/GoLLIE/src/model/load_model.py
code served (permissive licence) · get_code("bfca1181a79266f6")
How it ran

no invocation recorded.

repeat_kv Not yet run
unverified (harvested, no recorded run)
hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py
code served (permissive licence) · get_code("44b3ce4579f7806b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 8 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 5 later) and 16 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
rmsnorm_func
brick of this paper's assembly: helper
8 other papers
7 later, 1 undated
2312.15166 (2023-12)
SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scaling
2402.09739 (2024-02)
QuRating: Selecting High-Quality Data for Training Language Models
2410.02660 (2024-10)
How to Train Long-Context Language Models (Effectively)
and 5 more not named here
repeat_kv
brick of this paper's assembly: helper
3 other papers
2 later, 1 undated
2312.15166 (2023-12)
SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scaling
2410.05076 (2024-10)
TidalDecode: Fast and Accurate LLM Decoding with Position Persistent Sparse Attention
openreview_trSWJ99WzS
Less Is More: Fast and Accurate Reasoning with Cross-Head Unified Sparse Attention
find_all_linear_names 1 other paper
1 dated earlier
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
get_device_map 1 other paper
1 dated earlier
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
get_trainable_parameters 1 other paper
1 dated earlier
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
to_bilou_encoding 1 other paper
1 later
2025.findings-acl.931 (2025 (year only))
The Devil Is in the Word Alignment Details: On Translation-Based Cross-Lingual Transfer for Token Classification Tasks
to_iob2_encoding 1 other paper
1 later
2025.findings-acl.931 (2025 (year only))
The Devil Is in the Word Alignment Details: On Translation-Based Cross-Lingual Transfer for Token Classification Tasks
to_iob_encoding 1 other paper
1 later
2025.findings-acl.931 (2025 (year only))
The Devil Is in the Word Alignment Details: On Translation-Based Cross-Lingual Transfer for Token Classification Tasks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs) combined with instruction tuning have made significant progress when generalizing to unseen tasks. However, they have been less successful in Information Extraction (IE), lagging behind task-specific models. Typically, IE tasks are characterized by complex annotation guidelines that describe the task and give examples to humans. Previous attempts to leverage such information have failed, even with the largest models, as they are not able to follow the guidelines out of the box. In this paper, we propose GoLLIE (Guidelinefollowing Large Language Model for IE), a model able to improve zero-shot results on unseen IE tasks by virtue of being fine-tuned to comply with annotation guidelines. Comprehensive evaluation empirically demonstrates that GoLLIE is able to generalize to and follow unseen guidelines, outperforming previous attempts at zero-shot information extraction. The ablation study shows that detailed guidelines are key for good results. Code, data, and models are publicly available: https://github.com/hitz-zentroa/GoLLIE.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.03668")
get_code_for_paper("2310.03668")
have("2310.03668")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.03668.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.03668.svg)](https://syntology.ai/paper/2310.03668)

Connect an agent — have() is free.