Downloads · 30 days
8
40% of all-time downloads
51-wannt-to-be/bert-chinese-pro
bert-chinese-pro is a machine learning model from 51-wannt-to-be. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
bert-chinese-pro 是一个增强版的中文 BERT 预训练语言模型,基于更大规模的架构和更丰富的中文语料构建。该模型相较于 bert-chinese 具备更强的表达能力,在多个中文下游任务上表现出色,适用于文本分类、语义匹配、自然语言推理等任务。
Downloads · 30 days
8
40% of all-time downloads
All-time downloads
20
Public
Parameters
426M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
bert-chinese-pro 是一个增强版的中文 BERT 预训练语言模型,基于更大规模的架构和更丰富的中文语料构建。该模型相较于 bert-chinese 具备更强的表达能力,在多个中文下游任务上表现出色,适用于文本分类、语义匹配、自然语言推理等任务。
本模型采用了扩展版的 BERT 架构,参数配置如下:
训练任务为 Masked Language Modeling(MLM),在高质量中文数据集上从头预训练,预训练语料主要来自 TigerResearch/pretrain_zh。
| Task | bert-base-chinese | bert-chinese | bert-chinese-pro (本模型) |
|---|---|---|---|
| iflytek | 58.18 | 59.25 | 60.31 |
| tnews | 56.59 | 56.79 | 57.02 |
| afqmc | 71.64 | 71.34 | 72.18 |
| cmnli | 79.47 | 80.17 | 81.08 |
✅ 本模型在 CLUE 基准的多个任务上均取得了优于前代模型的表现,包括中文文本分类(iflytek, tnews)、语义匹配(afqmc)、自然语言推理(cmnli)等。
pip install transformers
from transformers import BertTokenizer, BertForMaskedLM
# 加载 tokenizer
tokenizer = BertTokenizer.from_pretrained("51-wannt-to-be/bert-chinese-pro")
# 加载模型
model = BertForMaskedLM.from_pretrained("51-wannt-to-be/bert-chinese-pro")
# 示例输入
text = "今天天气很好,我们去[MASK]吧!"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
# 获取预测结果
logits = outputs.logits
📌 若你使用的是分类、问答、NER 等下游任务,可替换为
BertForSequenceClassification、BertForQuestionAnswering、BertForTokenClassification等模型类加载。
本仓库包含以下关键文件:
pytorch_model.bin:PyTorch 格式的模型权重config.json:模型结构配置(24层、1024维)vocab.txt:中文词表tokenizer_config.json:分词器配置special_tokens_map.json:特殊符号映射README.md:模型说明文档本模型的预训练语料来自 TigerResearch/pretrain_zh,在此特别鸣谢该项目为中文 NLP 社区提供高质量的中文语料资源。
本模型使用 MIT License 开源协议,您可以自由使用、修改、再发布,亦可用于商业用途。
如有问题或建议,欢迎通过 Hugging Face 站内私信联系作者。
如果你希望在该模型基础上微调分类、NER、问答等任务,我也可以提供对应的模型卡模板(如 bert-chinese-pro-cls、bert-chinese-pro-ner 等)。欢迎继续交流 😄