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
-
Adding `safetensors` variant of this model
Mehmet Faik İmamogluThis is an automated PR. This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. Feel free to ignore this PR.2c99dd5
-
Addition of paper (#8)
- Addition of paper (7176e7189778cd9c33c3ed07a9bceb260cf2b91a) - removing optional text (03ac8e8f9202dc6a089ba09baff005ee398eed19) Co-authored-by: Ezi Ozoani <Ezi@users.noreply.huggingface.co>8d2a91f
-
Adding `safetensors` variant of this model (#6)
- Adding `safetensors` variant of this model (e366e0e323b45124438c2c9ede73fda251716318) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>84b432f
-
Model Card (#3)
- Model Card (2c08eac0204c98ccf16ca350e73f9c850f92ed4c) Co-authored-by: Ezi Ozoani <Ezi@users.noreply.huggingface.co>38fda77
-
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