SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.13356 · September 2026

ZGCM-1: A Fully Open and Extremely Efficient Foundation Model for Math and Agentic Search

Zgcm Team, Interaction Trajectory

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2609.13356.json · badge: /api/ran/2609.13356.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
zgcagi/ZGCM-1 canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
balance_work_units Ran
ran; our contract draft was wrong, not the code
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/training.py
code served (permissive licence) · get_code("d2e1a605b76202c5")
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. 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 bisect
from dataclasses import dataclass, field
from typing import Iterable, Mapping, Sequence

@dataclass(frozen=True, slots=True)
class WorkUnit:
    key: str
    weight: int

# Create test WorkUnit instances with varying weights
units = [
    WorkUnit(key="task_a", weight=10),
    WorkUnit(key="task_b", weight=5),
    WorkUnit(key="task_c", weight=8),
    WorkUnit(key="task_d", weight=3),
    WorkUnit(key="task_e", weight=12),
]

workers = 3

ARGS = {
    "units": units,
    "workers": workers,
}
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 list — a list 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
build_manifest Ran
ran; our contract draft was wrong, not the code
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/common/manifest.py
code served (permissive licence) · get_code("0befc1d739b05c81")
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 Iterable, Mapping
from typing import Any

torch.manual_seed(0)

# Create sample records with different decision values
records = [
    {'decision': 'keep', 'id': 1},
    {'decision': 'keep', 'id': 2},
    {'decision': 'review', 'id': 3},
    {'decision': 'drop', 'id': 4},
    {'id': 5},  # no decision, defaults to 'keep'
]

ARGS = {
    'records': records,
    'stage': 'validation',
    'output': '/path/to/output.json',
}
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
deterministic_shuffle_key Ran
ran; our contract draft was wrong, not the code
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/training.py
code served (permissive licence) · get_code("f83df2f15316325a")
How it ran

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

import hashlib

def deterministic_shuffle_key(record_key: str, *, seed: str='zgcm') -> bytes:
    """Return a stable sort key for reproducible sample-level shuffling."""
    return hashlib.blake2b(f'{seed}\x00{record_key}'.encode('utf-8'), digest_size=16).digest()

ARGS = {
    'record_key': 'sample_001',
    'seed': 'my_seed_value'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
file_sha256 Ran
ran; our contract draft was wrong, not the code
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/common/manifest.py
code served (permissive licence) · get_code("c730ac1fded39006")
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 hashlib
import tempfile
from pathlib import Path

# Create a temporary file with some content
with tempfile.NamedTemporaryFile(mode='wb', delete=False, suffix='.txt') as f:
    temp_file_path = Path(f.name)
    f.write(b'Hello, world! This is test content for SHA256 hashing.')

ARGS = {
    'path': temp_file_path,
    'chunk_size': 1024 * 1024,
}
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
hamming_distance Ran
ran, honoured the contract we drafted
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/dedup.py
code served (permissive licence) · get_code("74690db5ac71bd4d")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Construct arguments for hamming_distance function
# The function takes two integers and computes their XOR bit count

ARGS = {
    "left": 5,      # binary: 0101
    "right": 3      # binary: 0011
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
open_text Ran
ran; our contract draft was wrong, not the code
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/io.py
code served (permissive licence) · get_code("e5e2136c3fe809e5")
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 TextIOWrapper. 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 tempfile
import gzip
import io
from pathlib import Path

# Create temporary files for testing
temp_dir = Path(tempfile.mkdtemp())

# Create a .gz file
gz_path = temp_dir / "test.txt.gz"
with gzip.open(gz_path, 'wt', encoding='utf-8') as f:
    f.write("test content")

# Create a regular text file
txt_path = temp_dir / "test.txt"
txt_path.write_text("test content", encoding='utf-8')

# Create a .zst file (optional, but we'll include it for completeness)
zst_path = temp_dir / "test.txt.zst"
try:
    import zstandard
    cctx = zstandard.ZstdCompressor()
    with open(zst_path, 'wb') as f:
        f.write(cctx.compress(b"test content"))
except ImportError:
    pass

ARGS = {
    'path': txt_path,
    'mode': 'rt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
zstandard — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TextIOWrapper — a TextIOWrapper 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
simhash64 Ran
ran, honoured the contract we drafted
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/dedup.py
code served (permissive licence) · get_code("4e21bc5d96397adf")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import hashlib
import re

_TOKEN = re.compile('\\w+', re.UNICODE)

def simhash64(text: str, *, ngram: int=5) -> int:
    """Return a deterministic 64-bit SimHash over normalized word n-grams."""
    tokens = _TOKEN.findall(text.casefold())
    if not tokens:
        return 0
    width = max(1, int(ngram))
    features = (' '.join(tokens[index:index + width]) for index in range(max(1, len(tokens) - width + 1)))
    weights = [0] * 64
    for feature in features:
        digest = int.from_bytes(hashlib.blake2b(feature.encode('utf-8'), digest_size=8).digest(), 'big')
        for bit in range(64):
            weights[bit] += 1 if digest & 1 << bit else -1
    result = 0
    for bit, weight in enumerate(weights):
        if weight >= 0:
            result |= 1 << bit
    return result


ARGS = {
    'text': 'The quick brown fox jumps over the lazy dog. This is a test string for simhash computation.',
    'ngram': 5
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
stable_partition Ran
ran, honoured the contract we drafted
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/training.py
code served (permissive licence) · get_code("4957218c8fde1125")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import hashlib

ARGS = {
    'record_key': 'sample_123',
    'partitions': 10,
    'seed': 'zgcm'
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
write_jsonl Ran
ran, honoured the contract we drafted
zgcagi/ZGCM-1/data-process/src/zgcm_data_pipeline/io.py
code served (permissive licence) · get_code("c7dedc6d115b342d")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from pathlib import Path
import tempfile

# Create a temporary directory for the output file
temp_dir = tempfile.mkdtemp()
output_path = Path(temp_dir) / "subdir" / "output.jsonl"

# Create sample rows with various data types that need serialization
rows = [
    {
        "id": 1,
        "name": "Alice",
        "score": 95.5,
        "tags": ["python", "ml"],
        "metadata": {"level": "advanced"}
    },
    {
        "id": 2,
        "name": "Bob",
        "score": 87.3,
        "tags": ["java", "backend"],
        "metadata": {"level": "intermediate"}
    },
    {
        "id": 3,
        "name": "Charlie",
        "score": None,
        "tags": [],
        "metadata": {}
    }
]

ARGS = {
    "path": output_path,
    "rows": rows
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

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

While foundation models continue to push the frontiers of mathematical reasoning and agentic problem solving, the broader academic community has been largely excluded from this progress due to prohibitive compute requirements and closed training recipes. In this work, we present ZGCM-1, a fully open 7B dense foundation model trained from scratch with extreme data, system, and algorithmic efficiency. ZGCM-1 is founded on a core premise: compact models cannot passively memorize the open web, but can overcome parametric capacity limits by coupling deliberate internal thinking with active external tool use. To support this paradigm across a 256K context, we develop an end-toend, high-efficiency open training recipe: (1) Architecture & System Co-design: interleaved gated sliding-window and full attention, and a stable FP8 Muon optimizer; (2) Progressive Curriculum & MDP Mid-Training: context scaling across 16K, 64K, and 256K, and the reformulation of interaction traces into Markov Decision Processes. Furthermore, we establish an AI-native R&D workflow where agent swarms autonomously manage cluster operations, data curation, and rapid diagnostic evaluation. Extensive evaluations show that ZGCM-1-7B is competitive across 7B model family on general benchmarks. On several challenging mathematical reasoning and agentic search suites, it remains competitive with frontier models orders of magnitude larger, such as Qwen3-235B-A22B and GLM-5.1. We also show that our pre-training design offers a ∼4.2× efficiency improvement in 16K pre-training time-to-loss. Across the full development lifecycle, we distill eight actionable empirical findings-spanning architectural scaling, SFT quality pruning, long-context generalization, and agentic co-training dynamics. To facilitate community research, we open-source model weights from the pre-training, mid-training, and post-training stages, intermediate checkpoints, training code, per-stage data and data recipes, and W&B logs.

For agents

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

get_harvested_code_for_paper("2609.13356")
get_code_for_paper("2609.13356")
have("2609.13356")

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

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

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

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

Connect an agent — have() is free.