SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.02970 · 2022

Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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 9 have no contract verdict; 1 failure of our instrument; 2 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/2209.02970.json · badge: /api/ran/2209.02970.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
idea-ccnl/fengshenbang-lm canonical (classifier label)
classifier basis not recorded on the link
11 ran · 2 no recorded run
FunctionStatusWhere it lives
add_inverse_square_args Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/models/model_utils.py
code served (permissive licence) · get_code("65f8ded7a2d2857c")
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 MockArgumentParser. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

class MockArgumentParser:
    def __init__(self):
        self.argument_groups = {}
    
    def add_argument_group(self, name):
        if name not in self.argument_groups:
            self.argument_groups[name] = MockArgumentGroup()
        return self.argument_groups[name]

class MockArgumentGroup:
    def __init__(self):
        self.arguments = {}
    
    def add_argument(self, name, default=None, type=None):
        self.arguments[name] = {'default': default, 'type': type}
        return self

parent_args = MockArgumentParser()

ARGS = {
    'parent_args': parent_args
}
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 MockArgumentParser — a MockArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockArgumentParser 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
add_module_args Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/models/model_utils.py
code served (permissive licence) · get_code("70e179adc7aec452")
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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal parent_args parser
parent_args = argparse.ArgumentParser()

# Execute the function to get the modified parser
from typing import Any

def add_module_args(parent_args):
    parser = parent_args.add_argument_group('Basic Module')
    parser.add_argument('--learning_rate', default=5e-05, type=float)
    parser.add_argument('--min_learning_rate', default=1e-07, type=float)
    parser.add_argument('--lr_decay_steps', default=0, type=int)
    parser.add_argument('--lr_decay_ratio', default=1.0, type=float)
    parser.add_argument('--warmup_steps', default=0, type=int)
    parser.add_argument('--warmup_ratio', default=0.1, type=float)
    parser.add_argument('--weight_decay', default=0.1, type=float)
    parser.add_argument('--adam_beta1', default=0.9, type=float)
    parser.add_argument('--adam_beta2', default=0.999, type=float)
    parser.add_argument('--adam_epsilon', default=1e-08, type=float)
    parser.add_argument('--model_path', default=None, type=str)
    parser.add_argument('--scheduler_type', default='polynomial', type=str)
    return parent_args

ARGS = {
    'parent_args': parent_args
}
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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser 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
divide Ran
ran, honoured the contract we drafted
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/GPT2ModelForLatent.py
code served (permissive licence) · get_code("33de97c702d46371")
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 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
import numpy as np

torch.manual_seed(0)

# The function divide() takes two parameters: numerator and denominator
# It performs modulo and integer division operations on them
# Both should be integers

ARGS = {
    "numerator": 12,
    "denominator": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
filter_noise Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/run_latent_generation.py
code served (permissive licence) · get_code("0a651d646793088d")
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 filter_noise(text):
    space_pattern = '([一-龥|0-9|,|。|?|!|@|¥|……|——|《|》|"|"|、|;|:|'|'|(|)|「|」|【|】|·|~|-|+])\\s+([一-龥|0-9|,|。|?|!|@|¥|……|——|《|》|"|"|、|;|:|'|'|(|)|「|」|【|】|·|~|-|+])'
    text = re.sub(space_pattern, '\\1\\2', text)
    text = re.sub(space_pattern, '\\1\\2', text)
    patterns = ['引用日期.*$', '参考资料.*$', '\\[.*\\]', '【.*】', '原文地址:', '原文转载:', '本文转自:', '本文摘要:', '<unk>']
    for pattern in patterns:
        text = re.sub(pattern, '', text)
    return text.strip()

ARGS = {
    "text": "这是一个 测试文本,包含【噸別信息】和参考资料相关内容。[这是引用]引用日期2024年"
}
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_entity_bio Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/metric/utils_ner.py
code served (permissive licence) · get_code("f89d6fdb726bc9b7")
How it ran

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

import torch

ARGS = {
    'seq': ['B-PER', 'I-PER', 'O', 'B-LOC', 'I-LOC'],
    'id2label': {0: 'B-PER', 1: 'I-PER', 2: 'O', 3: 'B-LOC', 4: 'I-LOC'},
    'middle_prefix': 'I-'
}
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 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_entity_bioes Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/metric/utils_ner.py
code served (permissive licence) · get_code("e4e558a295f3d88d")
How it ran

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

import torch
import numpy as np

# Define id2label mapping - maps integer indices to BIO/BIOES tag strings
id2label = {
    0: 'O',
    1: 'B-PER',
    2: 'I-PER',
    3: 'E-PER',
    4: 'S-LOC',
    5: 'B-ORG',
    6: 'I-ORG',
    7: 'E-ORG',
}

# Create a sequence of labels (can be either strings or integers)
seq = ['B-PER', 'I-PER', 'O', 'S-LOC', 'B-ORG', 'I-ORG', 'E-ORG']

ARGS = {
    'seq': seq,
    'id2label': id2label,
    'middle_prefix': 'I-',
}
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 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_entity_bios Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/metric/utils_ner.py
code served (permissive licence) · get_code("cdd389e30ea37b01")
How it ran

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

import torch
import numpy as np

# Create a small id2label mapping
id2label = {
    0: 'O',
    1: 'B-PER',
    2: 'I-PER',
    3: 'S-LOC',
    4: 'B-ORG',
    5: 'I-ORG',
}

# Create a sequence of labels (can be strings or integers that map to id2label)
seq = ['B-PER', 'I-PER', 'O', 'S-LOC', 'B-ORG', 'I-ORG']

# Alternative: use integer IDs instead of strings
# seq = [1, 2, 0, 3, 4, 5]

ARGS = {
    'seq': seq,
    'id2label': id2label,
    'middle_prefix': 'I-',
}
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 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_raw_data Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/run_latent_generation.py
code served (permissive licence) · get_code("759222e69650dede")
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 json
import tempfile
import os

# Create a temporary JSON file with sample data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "raw_data.jsonl")

# Write sample JSONL data
with open(temp_file, 'w', encoding='utf8') as f:
    f.write(json.dumps({"name": "alice", "age": 30, "score": 95.5}) + "\n")
    f.write(json.dumps({"name": "bob", "age": 25, "score": 87.3}) + "\n")
    f.write(json.dumps({"name": "charlie", "age": 35, "score": 92.1}) + "\n")

ARGS = {
    "raw_data": temp_file
}
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 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
log_sum_exp Ran
ran; our contract draft was wrong, not the code
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/DAVAEModel.py
code served (permissive licence) · get_code("5efe6eb2209f6591")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small tensor for testing log_sum_exp
# The function operates on a single tensor and optionally reduces along a dimension
value = torch.randn(2, 4)

# Test case 1: with dim specified
ARGS = {
    "value": value,
    "dim": 1,
    "keepdim": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
scaled_init_method Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/GPT2ModelForLatent.py
code served (permissive licence) · get_code("ef64f3db55a33813")
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 function. 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 math

torch.manual_seed(0)

ARGS = {
    "sigma": 1.0,
    "num_layers": 4,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
unscaled_init_method Ran
ran on a synthesized input
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/GPT2ModelForLatent.py
code served (permissive licence) · get_code("506ef91aa81d0422")
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 function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "sigma": 0.02
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_default_update_params Not yet run
unverified (harvested, no recorded run)
idea-ccnl/fengshenbang-lm/fengshen/models/model_utils.py
code served (permissive licence) · get_code("3ce1a45f75632cd0")
How it ran

no invocation recorded.

top_k_top_p_filtering Not yet run
unverified (harvested, no recorded run)
idea-ccnl/fengshenbang-lm/fengshen/models/DAVAE/run_latent_generation.py
code served (permissive licence) · get_code("c6f7b6ef9dd8586b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
log_sum_exp 5 other papers
4 dated earlier, 1 later
1901.05534 (2019-01)
Lagging Inference Networks and Posterior Collapse in Variational Autoencoders
2004.12585 (2020-04)
A Batch Normalized Inference Network Keeps the KL Vanishing Away
2110.12381 (2021-10)
Regularizing Variational Autoencoder with Diversity and Uncertainty Awareness
and 2 more not named here
divide 4 other papers
1 dated earlier, 3 later
1909.08053 (2019-09)
Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
2404.03608 (2024-04)
Sailor: Open Language Models for South-East Asia
2406.11257 (2024-06)
ExCP: Extreme LLM Checkpoint Compression via Weight-Momentum Joint Shrinking
and 1 more not named here

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

Nowadays, foundation models become one of fundamental infrastructures in artificial intelligence, paving ways to the general intelligence. However, the reality presents two urgent challenges: existing foundation models are dominated by the English-language community; users are often given limited resources and thus cannot always use foundation models. To support the development of the Chinese-language community, we introduce an open-source project, called Fengshenbang, which leads by the research center for Cognitive Computing and Natural Language (CCNL). Our project has comprehensive capabilities, including large pre-trained models, user-friendly APIs, benchmarks, datasets, and others. We wrap all these in three sub-projects: the Fengshenbang Model, the Fengshen Framework, and the Fengshen Benchmark. An open-source roadmap, Fengshenbang, aims to re-evaluate the open-source community of Chinese pre-trained large-scale models, prompting the development of the entire Chinese large-scale model community. We also want to build a user-centered open-source ecosystem to allow individuals to access the desired models to match their computing resources. Furthermore, we invite companies, colleges, and research institutions to collaborate with us to build the large-scale open-source model-based ecosystem. We hope that this project will be the foundation of Chinese cognitive intelligence.

For agents

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

get_harvested_code_for_paper("2209.02970")
get_code_for_paper("2209.02970")
have("2209.02970")

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

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

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

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

Connect an agent — have() is free.