SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.12793 · 2024

ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools

arXiv · PDF · Open in the Atlas

Code that ran

21 of 29 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 14 failures of our instrument; 8 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/2406.12793.json · badge: /api/ran/2406.12793.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/chatglm-6b canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
thudm/chatglm community (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
thudm/chatglm4 community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
FunctionStatusWhere it lives
auto_configure_device_map Ran
ran; our contract draft was wrong, not the code
thudm/chatglm-6b/utils.py
code served (permissive licence) · get_code("bda4be9967b8d807")
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

ARGS = {
    "num_gpus": 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 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
b64_2_img Ran
ran on a synthesized input
thudm/chatglm/composite_demo/demo_ci.py
code served (permissive licence) · get_code("1f225fd39a7d3dcd")
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 PngImageFile. 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
from io import BytesIO
from PIL import Image

# Create a small test image
def create_test_image():
    img = Image.new('RGB', (10, 10), color='red')
    buff = BytesIO()
    img.save(buff, format='PNG')
    buff.seek(0)
    return buff.getvalue()

# Get raw image bytes
image_bytes = create_test_image()

# Encode to base64
b64_data = base64.b64encode(image_bytes).decode('utf-8')

ARGS = {
    'data': b64_data
}
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 PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile 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
build_prompt Ran
ran; our contract draft was wrong, not the code
thudm/chatglm-6b/cli_demo.py
code served (permissive licence) · get_code("20f3c3d6999848e9")
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)

# Analyze the function:
# - build_prompt takes a 'history' parameter
# - history is iterated over: for query, response in history
# - Each iteration unpacks two values (query, response)
# - query and response are used in f-strings
# - So history should be a list of tuples containing (query, response) pairs

# Create a simple history with a few conversation turns
history = [
    ("你好,请问你是谁?", "我是 ChatGLM-6B,一个大型语言模型。"),
    ("你能帮我写代码吗?", "当然可以,我可以帮助你编写各种编程语言的代码。"),
]

ARGS = {
    "history": history
}
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
build_prompt Ran
ran; our contract draft was wrong, not the code
thudm/chatglm-6b/cli_demo_vision.py
code served (permissive licence) · get_code("7ce6ba0a6898058f")
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

torch.manual_seed(0)

# Construct valid arguments for build_prompt
# The function takes history (list of query-response tuples) and prefix (string)

history = [
    ("你好,请问你是谁?", "我是ChatGLM-6B,一个由清华大学开发的对话AI模型。"),
    ("你能做什么?", "我可以进行多轮对话、回答问题、进行文本创作等多种任务。"),
    ("谢谢你", "不客气!很高兴为你服务。")
]

prefix = "以下是ChatGLM-6B与用户的对话记录:"

ARGS = {
    "history": history,
    "prefix": prefix
}
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
build_prompt Ran
ran on a synthesized input
thudm/chatglm/basic_demo/cli_demo.py
code served (permissive licence) · get_code("45ac4198df42b5f0")
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 build_prompt(history):
    welcome_prompt = '欢迎使用 ChatGLM3-6B 模型,输入内容即可进行对话,clear 清空对话历史,stop 终止程序'
    prompt = welcome_prompt
    for query, response in history:
        prompt += f'\n\n用户:{query}'
        prompt += f'\n\nChatGLM3-6B:{response}'
    return prompt

# Construct valid arguments
history = [
    ("你好", "你好!很高兴认识你。"),
    ("今天天气怎样?", "我是一个AI助手,无法获取实时天气信息。"),
    ("谢谢你", "不客气!有什么其他问题吗?")
]

ARGS = {
    'history': history
}
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
clean_ansi_codes Ran
ran on a synthesized input
thudm/chatglm/composite_demo/demo_ci.py
code served (permissive licence) · get_code("9b5960772df6a819")
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 re

def clean_ansi_codes(input_string):
    ansi_escape = re.compile('(\\x9B|\\x1B\\[|\\u001b\\[)[0-?]*[ -/]*[@-~]')
    return ansi_escape.sub('', input_string)

# Test strings with various ANSI escape codes
test_string_with_ansi = "Hello \x1B[31mWorld\x1B[0m"
test_string_no_ansi = "Plain text without codes"
test_string_multiple_ansi = "\x1B[1;32mGreen\x1B[0m and \x1B[34mBlue\x1B[0m"

ARGS = {
    'input_string': test_string_with_ansi
}
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
encode_image Ran
ran; our contract draft was wrong, not the code
thudm/chatglm4/inference/glm4v_api_request.py
code served (permissive licence) · get_code("c0b1c7a482944767")
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
# We'll create a simple valid image file (a minimal PNG)
temp_dir = tempfile.mkdtemp()

# Create a minimal valid PNG file (1x1 transparent pixel)
png_data = base64.b64decode(
    'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=='
)

image_path = os.path.join(temp_dir, 'test_image.png')
with open(image_path, 'wb') as f:
    f.write(png_data)

ARGS = {
    'image_path': 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
get_image Ran
ran, honoured the contract we drafted
thudm/chatglm4/inference/trans_web_vision_demo.py
code served (permissive licence) · get_code("3ff3af9bca0ae239")
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 torch
import numpy as np
from PIL import Image
import io

# Create a small valid RGB image in memory
def create_test_image():
    img_array = np.random.randint(0, 256, (10, 10, 3), dtype=np.uint8)
    return Image.fromarray(img_array, mode='RGB')

# Create a temporary image file in memory
test_image = create_test_image()
image_bytes = io.BytesIO()
test_image.save(image_bytes, format='PNG')
image_bytes.seek(0)
image_path_value = image_bytes

ARGS = {
    'image_path': image_bytes,
    'image_url': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, requests, torch — 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
parse_text Ran
ran; our contract draft was wrong, not the code
thudm/chatglm-6b/web_demo.py
code served (permissive licence) · get_code("826ceb601fb31250")
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) 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.

# Setup code for parse_text function

ARGS = {
    "text": """Here is some code:

def hello():
    print('world')


And here is more text with special chars: < > * _ - . ! ( ) $

javascript
console.log('test');


Final line."""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
parse_text Ran
ran; our contract draft was wrong, not the code
thudm/chatglm/basic_demo/web_demo_gradio.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lyan62/FoodieQA, is pointer only (licence: NONE) · get_code("ca6cfdfc224a6e07")
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 lyan62/FoodieQA, and GitHub detected no licence in that repository when it was checked. 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.

postprocess_text Ran
ran on a synthesized input
thudm/chatglm/composite_demo/conversation.py
code served (permissive licence) · get_code("554545dbb567c8a2")
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

ARGS = {
    'text': 'This is a test \\( equation \\) and \\[ display \\] with <|assistant|> tokens <|observation|> and <|system|> and <|user|> to replace.'
}
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/chatglm4/inference/trans_web_demo.py
code served (permissive licence) · get_code("86830d055a7a9c5d")
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

torch.manual_seed(0)

# Construct arguments for preprocess_messages
history = [
    ("What is AI?", "AI is artificial intelligence."),
    ("Tell me more.", "AI involves machine learning and deep learning."),
    ("Can you help me?", "")  # Last entry with empty model_msg
]

system_prompt = "You are a helpful assistant."

ARGS = {
    "history": history,
    "system_prompt": system_prompt
}
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
process_batch Ran
ran; our contract draft was wrong, not the code
thudm/chatglm4/finetune/finetune.py
code served (permissive licence) · get_code("6c594f1eecbcd9c8")
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. 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 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 Mapping, Sequence

torch.manual_seed(0)

class MockTokenizer:
    """Minimal tokenizer that implements apply_chat_template."""
    def apply_chat_template(self, messages, tokenize=True, return_dict=False):
        # Return a list of token IDs
        # Include special tokens: 151331, 151333 (start), 151337 (assistant marker), 151336 (end)
        if tokenize:
            tokens = [151331, 151333, 151337, 100, 101, 151336]
            if not return_dict:
                return tokens
            return {"input_ids": tokens}
        return "[CHAT]"

batch = {
    'messages': [
        [
            {'role': 'system', 'content': 'You are helpful.'},
            {'role': 'user', 'content': 'Hello'},
            {'role': 'assistant', 'content': 'Hi there'}
        ],
        [
            {'role': 'system', 'content': 'Be concise.'},
            {'role': 'user', 'content': 'What is 2+2?'},
            {'role': 'assistant', 'content': '4'}
        ]
    ]
}

tokenizer = MockTokenizer()
max_input_length = 50
max_output_length = 30
combine = False

ARGS = {
    'batch': batch,
    'tokenizer': tokenizer,
    'max_input_length': max_input_length,
    'max_output_length': max_output_length,
    'combine': combine
}
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 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
process_batch Ran
ran; our contract draft was wrong, not the code
thudm/chatglm4/finetune/finetune_vision.py
code served (permissive licence) · get_code("57df729a586c895a")
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. 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 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 Mapping, Sequence
from PIL import Image

torch.manual_seed(0)

class MockTokenizer:
    """Mock PreTrainedTokenizer for testing"""
    def apply_chat_template(self, messages, tokenize=True, return_dict=True, padding=True):
        # Returns a dict with input_ids, attention_mask, and images
        # Simulating the tokenizer output
        batch_size = len(messages)
        seq_len = 5
        return {
            'input_ids': torch.randint(0, 1000, (batch_size, seq_len)).tolist(),
            'attention_mask': torch.ones(batch_size, seq_len).tolist(),
            'images': [torch.randn(1, 3, 224, 224)]  # Mock image tensor
        }

# Create a minimal batch
batch = {
    'messages': [
        [
            {
                'role': 'user',
                'content': 'Hello',
                'image': None
            },
            {
                'role': 'assistant',
                'content': 'Hi there',
                'image': None
            }
        ],
        [
            {
                'role': 'system',
                'content': 'You are helpful',
                'image': None
            },
            {
                'role': 'user',
                'content': 'What is this?',
                'image': None
            }
        ]
    ]
}

tokenizer = MockTokenizer()

ARGS = {
    'batch': batch,
    'tokenizer': tokenizer,
    'max_input_length': 128,
    'max_output_length': 64,
    'combine': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, transformers — 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
process_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thudm/chatglm/finetune_demo/finetune_hf.py
code served (permissive licence) · get_code("31316bb1bf2a96b2")
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
from collections.abc import Mapping, Sequence

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.eos_token_id = 2
        self._command_tokens = {
            '[gMASK]': 50256,
            'sop': 50257,
        }
    
    def get_command(self, cmd: str) -> int:
        return self._command_tokens[cmd]
    
    def build_single_message(self, role: str, prefix: str, content: str) -> list:
        # Return a small list of token ids
        return [100, 101, 102]


# Create test batch
batch = {
    'conversations': [
        [
            {'role': 'system', 'content': 'You are helpful'},
            {'role': 'user', 'content': 'Hello'},
            {'role': 'assistant', 'content': 'Hi there'},
        ],
        [
            {'role': 'user', 'content': 'How are you'},
            {'role': 'assistant', 'content': 'I am good'},
        ],
    ],
    'tools': None,
}

tokenizer = MockTokenizer()
max_input_length = 32
max_output_length = 16

ARGS = {
    'batch': batch,
    'tokenizer': tokenizer,
    'max_input_length': max_input_length,
    'max_output_length': max_output_length,
}
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 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
process_batch_eval Ran
ran; our contract draft was wrong, not the code
thudm/chatglm4/finetune/finetune.py
code served (permissive licence) · get_code("2cc2c269bdedbd33")
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. 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 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 Mapping, Sequence

torch.manual_seed(0)

class MockTokenizer:
    def apply_chat_template(self, messages, tokenize=True, return_dict=False):
        # Return a list of token IDs that includes the special tokens used in the function
        # The function looks for token 151337 (assistant end marker)
        # and uses 151331, 151333 (special markers) and 151336 (end token)
        if tokenize:
            # Create a reasonable token sequence with the required special tokens
            base_sequence = [151331, 151333, 151337, 151336]
            # Make it long enough to test slicing
            result = base_sequence + [100 + i for i in range(10)]
            return result
        return {"input_ids": [151331, 151333, 151337, 151336]}

batch = {
    'messages': [
        [
            {'role': 'system', 'content': 'You are a helpful assistant.'},
            {'role': 'user', 'content': 'Hello'},
            {'role': 'assistant', 'content': 'Hi there!'}
        ],
        [
            {'role': 'system', 'content': 'You are helpful.'},
            {'role': 'user', 'content': 'How are you?'},
            {'role': 'assistant', 'content': 'I am fine.'}
        ]
    ]
}

tokenizer = MockTokenizer()

ARGS = {
    'batch': batch,
    'tokenizer': tokenizer,
    'max_input_length': 100,
    'max_output_length': 50,
    'combine': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
process_batch_eval Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thudm/chatglm/finetune_demo/finetune_hf.py
code served (permissive licence) · get_code("5abe708b88a719ff")
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
from collections.abc import Mapping, Sequence

torch.manual_seed(0)

class StandInTokenizer:
    def __init__(self):
        self.eos_token_id = 2
        self._gMASK_id = 150000
        self._sop_id = 150001
    
    def get_command(self, cmd_name):
        if cmd_name == '[gMASK]':
            return self._gMASK_id
        elif cmd_name == 'sop':
            return self._sop_id
        return 0
    
    def build_single_message(self, role, meta, content):
        # Return a simple list of token ids
        # For user messages, return shorter list; for assistant, longer
        if role == 'assistant':
            return [100, 101, 102, 103]
        else:
            return [200, 201]

# Create a minimal batch
batch = {
    'conversations': [
        [
            {'role': 'user', 'content': 'Hello'},
            {'role': 'assistant', 'content': 'Hi there'}
        ],
        [
            {'role': 'user', 'content': 'How are you?'},
            {'role': 'assistant', 'content': 'I am well'}
        ]
    ]
}

tokenizer = StandInTokenizer()

ARGS = {
    'batch': batch,
    'tokenizer': tokenizer,
    'max_input_length': 50,
    'max_output_length': 30
}
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 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
process_message Ran
ran; our contract draft was wrong, not the code
thudm/chatglm4/finetune/finetune.py
code served (permissive licence) · get_code("7e93b9f509accf1c")
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

# Test case 1: message with 'tools' and 'role' == 'system'
message_1 = {
    'role': 'system',
    'tools': [
        {
            'function': {
                'parameters': {
                    'properties': {
                        'param1': {'type': 'string'},
                        'param2': None,
                        'param3': {'type': 'number'}
                    }
                }
            }
        }
    ]
}

# Test case 2: message with 'tools' but 'role' != 'system'
message_2 = {
    'role': 'user',
    'tools': [
        {
            'function': {
                'parameters': {
                    'properties': {
                        'param1': {'type': 'string'}
                    }
                }
            }
        }
    ],
    'content': 'hello'
}

# Test case 3: message without 'tools'
message_3 = {
    'role': 'assistant',
    'content': 'response'
}

ARGS = {
    'message': message_1
}
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
process_response Ran
ran; our contract draft was wrong, not the code
thudm/chatglm4/demo/composite_demo/src/client.py
code served (permissive licence) · get_code("51ffd8516205ff45")
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 json
from copy import deepcopy

# Minimal setup for process_response
output = "user message<|assistant|>metadata_key\nresponse content here"

history = [
    {'role': 'user', 'content': 'hello'},
    {'role': 'system', 'content': 'system prompt', 'tools': []}
]

ARGS = {
    'output': output,
    'history': history
}
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 — 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
stream_chat Ran
ran on a synthesized input
thudm/chatglm/composite_demo/client.py
code served (permissive licence) · get_code("1003bb97b27ee006")
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 generator. 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
from transformers.generation.logits_process import LogitsProcessor
from transformers.generation.utils import LogitsProcessorList

torch.manual_seed(0)

# Stand-in tokenizer class
class StandInTokenizer:
    def __init__(self):
        self.eos_token_id = 2
        self._commands = {
            '<|user|>': 3,
            '<|observation|>': 4
        }
    
    def get_command(self, cmd):
        return self._commands.get(cmd, 5)
    
    def build_chat_input(self, query, history=None, role='user'):
        # Return a dict with input_ids, attention_mask, position_ids
        batch_size = 1
        seq_len = 5
        input_ids = torch.randint(0, 100, (batch_size, seq_len), dtype=torch.long)
        attention_mask = torch.ones(batch_size, seq_len, dtype=torch.long)
        position_ids = torch.arange(seq_len, dtype=torch.long).unsqueeze(0)
        return {
            'input_ids': input_ids,
            'attention_mask': attention_mask,
            'position_ids': position_ids
        }
    
    def decode(self, token_ids):
        return "sample response"

# Stand-in config class
class StandInConfig:
    def __init__(self):
        self.seq_length = 2048
        self.pre_seq_len = None

# Stand-in model class
class StandInModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.config = StandInConfig()
        self.device = torch.device('cpu')
        self.transformer = nn.Module()
        self.transformer.pre_seq_len = None
        self.linear = nn.Linear(4, 4)
    
    def stream_generate(self, input_ids, attention_mask, position_ids, 
                       past_key_values=None, eos_token_id=None, 
                       return_past_key_values=False, **kwargs):
        # Simulate streaming generation by yielding outputs
        batch_size = input_ids.shape[0]
        # Yield a few tokens
        for i in range(2):
            output_ids = torch.randint(0, 100, (batch_size, input_ids.shape[1] + i + 1), dtype=torch.long)
            if return_past_key_values:
                # Simulate past_key_values as tuple of tuples
                past_kv = ((torch.randn(1, 4, 2, 2), torch.randn(1, 4, 2, 2)),)
                yield (output_ids, past_kv)
            else:
                yield output_ids

# Instantiate the model
model = StandInModel()
tokenizer = StandInTokenizer()

ARGS = {
    'self': model,
    'tokenizer': tokenizer,
    'query': 'Hello, how are you?',
    'history': [('user', 'Hi'), ('assistant', 'Hello')],
    'role': 'user',
    'past_key_values': None,
    'max_new_tokens': 256,
    'do_sample': True,
    'top_p': 0.8,
    'temperature': 0.8,
    'repetition_penalty': 1.0,
    'length_penalty': 1.0,
    'num_beams': 1,
    'logits_processor': None,
    'return_past_key_values': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
yaml_to_dict Ran
ran on a synthesized input
thudm/chatglm/composite_demo/demo_tool.py
code served (permissive licence) · get_code("22605b28667a4139")
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 yaml

# The function takes a string parameter that should be valid YAML
# and returns a list of dicts or None

# Create a valid YAML string that represents a list of dictionaries
yaml_string = """
- name: tool1
  description: first tool
  version: 1.0
- name: tool2
  description: second tool
  version: 2.0
"""

ARGS = {
    "tools": yaml_string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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
extract_code Not yet run
unverified (harvested, no recorded run)
thudm/chatglm/composite_demo/demo_tool.py
code served (permissive licence) · get_code("e4671affec558222")
How it ran

no invocation recorded.

generate_glm4v Not yet run
unverified (harvested, no recorded run)
thudm/chatglm4/inference/glm4v_server.py
code served (permissive licence) · get_code("66a222f9124359df")
How it ran

no invocation recorded.

load_model_and_tokenizer Not yet run
unverified (harvested, no recorded run)
thudm/chatglm/finetune_demo/inference_hf.py
code served (permissive licence) · get_code("91958a6f1719c4f7")
How it ran

no invocation recorded.

load_model_and_tokenizer Not yet run
unverified (harvested, no recorded run)
thudm/chatglm/basic_demo/web_demo_gradio.py
code served (permissive licence) · get_code("bb6e915ee912453d")
How it ran

no invocation recorded.

load_model_on_gpus Not yet run
unverified (harvested, no recorded run)
thudm/chatglm-6b/utils.py
code served (permissive licence) · get_code("b461f4040f1eec9d")
How it ran

no invocation recorded.

load_tokenizer_and_model Not yet run
unverified (harvested, no recorded run)
thudm/chatglm/finetune_demo/finetune_hf.py
code served (permissive licence) · get_code("632dd3e505d6e594")
How it ran

no invocation recorded.

load_tokenizer_and_model Not yet run
unverified (harvested, no recorded run)
thudm/chatglm4/finetune/finetune_vision.py
code served (permissive licence) · get_code("a000febbe236a229")
How it ran

no invocation recorded.

process_batch_eval Not yet run
unverified (harvested, no recorded run)
thudm/chatglm4/finetune/finetune_vision.py
code served (permissive licence) · get_code("e816697d6260afdd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 20 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 5 the same month, 14 later) and 8 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
encode_image 76 other papers
14 dated earlier, 7 the same month, 54 later, 1 same year, order not determinable
2309.05950 (2023-09)
Language Models as Black-Box Optimizers for Vision-Language Models
2311.15732 (2023-11)
GPT4Vis: What Can GPT-4 Do for Zero-shot Visual Recognition?
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
and 73 more not named here
parse_text 9 other papers
8 dated earlier, 1 the same month
2203.13474 (2022-03)
CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
2305.12524 (2023-05)
TheoremQA: A Theorem-driven Question Answering Dataset ♠
2305.14314 (2023-05)
QLORA: Efficient Finetuning of Quantized LLMs
and 6 more not named here
load_tokenizer_and_model 3 other papers
1 dated earlier, 1 the same month, 1 later
2210.02414 (2022-10)
GLM-130B: An Open Bilingual Pre-trained Model
2406.05925 (2024-06)
Hello Again! LLM-powered Personalized Agent for Long-term Dialogue
2025.naacl-long.272 (2025 (year only))
Hello Again! LLM-powered Personalized Agent for Long-term Dialogue
load_model_on_gpus 2 other papers
2 dated earlier
2303.17568 (2023-03)
CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-X
2306.04188 (2023-06)
A New Dataset and Empirical Study for Sentence Simplification in Chinese
load_tokenizer_and_model 2 other papers
1 dated earlier, 1 later
2312.08914 (2023-12)
CogAgent: A Visual Language Model for GUI Agents
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_batch 2 other papers
1 the same month, 1 later
2406.05925 (2024-06)
Hello Again! LLM-powered Personalized Agent for Long-term Dialogue
2025.naacl-long.272 (2025 (year only))
Hello Again! LLM-powered Personalized Agent for Long-term Dialogue
process_batch_eval 2 other papers
1 the same month, 1 later
2406.05925 (2024-06)
Hello Again! LLM-powered Personalized Agent for Long-term Dialogue
2025.naacl-long.272 (2025 (year only))
Hello Again! LLM-powered Personalized Agent for Long-term Dialogue
auto_configure_device_map 1 other paper
1 dated earlier
2306.04188 (2023-06)
A New Dataset and Empirical Study for Sentence Simplification in Chinese
build_prompt 1 other paper
1 dated earlier
2306.04188 (2023-06)
A New Dataset and Empirical Study for Sentence Simplification in Chinese
build_prompt 1 other paper
1 dated earlier
2306.04188 (2023-06)
A New Dataset and Empirical Study for Sentence Simplification in Chinese
build_prompt 1 other paper
1 dated earlier
2405.18386 (2024-05)
Instruct-MusicGen: Unlocking Text-to-Music Editing for Music Language Models via Instruction Tuning
generate_glm4v 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
get_image 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
preprocess_messages 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_batch 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_batch 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_batch_eval 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_batch_eval 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_message 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding
process_response 1 other paper
1 later
2408.16500 (2024-08)
CogVLM2: Visual Language Models for Image and Video Understanding

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 ChatGLM, an evolving family of large language models that we have been developing over time. This report primarily focuses on the GLM-4 language series, which includes GLM-4, GLM-4-Air, and GLM-4-9B. They represent our most capable models that are trained with all the insights and lessons gained from the preceding three generations of ChatGLM. To date, the GLM-4 models are pre-trained on ten trillions of tokens mostly in Chinese and English, along with a small set of corpus from 24 languages, and aligned primarily for Chinese and English usage. The high-quality alignment is achieved via a multi-stage post-training process, which involves supervised fine-tuning and learning from human feedback. Evaluations show that GLM-4 1) closely rivals or outperforms GPT-4 in terms of general metrics such as MMLU, GSM8K, MATH, BBH, GPQA, and HumanEval, 2) gets close to GPT-4-Turbo in instruction following as measured by IFEval, 3) matches GPT-4 Turbo (128K) and Claude 3 for long context tasks, and 4) outperforms GPT-4 in Chinese alignments as measured by AlignBench. The GLM-4 All Tools model is further aligned to understand user intent and autonomously decide when and which tool(s) touse -- including web browser, Python interpreter, text-to-image model, and user-defined functions -- to effectively complete complex tasks. In practical applications, it matches and even surpasses GPT-4 All Tools in tasks like accessing online information via web browsing and solving math problems using Python interpreter. Over the course, we have open-sourced a series of models, including ChatGLM-6B (three generations), GLM-4-9B (128K, 1M), GLM-4V-9B, WebGLM, and CodeGeeX, attracting over 10 million downloads on Hugging face in the year 2023 alone. The open models can be accessed through https://github.com/THUDM and https://huggingface.co/THUDM.

For agents

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

get_harvested_code_for_paper("2406.12793")
get_code_for_paper("2406.12793")
have("2406.12793")

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

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

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

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

Connect an agent — have() is free.