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
-
Add link to Neuron-optimized version
Verified signature🤖 Neuron Export Bot: Adding link to Neuron-optimized version. A Neuron-optimized version of this model has been created at [badaoui/google-bert-bert-base-chinese-neuron](https://huggingface.co/badaoui/google-bert-bert-base-chinese-neuron). The optimized version provides improved performance on AWS Inferentia/Trainium instances with pre-compiled artifacts. Generated by: [badaoui](https://huggingface.co/badaoui) Generated using: [Optimum Neuron Compiler Space](https://huggingface.co/spaces/optimum/neuron-export)841f98c
-
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