SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.14100 · 2022

GIT: A Generative Image-to-text Transformer for Vision and Language

arXiv · PDF · Open in the Atlas

Code that ran

14 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 14 have no contract verdict; 0 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/2205.14100.json · badge: /api/ran/2205.14100.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
microsoft/GenerativeImage2Text canonical (classifier label)
classifier basis not recorded on the link
14 ran · 7 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/data_layer/builder.py
code served (permissive licence) · get_code("5d94233d7342dec0")
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, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Test case 1: batch of dictionaries with tensors
batch_dicts = [
    {"x": torch.randn(2, 3), "y": torch.randn(2, 4)},
    {"x": torch.randn(2, 3), "y": torch.randn(2, 4)},
]

# Test case 2: batch of tuples with tensors
batch_tuples = [
    (torch.randn(3, 4), torch.randn(2,)),
    (torch.randn(3, 4), torch.randn(2,)),
]

# Test case 3: batch of tensors with varying shapes (1D)
batch_1d_varied = [
    torch.randn(3),
    torch.randn(5),
]

# Test case 4: batch of tensors with varying shapes (2D)
batch_2d_varied = [
    torch.randn(2, 3),
    torch.randn(3, 3),
]

# Test case 5: batch of tensors with varying shapes (3D)
batch_3d_varied = [
    torch.randn(2, 3, 4),
    torch.randn(3, 3, 4),
]

# Test case 6: batch of uniform tensors
batch_uniform = [
    torch.randn(2, 4),
    torch.randn(2, 4),
]

# Test case 7: batch of lists of tensors
batch_lists = [
    [torch.randn(2, 3), torch.randn(1, 4)],
    [torch.randn(2, 3), torch.randn(1, 4)],
]

# Choose one batch for ARGS
ARGS = {
    "batch": batch_2d_varied
}
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 Tensor, ndim 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 3) 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
convert2valid Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/layers/decoder.py
code served (permissive licence) · get_code("58abe6b119b5a2b9")
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, 3) 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

torch.manual_seed(0)

# Test case 1: length is None
shape_1 = (2, 4)
length_1 = None
device_1 = 'cpu'

# Test case 2: length is provided
shape_2 = (2, 3)
length_2 = torch.tensor([2, 3], device='cpu')
device_2 = 'cpu'

# Choose one test case for ARGS
ARGS = {
    'shape': shape_2,
    'length': length_2,
    'device': device_2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
create_projecton_layer Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/layers/decoder.py
code served (permissive licence) · get_code("b9dddc85faf8d975")
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 Linear. 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)

# Test case 1: None projection type
ARGS = {
    'visual_projection_type': None,
    'visual_feature_size': 256,
    'textual_feature_size': 512
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
dict_get_path_value Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/common.py
code served (permissive licence) · get_code("f22bedfd403d31e3")
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

torch.manual_seed(0)

# Test case 1: Simple nested dictionary
d1 = {
    'name': 'John',
    'age': 30,
    'nested': {
        'city': 'NYC',
        'zip': 10001
    }
}

# Test case 2: Dictionary with lists
d2 = {
    'items': ['apple', 'banana', 'cherry'],
    'coords': [
        {'x': 1, 'y': 2},
        {'x': 3, 'y': 4}
    ]
}

# Test case 3: Dictionary with type markers
d3 = {
    'i0': 100,
    'data': 'value',
    'nested': {
        'i1': 200,
        'name': 'test'
    }
}

# Test case 4: Mixed structure
d4 = {
    'users': [
        {'id': 1, 'name': 'Alice'},
        {'id': 2, 'name': 'Bob'}
    ]
}

ARGS = {
    'd': d1,
    'p': 'nested$city',
    'with_type': 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 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
dict_has_path Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/common.py
code served (permissive licence) · get_code("6f65eda04781768f")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Test case 1: Simple nested dictionary with string keys
d1 = {
    'a': {
        'b': {
            'c': 'value'
        }
    },
    'x': [1, 2, 3]
}

# Test case 2: Dictionary with list containing nested dicts
d2 = {
    'items': [
        {'name': 'first'},
        {'name': 'second'}
    ]
}

# Test case 3: Dictionary with mixed types
d3 = {
    'data': {
        'nested': 'found'
    },
    'list': ['a', 'b', 'c']
}

ARGS = {
    'd': d1,
    'p': 'a$b$c',
    'with_type': 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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dict_parse_key Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/common.py
code served (permissive licence) · get_code("da18a7817154dd3d")
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 dict_parse_key(k, with_type):
    if with_type:
        if k[0] == 'i':
            return int(k[1:])
        else:
            return k[1:]
    return k

# Test case 1: with_type=False, simple string key
k1 = "simple_key"
with_type1 = False

# Test case 2: with_type=True, integer type indicator
k2 = "i42"
with_type2 = True

# Test case 3: with_type=True, string type indicator
k3 = "svalue"
with_type3 = True

# We'll use the first test case
ARGS = {
    "k": "simple_key",
    "with_type": 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 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_image_transform Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/inference.py
code served (permissive licence) · get_code("2012616da59774c7")
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 Compose. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image

# Create a minimal param dict for get_image_transform
param = {
    'test_crop_size': 224,
    'test_respect_ratio_max': 512
}

ARGS = {
    'param': param
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_inception_train_transform Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/data_layer/transform.py
code served (permissive licence) · get_code("4fa83e987f597120")
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 Compose. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from torchvision.transforms import transforms
from PIL import Image

torch.manual_seed(0)

ARGS = {
    'bgr2rgb': False,
    'crop_size': 224,
    'small_scale': 0.08,
    'normalize': transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
    'no_color_jitter': False,
    'no_flip': False,
    'no_aspect_dist': False,
    'resize_crop': None,
    'max_size': None,
    'interpolation': Image.BILINEAR,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_nick_name Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/taxonomy.py
code served (permissive licence) · get_code("e3320f89bc0f72e9")
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

class MockObject:
    def name(self):
        return "test_class_name"

ARGS = {
    "s": MockObject()
}
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
load_image_by_pil Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/process_image.py
code served (permissive licence) · get_code("997799ac1eb508ab")
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 Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io
from PIL import Image
import numpy as np

# Create a small test image as bytes
img_array = np.uint8(np.random.rand(10, 10, 3) * 255)
test_image = Image.fromarray(img_array, 'RGB')
img_bytes = io.BytesIO()
test_image.save(img_bytes, format='PNG')
image_bytes = img_bytes.getvalue()

ARGS = {
    'file_name': image_bytes,
    'respect_exif': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parallel_map Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/tsv_io.py
code served (permissive licence) · get_code("1054c0086f84edf2")
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 2, 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

torch.manual_seed(0)

# Define a simple function that will be mapped over tasks
def simple_task_func(task):
    """A simple function that processes a task."""
    x, y = task
    return x + y

# Create small task data
task1 = (torch.tensor([1.0, 2.0]), torch.tensor([3.0, 4.0]))
task2 = (torch.tensor([5.0, 6.0]), torch.tensor([7.0, 8.0]))
task3 = (torch.tensor([9.0, 10.0]), torch.tensor([11.0, 12.0]))

all_tasks = [task1, task2, task3]

ARGS = {
    "func": simple_task_func,
    "all_task": all_tasks,
    "num_worker": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pathos, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
read_to_character Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/tsv_io.py
code served (permissive licence) · get_code("113f9525ed06575b")
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 bytes. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io

ARGS = {
    "fp": io.BytesIO(b"hello world stop end of stream"),
    "c": b"s"[0] if isinstance(b"s", bytes) else ord("s")
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
recursive_to_device Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/torch_common.py
code served (permissive licence) · get_code("ed21fe61a5fa43b4")
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

torch.manual_seed(0)

# Create a small custom module with a 'to' method
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create test data structures
model = SimpleModule()
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(3, 5)

nested_structure = {
    'model': model,
    'tensors': [tensor1, tensor2],
    'nested_dict': {
        'tensor': torch.randn(2, 2),
        'value': 42
    },
    'tuple_data': (torch.randn(1, 4), "string_value"),
    'scalar': 3.14
}

ARGS = {
    'd': nested_structure,
    'device': torch.device('cpu'),
    'kwargs': {}
}
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
resize_2d_pos_embed Ran
ran on a synthesized input
microsoft/GenerativeImage2Text/generativeimage2text/torch_common.py
code served (permissive licence) · get_code("9564dcc532255c43")
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 (5, 8) 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:
# - origin_pos_embed: tensor, shape (batch, seq_len, embed_dim) or (seq_len, embed_dim)
#   - Must satisfy: origin_pos_embed.shape[1] == grid_before * grid_before + 1
#   - Gets reshaped to (grid_before, grid_before, embed_dim)
# - origin_input: int, divisible by patch_size
# - patch_size: int
# - after_input: int, divisible by patch_size

# Let's set up concrete values:
# patch_size = 4
# origin_input = 16 (4*4 grid = 16 patches + 1 cls token = 17 tokens)
# after_input = 8 (2*2 grid = 4 patches + 1 cls token = 5 tokens)
# embed_dim = 8

patch_size = 4
origin_input = 16
after_input = 8
embed_dim = 8

grid_before = origin_input // patch_size  # 4
grid_after = after_input // patch_size    # 2

# origin_pos_embed shape should be (grid_before*grid_before + 1, embed_dim)
# = (16 + 1, 8) = (17, 8)
seq_len = grid_before * grid_before + 1  # 17

origin_pos_embed = torch.randn(seq_len, embed_dim)

ARGS = {
    "origin_pos_embed": origin_pos_embed,
    "origin_input": origin_input,
    "patch_size": patch_size,
    "after_input": after_input,
}
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 (5, 8) — shape (5, 8) 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
create_decoder Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/layers/decoder.py
code served (permissive licence) · get_code("57a3be0014115531")
How it ran

no invocation recorded.

evaluate_on_coco_caption Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/inference.py
code served (permissive licence) · get_code("6bcc61acfa076eea")
How it ran

no invocation recorded.

get_git_model Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/model.py
code served (permissive licence) · get_code("a6a3f6c029b05906")
How it ran

no invocation recorded.

get_image_encoder Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/model.py
code served (permissive licence) · get_code("e1d4e57a259b8791")
How it ran

no invocation recorded.

get_output_vocab_tokens Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/trie_decoder.py
code served (permissive licence) · get_code("8c354e83280aa3fc")
How it ran

no invocation recorded.

get_trie Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/trie_decoder.py
code served (permissive licence) · get_code("b5c278f17b7830d7")
How it ran

no invocation recorded.

noffset_to_synset Not yet run
unverified (harvested, no recorded run)
microsoft/GenerativeImage2Text/generativeimage2text/taxonomy.py
code served (permissive licence) · get_code("a6ff5ef9a5881a56")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 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 21 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

In this paper, we design and train a Generative Image-to-text Transformer, GIT, to unify vision-language tasks such as image/video captioning and question answering. While generative models provide a consistent network architecture between pre-training and fine-tuning, existing work typically contains complex structures (uni/multi-modal encoder/decoder) and depends on external modules such as object detectors/taggers and optical character recognition (OCR). In GIT, we simplify the architecture as one image encoder and one text decoder under a single language modeling task. We also scale up the pre-training data and the model size to boost the model performance. Without bells and whistles, our GIT establishes new state of the arts on 12 challenging benchmarks with a large margin. For instance, our model surpasses the human performance for the first time on TextCaps (138.2 vs. 125.5 in CIDEr). Furthermore, we present a new scheme of generation-based image classification and scene text recognition, achieving decent performance on standard benchmarks. Codes are released at \url{https://github.com/microsoft/GenerativeImage2Text}.

For agents

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

get_harvested_code_for_paper("2205.14100")
get_code_for_paper("2205.14100")
have("2205.14100")

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

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

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

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

Connect an agent — have() is free.