Home/LLM Frameworks/Baichuan-7B
Baichuan-7B logo

Baichuan-7B

baichuan-inc/Baichuan-7B

A large-scale 7B pretraining language model

GraphCanon updated 4d · GitHub synced 4d

5.7k stars500 forksLast push 2y Python Apache-2.0

Decision brief

Baichuan-7B is notable for its performance in Chinese benchmarks and supports both English and Chinese languages.

Good fit when

  • If the project requires strong Chinese language proficiency, as Baichuan-7B has been optimized through extensive training specifically targeting Chinese language tasks.
  • For applications requiring a large context window size of 4096 tokens, enabling extended dialogue or complex task handling.

Avoid when

  • If the application primarily deals with languages other than English and Chinese, as Baichuan-7B's training has been focused on these two languages.
  • When a model smaller than 7-billion parameters is sufficient for the use case, especially if reducing inference time or resource consumption is more critical.

Observed Jul 14, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (759d since push)
As of 4d
Provenance
Not a fork · Organization account
As of 4d
Security (OSV)
77 low (77 low)
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Backing

Company context for Baichuan. Display-only - separate from trust and ranking.

Company
Baichuan Intelligent Technology·GitHub org profile·1mo
Commercial model
Pure OSS·GitHub org profile (public repos)·1mo

Install

pip install Baichuan-7B
PyPI

How it fits your stack(5)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Baichuan-7B is a large-scale pretraining language model with 7 billion parameters developed by BaiChuan-Inc. It supports both Chinese and English, trained on around 1.2 trillion tokens, and has a context window size of 4096.

Capability facts

Languages
python

Source: github.language · Aug 17, 2026

Categories

Graph entities

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 17, 2026)

python evaluate_zh.py --model_name_or_path 'your/model/path'
Source link
Works with ChatGPTChatGPT

Source: README excerpt (regex_v1, Aug 17, 2026)

| ChatGPT | 54.4 | 41.4 | 52.9 | 61.8 | 50.9 | 53.6
Source link

Tags

README

Baichuan-7B

🤗 Hugging Face • 🤖 ModelScope • 💬 WeChat

中文 | English

更新信息

  • [2023.09.06] 我们发布了新一代开源模型 Baichuan 2,包含 7B、13B 尺寸 🔥🔥🔥

介绍

Baichuan-7B 是由百川智能开发的一个开源可商用的大规模预训练语言模型。基于 Transformer 结构,在大约 1.2 万亿 tokens 上训练的 70 亿参数模型,支持中英双语,上下文窗口长度为 4096。在标准的中文和英文 benchmark(C-Eval/MMLU)上均取得同尺寸最好的效果。

公开benchmark榜单

中文评测

C-Eval

C-Eval 数据集是一个全面的中文基础模型评测数据集,涵盖了 52 个学科和四个难度的级别。我们使用该数据集的 dev 集作为 few-shot 的来源,在 test 集上进行了 5-shot 测试。通过执行执行下面的命令:

cd evaluation
python evaluate_zh.py --model_name_or_path 'your/model/path'

结果

Model 5-shotAverageAvg(Hard)STEMSocial SciencesHumanitiesOthers
GPT-468.754.967.177.664.567.8
ChatGPT54.441.452.961.850.953.6
Claude-v1.354.239.051.961.752.153.7
Claude-instant-v1.045.935.543.153.844.245.4
BLOOMZ-7B35.725.831.343.536.635.6
ChatGLM-6B34.523.130.439.637.434.5
Ziya-LLaMA-13B-pretrain30.222.727.734.432.028.9
moss-moon-003-base (16B)27.424.527.029.127.226.9
LLaMA-7B-hf27.125.927.126.827.926.3
Falcon-7B25.824.325.826.025.825.6
TigerBot-7B-base25.727.027.324.723.426.1
Aquila-7B*25.525.225.624.625.226.6
Open-LLaMA-v2-pretrain (7B)24.022.523.125.325.223.2
BLOOM-7B22.820.221.823.323.923.3
Baichuan-7B42.831.538.252.046.239.3

Gaokao

Gaokao 是一个以中国高考题作为评测大语言模型能力的数据集,用以评估模型的语言能力和逻辑推理能力。 我们只保留了其中的单项选择题,随机划分后对所有模型进行统一 5-shot 测试。

结果

以下是测试的结果。

ModelAverage
BLOOMZ-7B28.72
LLaMA-7B27.81
BLOOM-7B26.96
TigerBot-7B-base25.94
Falcon-7B23.98
Ziya-LLaMA-13B-pretrain23.17
ChatGLM-6B21.41
Open-LLaMA-v2-pretrain21.41
Aquila-7B*24.39
Baichuan-7B36.24

AGIEval

AGIEval 旨在评估模型的认知和解决问题相关的任务中的一般能力。 我们只保留了其中的四选一单项选择题,随机划分后对所有模型进行了统一 5-shot 测试。

结果

ModelAverage
BLOOMZ-7B30.27
LLaMA-7B28.17
Ziya-LLaMA-13B-pretrain27.64
Falcon-7B27.18
BLOOM-7B26.55
Aquila-7B*25.58

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.