Run this model with HF Jobs
Run Azion/bert-based-chinese on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Azion/bert-based-chinese. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Azion/bert-based-chinese on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Azion/bert-based-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azion/bert-based-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Azion/bert-based-chinese")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Azion/bert-based-chinese") model = AutoModelForMaskedLM.from_pretrained("Azion/bert-based-chinese", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Frederick Lee commited on
Commit ·
0465aa6
1
Parent(s): 210bb79
Upload README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---datasets:- botp/yentinglin-zh_TW_c4language:- zhpipeline_tag: fill-mask---
| Dataset\BERT Pretrain | bert-based-chinese | ckiplab | GufoLab || ------------- |:-------------:|:-------------:|:-------------:|| 5000 Tradition Chinese Dataset |0.7183| 0.6989| **0.8081**|| 10000 Sol-Idea Dataset | 0.7874| 0.7913| **0.8025**|| ALL DataSet | 0.7694| 0.7678| **0.8038**|
### Model Sources- **Paper:** [BERT](https://arxiv.org/abs/1810.04805)
## Uses
#### Direct Use
This model can be used for masked language modeling
## Risks, Limitations and Biases**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Training
#### Training Procedure* **type_vocab_size:** 2* **vocab_size:** 21128* **num_hidden_layers:** 12
#### Training Databotp/yentinglin-zh_TW_c4
## Evaluation
#### Results
[More Information Needed]
## How to Get Started With the Model```pythonfrom transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained('EZlee/bert-based-chinese', use_auth_token=True)
model = AutoModelForMaskedLM.from_pretrained("EZlee/bert-based-chinese", use_auth_token=True)
```README.mdAdded+57