SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.01006 · 2025

GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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; 11 failures of our instrument; 0 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/2507.01006.json · badge: /api/ran/2507.01006.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/glm-4.1v-thinking canonical (classifier label)
classifier basis: census
11 ran · 0 no recorded run
FunctionStatusWhere it lives
build_content Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/inference/trans_infer_cli.py
code served (permissive licence) · get_code("456fb1298131c269")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function:
# - image_paths: iterable of image paths (strings)
# - video_path: a video path (string or None)
# - text: a text string

ARGS = {
    'image_paths': ['image1.jpg', 'image2.png'],
    'video_path': 'video.mp4',
    'text': 'This is descriptive text for the content.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_files Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/inference/trans_infer_gradio.py
code served (permissive licence) · get_code("637b3251fb7af91b")
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.

from pathlib import Path
from unittest.mock import Mock

# Create mock file objects with .name attributes
mock_file_1 = Mock()
mock_file_1.name = "video.mp4"

mock_file_2 = Mock()
mock_file_2.name = "image1.jpg"

mock_file_3 = Mock()
mock_file_3.name = "image2.png"

mock_file_4 = Mock()
mock_file_4.name = "image3.gif"

# Create a list of files
files = [mock_file_1, mock_file_2, mock_file_3, mock_file_4]

ARGS = {
    "files": files
}
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 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
create_display_history Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/inference/trans_infer_gradio.py
code served (permissive licence) · get_code("3d1201cb2661676e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# Define ARGS for create_display_history function
ARGS = {
    'raw_hist': [
        {
            'role': 'user',
            'content': [
                {'type': 'text', 'text': 'Hello'},
                {'type': 'text', 'text': 'world'},
                {'type': 'file', 'name': 'document.pdf'}
            ]
        },
        {
            'role': 'assistant',
            'content': 'This is a response'
        },
        {
            'role': 'user',
            'content': [
                {'type': 'text', 'text': 'Another question'},
                {'type': 'file', 'name': 'image.png'},
                {'type': 'file', 'name': 'image2.png'}
            ]
        },
        {
            'role': 'assistant',
            'content': 'Another response'
        }
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_image Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/image.py
code served (permissive licence) · get_code("107e2008fcd35451")
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 io
import tempfile
import os
from PIL import Image

# Create a small test image and save it to a temporary file
def create_test_image():
    """Create a small RGB image and save it to a temporary file."""
    img = Image.new('RGB', (10, 10), color='red')
    temp_file = tempfile.NamedTemporaryFile(suffix='.jpg', delete=False)
    img.save(temp_file.name, format='JPEG')
    temp_file.close()
    return temp_file.name

image_path = create_test_image()

ARGS = {
    'image_file': image_path,
    'prefix': False,
}
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 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
ensure_list Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/misc.py
code served (permissive licence) · get_code("fb051b57bae1999a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from collections.abc import Sequence

torch.manual_seed(0)

# Test case 1: A string (should be wrapped in a list)
obj_str = "hello"

# Test case 2: A sequence/list (should be converted to list)
obj_list = [1, 2, 3, 4, 5]

# Test case 3: A tuple (should be converted to list)
obj_tuple = (10, 20, 30)

# Test case 4: A single non-sequence object (should be wrapped in a list)
obj_single = 42

# Test case 5: bytes (should be wrapped in a list)
obj_bytes = b"data"

# We'll use the string case as the primary test
ARGS = {
    "obj": "hello"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ensure_text Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/misc.py
code served (permissive licence) · get_code("f442195695179503")
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
import numpy as np

ARGS = {
    "text": "Hello, world!",
    "encoding": "utf-8"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_display_content Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/inference/trans_infer_gradio.py
code served (permissive licence) · get_code("913cc287b79090a4")
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: content is a list with text and file items
content_with_files = [
    {'type': 'text', 'text': 'Hello'},
    {'type': 'file', 'name': 'document.pdf'},
    {'type': 'text', 'text': 'world'},
    {'type': 'file', 'name': 'image.png'}
]

ARGS = {
    'content': content_with_files
}
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_logger Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/logging.py
code served (permissive licence) · get_code("e44711e0f5fff99f")
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 Logger. 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 logging

ARGS = {
    'module': 'my.package.submodule.deep.hierarchy'
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
mkdir Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/path.py
code served (permissive licence) · get_code("3eda651318fb875a")
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 PosixPath. 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 os
import tempfile
from pathlib import Path

# Create a temporary directory for testing
temp_base = tempfile.gettempdir()
test_dir = Path(temp_base) / "test_mkdir_target"

# Clean up if it exists from a previous run
if test_dir.exists():
    import shutil
    shutil.rmtree(test_dir)

# Define ARGS with a valid path that doesn't exist yet
ARGS = {
    "dir_path": str(test_dir)
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
parse_tar_header Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/path.py
code served (permissive licence) · get_code("0cc887b30d570c60")
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 TarHeader. 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 struct
from collections import namedtuple

TarHeader = namedtuple('TarHeader', ['name', 'mode', 'uid', 'gid', 'size', 'mtime', 'chksum', 'typeflag', 'linkname', 'magic', 'version', 'uname', 'gname', 'devmajor', 'devminor', 'prefix'])

def parse_tar_header(header_bytes: bytes) -> TarHeader:
    """解析 tar 格式的文件头信息
    Args:
        header_bytes (bytes): header bytes, less than 500
    Returns:
        tar header info
    """
    if len(header_bytes) != 500:
        err_msg = f'tar header length must be 500, but found {header_bytes!r}'
        raise ValueError(err_msg)
    header = struct.unpack('!100s8s8s8s12s12s8s1s100s6s2s32s32s8s8s155s', header_bytes)
    return TarHeader(*header)

# Construct a valid 500-byte tar header
# Using format: '!100s8s8s8s12s12s8s1s100s6s2s32s32s8s8s155s'
# Total: 100+8+8+8+12+12+8+1+100+6+2+32+32+8+8+155 = 500 bytes

name = b'test.txt'.ljust(100, b'\x00')  # 100 bytes
mode = b'0000644'.ljust(8, b'\x00')  # 8 bytes
uid = b'0000000'.ljust(8, b'\x00')   # 8 bytes
gid = b'0000000'.ljust(8, b'\x00')   # 8 bytes
size = b'00000001024'.ljust(12, b'\x00')  # 12 bytes
mtime = b'14000000000'.ljust(12, b'\x00')  # 12 bytes
chksum = b'0000000'.ljust(8, b'\x00')  # 8 bytes
typeflag = b'0'  # 1 byte
linkname = b''.ljust(100, b'\x00')  # 100 bytes
magic = b'ustar'.ljust(6, b'\x00')  # 6 bytes
version = b'00'  # 2 bytes
uname = b'root'.ljust(32, b'\x00')  # 32 bytes
gname = b'root'.ljust(32, b'\x00')  # 32 bytes
devmajor = b'0000000'.ljust(8, b'\x00')  # 8 bytes
devminor = b'0000000'.ljust(8, b'\x00')  # 8 bytes
prefix = b''.ljust(155, b'\x00')  # 155 bytes

header_bytes = (name + mode + uid + gid + size + mtime + chksum + typeflag + 
                linkname + magic + version + uname + gname + devmajor + devminor + prefix)

ARGS = {
    'header_bytes': header_bytes
}
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 TarHeader — a TarHeader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TarHeader output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_path Ran
ran; our contract draft was wrong, not the code
thudm/glm-4.1v-thinking/glmv_reward/src/glmv_reward/utils/path.py
code served (permissive licence) · get_code("6160e11adc566628")
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 PosixPath. 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 pathlib import Path

ARGS = {
    "path": "~/test_directory/file.txt"
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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

Also present in other papers' code

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

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 present GLM-4.1V-Thinking, GLM-4.5V, and GLM-4.6V, a family of vision-language models (VLMs) designed to advance general-purpose multimodal understanding and reasoning. In this report, we share our key findings in the development of the reasoning-centric training framework. We first develop a capable vision foundation model with significant potential through large-scale pre-training, which arguably sets the upper bound for the final performance. We then propose Reinforcement Learning with Curriculum Sampling (RLCS) to unlock the full potential of the model, leading to comprehensive capability enhancement across a diverse range of tasks, including STEM problem solving, video understanding, content recognition, coding, grounding, GUI-based agents, and long document interpretation. In a comprehensive evaluation across 42 public benchmarks, GLM-4.5V achieves state-of-the-art performance on nearly all tasks among open-source models of similar size, and demonstrates competitive or even superior results compared to closed-source models such as Gemini-2.5-Flash on challenging tasks including Coding and GUI Agents. Meanwhile, the smaller GLM-4.1V-9B-Thinking remains highly competitive-achieving superior results to the much larger Qwen2.5-VL-72B on 29 benchmarks. We open-source both GLM-4.1V-9B-Thinking and GLM-4.5V. We further introduce the GLM-4.6V series, open-source multimodal models with native tool use and a 128K context window. A brief overview is available at https://z.ai/blog/glm-4.6v. Code, models and more information are released at https://github.com/zai-org/GLM-V.

For agents

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

get_harvested_code_for_paper("2507.01006")
get_code_for_paper("2507.01006")
have("2507.01006")

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

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

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

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

Connect an agent — have() is free.