SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.07249 · 2026

Stoicheia: Character-Level Masked Diffusion for Ancient Greek Textual Restoration, Parsing, and Metrical Scansion

Eric Cullhed, Albin Thörn

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2608.07249.json · badge: /api/ran/2608.07249.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
ericu9500/stoicheia community
Papers with Code archive
12 ran · 5 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("084ae23049666bd7")
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, Attention: 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)

# Define RMSNorm
class RMSNorm(nn.Module):
    def __init__(self, d, eps=1e-06):
        super().__init__()
        self.w = nn.Parameter(torch.ones(d))
        self.eps = eps

    def forward(self, x):
        x = x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps)
        return x * self.w

# Define RoPE
class RoPE(nn.Module):
    def __init__(self, dim, base=10000.0):
        super().__init__()
        self.dim = dim
        self.base = base

    def cos_sin(self, pos):
        inv = 1.0 / self.base ** (torch.arange(0, self.dim, 2, device=pos.device).float() / self.dim)
        f = torch.outer(pos.float(), inv)
        emb = torch.cat([f, f], -1)
        return (emb.cos(), emb.sin())

# Define Attention (provided in the function)
def _rotate_half(x):
    d = x.shape[-1] // 2
    return torch.cat([-x[..., d:], x[..., :d]], -1)

def apply_rope(q, k, cos, sin):
    cos = cos[None, None]
    sin = sin[None, None]
    return (q * cos + _rotate_half(q) * sin, k * cos + _rotate_half(k) * sin)

class Attention(nn.Module):
    def __init__(self, d, n_heads, rope: RoPE, qk_norm=False):
        super().__init__()
        self.h = n_heads
        self.dh = d // n_heads
        self.qkv = nn.Linear(d, 3 * d, bias=False)
        self.o = nn.Linear(d, d, bias=False)
        self.rope = rope
        self.qk_norm = qk_norm
        if qk_norm:
            self.q_norm = RMSNorm(self.dh)
            self.k_norm = RMSNorm(self.dh)

    def forward(self, x, pos, attn_mask):
        B, T, D = x.shape
        qkv = self.qkv(x).view(B, T, 3, self.h, self.dh).permute(2, 0, 3, 1, 4)
        q, k, v = (qkv[0], qkv[1], qkv[2])
        if self.qk_norm:
            q, k = (self.q_norm(q), self.k_norm(k))
        cos, sin = self.rope.cos_sin(pos)
        cos, sin = (cos.to(x.dtype), sin.to(x.dtype))
        q, k = apply_rope(q, k, cos, sin)
        out = torch.nn.functional.scaled_dot_product_attention(q, k, v, attn_mask=attn_mask)
        out = out.transpose(1, 2).reshape(B, T, D)
        return self.o(out)

# Create arguments
d = 4
n_heads = 2
rope = RoPE(dim=d)
x = torch.randn(2, 3, d)
pos = torch.arange(3)
attn_mask = None

ARGS = {
    "d": d,
    "n_heads": n_heads,
    "rope": rope,
    "qk_norm": False
}
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 Attention — 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 Attention 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
Biaffine Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("9c9e6b6dd10bc9ae")
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, Biaffine: 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 = {
    'd_in': 4,
    'n_out': 2,
    'bias_x': True,
    'bias_y': True,
}
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 Biaffine — 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 Biaffine 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
CharBertJointConfig Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("9541e8ac9879bc9c")
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, CharBertJointConfig: 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 transformers import PretrainedConfig

torch.manual_seed(0)

ARGS = {
    'n_alpha': 24,
    'mask_id': 24,
    'blank_id': 25,
    'pad_id': 26,
    'n_char_ids': 27,
    'n_boundary': 4,
    'n_dia': 49,
    'n_punct': 7,
    'd_model': 1024,
    'n_heads': 16,
    'depth': 32,
    'char_window': 256,
    'attn_impl': 'sdpa',
    'qk_norm': True,
    'use_cap': True,
    'pool': 'mean',
    'head_dropout': 0.33,
    'scalar_mix': True,
    'xpos_len': 9,
    'n_xpos_classes': (14, 4, 4, 8, 8, 5, 5, 6, 3),
    'n_script': 18485,
    'n_upos': 13,
    'use_flat': True,
    'n_flat_tags': 1249,
    'd_arc': 500,
    'd_rel': 150,
    'n_labels': 24,
    'parse_dropout': 0.33,
    'max_chars': 2048,
    'max_words': 384,
}
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 CharBertJointConfig — 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 CharBertJointConfig 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
CharBertJointOutput Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("3dc715cec6b7b443")
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, CharBertJointOutput: 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 dataclasses import dataclass
from typing import Optional

torch.manual_seed(0)

# Create small tensors with distinct dimensions for different meanings
batch_size = 2
seq_len = 4
num_xpos_classes = 3
num_script_classes = 5
num_upos_classes = 6
num_flat_classes = 7
num_rel_classes = 8

xpos_logits_tensor = torch.randn(batch_size, seq_len, num_xpos_classes)
script_logits_tensor = torch.randn(batch_size, seq_len, num_script_classes)
upos_logits_tensor = torch.randn(batch_size, seq_len, num_upos_classes)
flat_logits_tensor = torch.randn(batch_size, seq_len, num_flat_classes)
arc_scores_tensor = torch.randn(batch_size, seq_len, seq_len)
rel_scores_tensor = torch.randn(batch_size, seq_len, seq_len, num_rel_classes)
word_mask_tensor = torch.ones(batch_size, seq_len, dtype=torch.bool)

hidden_states_tuple = (
    torch.randn(batch_size, seq_len, 12),
    torch.randn(batch_size, seq_len, 12),
)

ARGS = {
    "xpos_logits": (xpos_logits_tensor,),
    "script_logits": script_logits_tensor,
    "upos_logits": upos_logits_tensor,
    "flat_logits": flat_logits_tensor,
    "arc_scores": arc_scores_tensor,
    "rel_scores": rel_scores_tensor,
    "word_mask": word_mask_tensor,
    "hidden_states": hidden_states_tuple,
}
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 CharBertJointOutput — 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 CharBertJointOutput 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
GeGLU Ran
ran on a synthesized input
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("65b89742a75e80e5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F

class GeGLU(nn.Module):

    def __init__(self, d, mult=8 / 3):
        super().__init__()
        hidden = int(d * mult)
        hidden = (hidden + 63) // 64 * 64
        self.wi = nn.Linear(d, 2 * hidden, bias=False)
        self.wo = nn.Linear(hidden, d, bias=False)

    def forward(self, x):
        a, b = self.wi(x).chunk(2, -1)
        return self.wo(F.gelu(a) * b)


INIT_ARGS = {
    'd': 4,
    'mult': 8 / 3,
}

ARGS = {
    'x': torch.randn(2, 3, 4),
}

if __name__ == '__main__':
    model = GeGLU(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("49ad0eee404b665d")
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, MLP: 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 = {
    "d_in": 4,
    "d_out": 3,
    "dropout": 0.33,
}
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 MLP — 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 MLP 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
RMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("2286a7c35ee41c87")
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, RMSNorm: 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)

# RMSNorm.__init__ takes: self, d, eps=1e-06
# RMSNorm.forward takes: self, x

# d is the dimension parameter (int)
# x is a tensor that gets normalized

# Looking at the forward method:
# - x.pow(2).mean(-1, keepdim=True) operates on the last dimension
# - x * self.w multiplies element-wise, so w must have shape (d,)
# So d should match the last dimension of x

d = 4
eps = 1e-06

# Create a small input tensor with batch size 2, feature dimension d=4
# Shape: (batch=2, features=4)
x = torch.randn(2, 4)

ARGS = {
    "d": d,
    "eps": eps
}
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 RMSNorm — 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 RMSNorm 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
RoPE Ran
ran on a synthesized input · constructed an object; no result was computed
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("532f8d0c6ce45eab")
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, RoPE: 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)

class RoPE(nn.Module):

    def __init__(self, dim, base=10000.0):
        super().__init__()
        self.dim = dim
        self.base = base

    def cos_sin(self, pos):
        inv = 1.0 / self.base ** (torch.arange(0, self.dim, 2, device=pos.device).float() / self.dim)
        f = torch.outer(pos.float(), inv)
        emb = torch.cat([f, f], -1)
        return (emb.cos(), emb.sin())

# Create test arguments
dim = 4
base = 10000.0

ARGS = {
    "dim": dim,
    "base": base
}
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 RoPE — 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 RoPE 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
_rotate_half Ran
ran, honoured the contract we drafted
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("021ff3d95f37ce3a")
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)

# The function _rotate_half takes a tensor x and:
# 1. Gets the last dimension size and divides by 2
# 2. Splits the tensor along the last dimension at the midpoint
# 3. Concatenates the second half (negated) with the first half

# Create a small tensor with even last dimension
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, 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
apply_rope Ran
ran; our contract draft was wrong, not the code
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("7b0a953e8c8431de")
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 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for q, k, cos, sin
# q and k need to have even last dimension for _rotate_half to work
# Using batch=2, seq_len=3, dim=4
batch_size = 2
seq_len = 3
dim = 4

q = torch.randn(batch_size, seq_len, dim)
k = torch.randn(batch_size, seq_len, dim)

# cos and sin should be 1D tensors of shape (dim,) based on how they're used
# They get reshaped with [None, None] to become (1, 1, dim)
cos = torch.randn(dim)
sin = torch.randn(dim)

ARGS = {
    "q": q,
    "k": k,
    "cos": cos,
    "sin": sin
}
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, ndim 4, 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
build_attn_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("07ef883a20067b39")
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 4, dtype family float, shape (2, 1, 4, 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)

# Construct arguments for build_attn_mask
seg_id = torch.tensor([[0, 0, 1, 1], [0, 1, 1, 0]], dtype=torch.long)  # (B=2, T=4)
window = 2
device = 'cpu'
dtype = torch.float32

ARGS = {
    'seg_id': seg_id,
    'window': window,
    'device': device,
    'dtype': dtype
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 4, 4) — shape (2, 1, 4, 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
pool_words Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("edd547ffb31a3354")
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 3, dtype family float, shape (2, 5, 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)

# Parameters for pool_words function
B = 2  # batch size
T = 3  # sequence length
D = 4  # hidden dimension
W = 5  # vocabulary size

# Create hidden tensor (B, T, D)
hidden = torch.randn(B, T, D)

# Create word_id tensor (B, T) with values in [-1, W)
# Some values are -1 (invalid), others are in [0, W)
word_id = torch.tensor([
    [0, 1, -1],
    [2, 3, 4]
], dtype=torch.long)

# W is the vocabulary size / number of words
W_param = W

# mode can be 'mean' or 'last'
mode = 'mean'

ARGS = {
    'hidden': hidden,
    'word_id': word_id,
    'W': W_param,
    'mode': mode
}
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 3, dtype family float, shape (2, 5, 4) — shape (2, 5, 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
Block Not yet run
unverified (harvested, no recorded run)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("83e8814857ba170e")
How it ran

no invocation recorded.

CharBertForTaggingAndParsing Not yet run
unverified (harvested, no recorded run)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("783e134e0055b56c")
How it ran

no invocation recorded.

_BiaffineHead Not yet run
unverified (harvested, no recorded run)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("b467cb379175e2fd")
How it ran

no invocation recorded.

_Encoder Not yet run
unverified (harvested, no recorded run)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("dcf24c000ba24ea1")
How it ran

no invocation recorded.

_Tagger Not yet run
unverified (harvested, no recorded run)
ericu9500/stoicheia/hf_release/modeling_char_bert_joint.py
code served (permissive licence) · get_code("30b6145dc48e620a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 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.

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

We introduce Stoicheia, a 405M-parameter character-level masked-diffusion encoder for Ancient Greek whose input factors into five aligned, independently maskable planes: letters, word and sentence boundaries, diacritics, capitalization, and punctuation. A single backbone can therefore restore lacunae, re-segment, accentuate, and punctuate unspaced text without task-specific retokenization. We pretrain it on an open, revision-pinned corpus of ∼361M words and release eleven checkpoints: ten rotated, decontaminated folds -guaranteeing that, for any given literary passage, at least one released model has never seen its text -and one with no exposure to documentary texts. Three experiments -reconstruction of damaged inscriptions and papyri, morphosyntactic tagging and dependency parsing, and macronization with metrical scansion -each carry a matched random-initialization control, isolating what character-level diffusion pretraining contributes: 5.6 CER points on inscription reconstruction, 12.9 LAS on parsing, and 6.0 points of balanced accuracy on macronization. On Ithaca's own test split, with identical frozen samples and strict scoring, Stoicheia reduces character error relative to both prior state-ofthe-art systems, from 24.6 (Ithaca) and 23.5 (its 2025 Aeneas-framework successor) to 15.5, and raises top-1 accuracy from 63.0 and 64.0 to 74.5.

For agents

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

get_harvested_code_for_paper("2608.07249")
get_code_for_paper("2608.07249")
have("2608.07249")

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

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

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

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

Connect an agent — have() is free.