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 ONNX file of this model
Verified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [zhongyizhang](https://huggingface.co/zhongyizhang), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!c29f9a4
-
set actual license and link to GH repo (#36)
Verified signature- set actual license and link to GH repo (aa70e8aa0516b4cc86ac6c1ec25c03e4be7e6ad8)8f23c25
-
Updates the tokenizer configuration file (#16)
Verified signature- Adds tokenizer_config.json file (5188f339e0fd19c8a007f5a48b7519c63088e467)c30a6ed
-
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