#58 · Primary category: Foundation Models
MacBERT
Revisiting Pre-trained Models for Chinese Natural Language Processing (MacBERT)
Project last updated:04/19/26
GitHub Stars
719
Forks
61
Contributors
1
License
Apache-2.0
Why we included this project
If you work on Chinese-language NLP, MacBERT is a practical upgrade over vanilla BERT without forcing you to change your pipeline. It keeps the same architecture, so you can load it with the usual from_pretrained call and drop it into existing PyTorch or TensorFlow code. The training trick is what sets it apart: instead of masking tokens with [MASK], it replaces them with similar words, which makes the pretraining closer to what the model sees at inference time. That change pays off on Chinese benchmarks, where it outperforms BERT and RoBERTa-wwm on reading comprehension, inference, sentiment, and sentence-pair tasks. Both base and large checkpoints are on Hugging Face, and the project is well documented, so it's a solid starting point if you want a better Chinese encoder that still behaves like BERT.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities