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
Update README.md
Browse files5 unmodified lines67891011121314910114 unmodified lines161718252627282930311920216 unmodified lines282930443132333435364637383940414243444546474849505152535455565758596061626364656667685 unmodified linespipeline_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)
4 unmodified linesThis 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 Procedure6 unmodified lines
## Evaluation
#### Results| 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**|
[More Information Needed]#### Results
| Test ID\Results | [MASK] Input | Result Output || -------------|-------------|-------------|| 1|今天禮拜[MASK]?我[MASK]是很想[MASK]班。|今天禮拜六?我不是很想上班。 || 2|[MASK]灣並[MASK]是[MASK]國不可分割的一部分。|臺灣並不是中國不可分割的一部分。 || 3|如果可以是韋[MASK]安的最新歌[MASK]。|如果可以是韋禮安的最新歌曲。 || 4|[MASK]水老[MASK]有賣很多鐵蛋的攤販。|淡水老街有賣很多鐵蛋的攤販。 |
## How to Get Started With the Model#### Private Model Download
**Installation**```$ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash$ sudo apt-get install git-lfs$ git lfs install$ pip install huggingface_hub
```**Login HuggingFace**
```$ huggingface-cli loginToken:Your own 'write' token.```
**Pyhon Code**
```pythonfrom transformers import AutoTokenizer, AutoModelForMaskedLM
README.md+31-15