Instructions to use google-bert/bert-base-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google-bert/bert-base-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="google-bert/bert-base-chinese")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-chinese") model = AutoModelForMaskedLM.from_pretrained("google-bert/bert-base-chinese", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Model Card
Hi!👋 This PR has a some additional information for the model card, based on the format we are using as part of our effort to standardise model cards at Hugging Face. Feel free to merge if you are ok with the changes! (cc @Marissa @Meg)2c08eac
-
upload flax model
4b1f5fb -
allow flax
4f3e683
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/bert-base-chinese-README.mda58e1a5
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>8585f10
-
Add tokenizer configuration
Thomas Wolf112e219
-
Update tokenizer.json
886e15f
-
Update config.json
426baf1
-
Update config.json
87685c2
-
Update modelcard.json
093bd06
-
Update tf_model.h5
950c409
-
Update config.json
bc169c2 -
Update pytorch_model.bin
12229ac
-
Update vocab.txt
871cd75
-
Update vocab.txt
bea3a01 -
initial commit
504939a