SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.08914 · 2023

CogAgent: A Visual Language Model for GUI Agents

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 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 0 have no contract verdict; 12 failures of our instrument; 6 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/2312.08914.json · badge: /api/ran/2312.08914.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
THUDM/CogAgent canonical (classifier label)
classifier basis: census
6 ran · 6 no recorded run
thudm/cogvlm canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
data_collator Ran
ran; our contract draft was wrong, not the code
thudm/cogvlm/finetune_demo/evaluate_cogvlm_demo.py
code served (permissive licence) · get_code("54a2b4c8804d95b2")
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 numpy as np

torch.manual_seed(0)

# Create example batch items following the structure expected by data_collator
example1 = {
    'vision': {
        'pixel_values': torch.randn(2, 3, 4, 4),
        'image_sizes': [224, 224]
    },
    'input_ids': torch.tensor([[101, 2054, 2003, 102]]),
    'attention_mask': torch.tensor([[1, 1, 1, 1]]),
    'cross': torch.randn(2, 5)
}

example2 = {
    'vision': {
        'pixel_values': torch.randn(2, 3, 4, 4),
        'image_sizes': [224, 224]
    },
    'input_ids': torch.tensor([[101, 2054, 2003, 102]]),
    'attention_mask': torch.tensor([[1, 1, 1, 1]]),
    'cross': torch.randn(2, 5)
}

examples = [example1, example2]

ARGS = {
    'examples': examples
}
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 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
data_collator Ran
ran; our contract draft was wrong, not the code
thudm/cogvlm/finetune_demo/evaluate_cogagent_demo.py
code served (permissive licence) · get_code("afd5a3b7c43f083d")
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 numpy as np

torch.manual_seed(0)

# Create sample examples with the structure expected by data_collator
examples = [
    {
        'input_ids': torch.tensor([[101, 2054, 2003, 1037]]),
        'attention_mask': torch.tensor([[1, 1, 1, 1]]),
        'vision': {
            'pixel_values': torch.randn(1, 3, 4, 4),
        },
        'cross': {
            'cross_pixel_values': torch.randn(1, 2, 4, 4),
        }
    },
    {
        'input_ids': torch.tensor([[101, 2009, 2003, 1037]]),
        'attention_mask': torch.tensor([[1, 1, 1, 1]]),
        'vision': {
            'pixel_values': torch.randn(1, 3, 4, 4),
        },
        'cross': {
            'cross_pixel_values': torch.randn(1, 2, 4, 4),
        }
    }
]

# Convert tensors that need to be converted
examples[0]['input_ids'] = examples[0]['input_ids'].tolist()
examples[0]['attention_mask'] = examples[0]['attention_mask'].tolist()
examples[1]['input_ids'] = examples[1]['input_ids'].tolist()
examples[1]['attention_mask'] = examples[1]['attention_mask'].tolist()

ARGS = {
    'examples': examples,
    'cross_image_processor': object()  # Non-None processor to enable cross processing
}
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 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
encode_image Ran
ran; our contract draft was wrong, not the code
THUDM/CogAgent/app/client.py
code served (permissive licence) · get_code("1f0bc3f4321973e5")
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 base64
import tempfile
import os

# Create a temporary image file for testing
with tempfile.NamedTemporaryFile(suffix='.png', delete=False) as tmp_file:
    # Write a minimal valid PNG file (1x1 transparent pixel)
    png_data = bytes([
        0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D,
        0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
        0x08, 0x06, 0x00, 0x00, 0x00, 0x1F, 0x15, 0xC4, 0x89, 0x00, 0x00, 0x00,
        0x0A, 0x49, 0x44, 0x41, 0x54, 0x78, 0x9C, 0x63, 0x00, 0x01, 0x00, 0x00,
        0x05, 0x00, 0x01, 0x0D, 0x0A, 0x2D, 0xB4, 0x00, 0x00, 0x00, 0x00, 0x49,
        0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82
    ])
    tmp_file.write(png_data)
    temp_image_path = tmp_file.name

ARGS = {
    'image_path': temp_image_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 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
override_dist_dtype_device_args Ran
ran; our contract draft was wrong, not the code
thudm/cogvlm/utils/models/cogvlm_model.py
code served (permissive licence) · get_code("f3df71c28fae6837")
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 Namespace. 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 argparse
from copy import deepcopy

def test_override_dist_dtype_device_args():
    # Create a base args object for inference mode
    args_inference = argparse.Namespace(
        world_size=1,
        rank=0,
        local_rank=0,
        skip_init=False,
        use_gpu_initialization=False,
        deepspeed=False,
        bf16=False,
        fp16=False,
        mode='inference',
        device='cpu'
    )
    
    # Create a base args object for training mode with all required attributes
    args_training = argparse.Namespace(
        world_size=2,
        rank=0,
        local_rank=0,
        skip_init=False,
        use_gpu_initialization=True,
        deepspeed=True,
        bf16=True,
        fp16=False,
        mode='training',
        device='cpu',
        checkpoint_activations=True,
        checkpoint_num_layers=12,
        model_parallel_size=4
    )
    
    # Create a base args object for training mode with vit_checkpoint_activations
    args_vit = argparse.Namespace(
        world_size=1,
        rank=0,
        local_rank=0,
        skip_init=True,
        use_gpu_initialization=False,
        deepspeed=False,
        bf16=False,
        fp16=True,
        mode='training',
        device='cpu',
        vit_checkpoint_activations=False,
        checkpoint_num_layers=6,
        model_parallel_size=2
    )

ARGS = {
    'args': argparse.Namespace(
        world_size=1,
        rank=0,
        local_rank=0,
        skip_init=False,
        use_gpu_initialization=False,
        deepspeed=False,
        bf16=False,
        fp16=False,
        mode='inference',
        device='cpu'
    ),
    'b': {}
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
postprocess_image Ran
ran; our contract draft was wrong, not the code
thudm/cogvlm/composite_demo/conversation.py
code served (permissive licence) · get_code("d8de666d9830ab8d")
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. 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.

from PIL import Image, ImageDraw
import re

# Create a test image (200x200 RGB image with white background)
test_image = Image.new('RGB', (200, 200), color='white')

# Create test text with bounding box patterns
# Pattern format: [[x1,y1,x2,y2]] for rectangles or [[x,y]] for points
# The function scales coordinates by multiplying by 0.001 and image dimensions
test_text = "Here is a box [[100,100,200,200]] and another [[300,300,400,400;500,500,600,600]] and a point [[50,50]]"

ARGS = {
    'text': test_text,
    'img': test_image,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
postprocess_text Ran
ran; our contract draft was wrong, not the code
thudm/cogvlm/composite_demo/conversation.py
code served (permissive licence) · get_code("2ce3e067b29fa052")
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

# Example arguments for postprocess_text function
template = "The generated task is: <TASK>"
text = "  classify images into categories  "

ARGS = {
    "template": template,
    "text": text,
}
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
preprocess_messages Ran
ran; our contract draft was wrong, not the code
THUDM/CogAgent/inference/web_demo.py
code served (permissive licence) · get_code("363f5a1eb1b85d3b")
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. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from PIL import Image, ImageDraw
import tempfile
import os

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
img_path = os.path.join(temp_dir, "test_image.png")
img = Image.new('RGB', (100, 100), color='red')
img.save(img_path)

# Construct the history list with (task, model_msg) tuples
history = [
    ("First task", "Model response with Grounded Operation: click on the button"),
    ("Second task", "Another response with Grounded Operation: drag slider to position 50"),
]

# Platform string
platform_str = "Platform: web\n"

# Format string
format_str = "Format: json\n"

ARGS = {
    "history": history,
    "img_path": img_path,
    "platform_str": platform_str,
    "format_str": format_str,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_history_and_images Ran
ran; our contract draft was wrong, not the code
THUDM/CogAgent/app/openai_demo.py
code served (permissive licence) · get_code("98595f749058567a")
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 base64
from typing import List, Literal, Union, Tuple, Optional
from pydantic import BaseModel, Field
from PIL import Image
from io import BytesIO
import numpy as np

class ImageUrl(BaseModel):
    url: str

class TextContent(BaseModel):
    type: Literal['text']
    text: str

class ImageUrlContent(BaseModel):
    type: Literal['image_url']
    image_url: ImageUrl

ContentItem = Union[TextContent, ImageUrlContent]

class ChatMessageInput(BaseModel):
    role: Literal['user', 'assistant', 'system']
    content: Union[str, List[ContentItem]]
    name: Optional[str] = None

# Create a small base64-encoded JPEG image
img_array = np.uint8(np.random.rand(10, 10, 3) * 255)
pil_img = Image.fromarray(img_array, 'RGB')
buffered = BytesIO()
pil_img.save(buffered, format="JPEG")
base64_image = base64.b64encode(buffered.getvalue()).decode('utf-8')
base64_url = f"data:image/jpeg;base64,{base64_image}"

# Construct messages with various content types
message1 = ChatMessageInput(
    role='user',
    content='Hello, how are you?'
)

message2 = ChatMessageInput(
    role='assistant',
    content='I am doing well!'
)

message3 = ChatMessageInput(
    role='user',
    content=[
        TextContent(type='text', text='Can you help me with this image?'),
        ImageUrlContent(
            type='image_url',
            image_url=ImageUrl(url=base64_url)
        )
    ]
)

messages = [message1, message2, message3]

ARGS = {
    'messages': messages
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, pydantic, requests — 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
process_history_and_images Ran
ran; our contract draft was wrong, not the code
THUDM/CogAgent/app/vllm_openai_server.py
code served (permissive licence) · get_code("e83d1a79f13a1746")
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 base64
from typing import List, Literal, Union, Tuple, Optional
from pydantic import BaseModel, Field
from PIL import Image
from io import BytesIO

class ImageUrl(BaseModel):
    url: str

class TextContent(BaseModel):
    type: Literal['text']
    text: str

class ImageUrlContent(BaseModel):
    type: Literal['image_url']
    image_url: ImageUrl

ContentItem = Union[TextContent, ImageUrlContent]

class ChatMessageInput(BaseModel):
    role: Literal['user', 'assistant', 'system']
    content: Union[str, List[ContentItem]]
    name: Optional[str] = None

# Create a small test image as base64
test_image = Image.new('RGB', (10, 10), color='red')
image_bytes = BytesIO()
test_image.save(image_bytes, format='JPEG')
image_bytes.seek(0)
base64_image = base64.b64encode(image_bytes.getvalue()).decode('utf-8')
base64_url = f'data:image/jpeg;base64,{base64_image}'

# Construct valid messages
messages = [
    ChatMessageInput(
        role='system',
        content='You are a helpful assistant.'
    ),
    ChatMessageInput(
        role='user',
        content='What is this image about?'
    ),
    ChatMessageInput(
        role='user',
        content=[
            TextContent(type='text', text='Describe this image'),
            ImageUrlContent(
                type='image_url',
                image_url=ImageUrl(url=base64_url)
            )
        ]
    )
]

ARGS = {
    'messages': messages
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, pydantic, requests — 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
process_image_without_resize Ran
ran; our contract draft was wrong, not the code
thudm/cogvlm/basic_demo/web_demo.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thudm/cogcom, is pointer only (licence: NOASSERTION) · get_code("dc039cc4ef751f3a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from thudm/cogcom, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

undo_last_round Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
THUDM/CogAgent/inference/web_demo.py
code served (permissive licence) · get_code("c43bbdf5c24a61ab")
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. 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)

# Build arguments for undo_last_round(history, output_img)
# The function:
# - calls history.pop() if history is truthy
# - returns (history, None)
# So history needs to be a list (or list-like) and output_img can be anything

history = [
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4)
]

output_img = torch.randn(2, 4)

ARGS = {
    "history": history,
    "output_img": output_img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
user Ran
ran; our contract draft was wrong, not the code
THUDM/CogAgent/inference/web_demo.py
code served (permissive licence) · get_code("67160abc4bee8174")
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. 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)

ARGS = {
    'task': 'example task',
    'history': [['previous task 1', 'response 1'], ['previous task 2', 'response 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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_chat_completion Not yet run
unverified (harvested, no recorded run)
THUDM/CogAgent/app/client.py
code served (permissive licence) · get_code("21b986b1859a8a51")
How it ran

no invocation recorded.

formatting_input Not yet run
unverified (harvested, no recorded run)
THUDM/CogAgent/app/client.py
code served (permissive licence) · get_code("7728f4b3ad854aea")
How it ran

no invocation recorded.

generate_cogagent Not yet run
unverified (harvested, no recorded run)
THUDM/CogAgent/app/openai_demo.py
code served (permissive licence) · get_code("34b717a187133b8a")
How it ran

no invocation recorded.

load_tokenizer_and_model Not yet run
unverified (harvested, no recorded run)
THUDM/CogAgent/finetune/finetune.py
code served (permissive licence) · get_code("459bb9214094ea8f")
How it ran

no invocation recorded.

process_batch Not yet run
unverified (harvested, no recorded run)
THUDM/CogAgent/finetune/finetune.py
code served (permissive licence) · get_code("0713ce4249b75fac")
How it ran

no invocation recorded.

process_batch_eval Not yet run
unverified (harvested, no recorded run)
THUDM/CogAgent/finetune/finetune.py
code served (permissive licence) · get_code("0c9a09bd7e2934b7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 7 later) and 11 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
load_tokenizer_and_model 2 other papers
2 later
2406.12793 (2024-06)
ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_image_without_resize 2 other papers
2 later
Hong_CogAgent_A_Visual_Language_Model_for_GUI_Agents_CVPR_2024_paper (2024 (year only))
CogAgent: A Visual Language Model for GUI Agents
2402.04236 (2024-02)
CogCoM: A Visual Language Model with Chain-of-Manipulations Reasoning
data_collator 1 other paper
1 later
2402.07945 (2024-02)
ScreenAgent: A Vision Language Model-driven Computer Control Agent
data_collator 1 other paper
1 later
Hong_CogAgent_A_Visual_Language_Model_for_GUI_Agents_CVPR_2024_paper (2024 (year only))
CogAgent: A Visual Language Model for GUI Agents
override_dist_dtype_device_args 1 other paper
1 later
Hong_CogAgent_A_Visual_Language_Model_for_GUI_Agents_CVPR_2024_paper (2024 (year only))
CogAgent: A Visual Language Model for GUI Agents
postprocess_image 1 other paper
1 later
Hong_CogAgent_A_Visual_Language_Model_for_GUI_Agents_CVPR_2024_paper (2024 (year only))
CogAgent: A Visual Language Model for GUI Agents
postprocess_text 1 other paper
1 later
Hong_CogAgent_A_Visual_Language_Model_for_GUI_Agents_CVPR_2024_paper (2024 (year only))
CogAgent: A Visual Language Model for GUI Agents

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

People are spending an enormous amount of time on digital devices through graphical user interfaces (GUIs), e.g., computer or smartphone screens. Large language models (LLMs) such as ChatGPT can assist people in tasks like writing emails, but struggle to understand and interact with GUIs, thus limiting their potential to increase automation levels. In this paper, we introduce CogAgent, an 18-billion-parameter visual language model (VLM) specializing in GUI understanding and navigation. By utilizing both low-resolution and high-resolution image encoders, CogAgent supports input at a resolution of 1120*1120, enabling it to recognize tiny page elements and text. As a generalist visual language model, CogAgent achieves the state of the art on five text-rich and four general VQA benchmarks, including VQAv2, OK-VQA, Text-VQA, ST-VQA, ChartQA, infoVQA, DocVQA, MM-Vet, and POPE. CogAgent, using only screenshots as input, outperforms LLM-based methods that consume extracted HTML text on both PC and Android GUI navigation tasks -- Mind2Web and AITW, advancing the state of the art. The model and codes are available at https://github.com/THUDM/CogVLM, with a new version of CogAgent-9B-20241220 available at https://github.com/THUDM/CogAgent.

For agents

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

get_harvested_code_for_paper("2312.08914")
get_code_for_paper("2312.08914")
have("2312.08914")

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

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

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

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

Connect an agent — have() is free.