#3333rd of 34 in Open models

chinese-bert-wwm

Chinese BERT and RoBERTa checkpoints pre-trained with whole word masking

Stars
10.2k
License
Apache-2.0
Last commit
Apr 2026
Language
Python
Stars, last 29 weeks+91
31 Mar 2026: 10,140 stars7 Apr 2026: 10,146 stars14 Apr 2026: 10,154 stars21 Apr 2026: 10,157 stars28 Apr 2026: 10,157 stars5 May 2026: 10,160 stars12 May 2026: 10,166 stars19 May 2026: 10,168 stars26 May 2026: 10,174 stars2 Jun 2026: 10,177 stars9 Jun 2026: 10,180 stars16 Jun 2026: 10,184 stars23 Jun 2026: 10,189 stars30 Jun 2026: 10,190 stars7 Jul 2026: 10,193 stars14 Jul 2026: 10,197 stars21 Jul 2026: 10,201 stars28 Jul 2026: 10,204 stars4 Aug 2026: 10,205 stars11 Aug 2026: 10,208 stars18 Aug 2026: 10,208 stars25 Aug 2026: 10,211 stars1 Sept 2026: 10,215 stars8 Sept 2026: 10,218 stars15 Sept 2026: 10,218 stars22 Sept 2026: 10,225 stars29 Sept 2026: 10,226 stars6 Oct 2026: 10,226 stars13 Oct 2026: 10,230 stars20 Oct 2026: 10,231 stars

10,140 on 31 Mar 202610,231 on 20 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Pre-trained Chinese BERT-wwm, BERT-wwm-ext, RoBERTa-wwm-ext (base and large), RBT3 and RBTL3 checkpoints from HFL. Whole word masking uses LTP word segmentation so all characters of a word are masked together. Weights are TensorFlow checkpoints (Baidu Netdisk) and PyTorch weights on Hugging Face, loadable with BertTokenizer/BertModel; the README includes benchmark tables on CMRC 2018, DRCD, XNLI and others.

Who it is for: NLP engineers fine-tuning Chinese encoders for classification, QA and matching

Strengths

  • Hugging Face and PaddleHub loading, via BertTokenizer/BertModel with hfl/ model names
  • Includes 3-layer RBT3 (38M) and RBTL3 (61M) models for lower-cost inference
  • Benchmark tables report max and mean over 10 seeds on eight Chinese datasets
  • Same vocab and config as Google's Chinese BERT, so existing BERT code works unchanged

Weaknesses

  • Pre-training code is not provided; the FAQ points to issue threads only
  • Released weights omit the MLM head, so masked-LM use needs further pre-training
  • Original checkpoints are TensorFlow; PyTorch needs conversion or the HF download
  • README is mostly Chinese, and the repo is a 2019-era encoder line, with a banner promoting newer LLM projects

What it needs

  • GPU optional
  • Needs transformers, TensorFlow or PyTorch, PaddleHub (optional)
  • Models: BERT-wwm, BERT-wwm-ext, RoBERTa-wwm-ext, RoBERTa-wwm-ext-large, RBT3

Also in Open models

See all 34
Also in Open models
RankProjectScore
1llmfitRust tool that checks which LLMs fit your RAM, CPU and GPU38.2k starsMIT87 out of 100
2layaSingle-pass multilingual classifier for typed choice, score and yes/no decisions Live demo ↗ (opens in a new tab)33.8k starsApache-2.084 out of 100
3timesfmPretrained time-series foundation model for zero-shot forecasting from Google Research34.7k starsApache-2.075 out of 100
#4speechPyTorch toolkit for training and deploying ASR, TTS and speech LLM models Live demo ↗ (opens in a new tab)18.6k starsApache-2.070 out of 100
#5yueLyrics-to-song model that writes an editable melody and chord score first Live demo ↗ (opens in a new tab)12.5k starsApache-2.065 out of 100