Run this model with HF Jobs
Run hfl/rbt6 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/hfl/rbt6. 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/hfl/rbt6 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 hfl/rbt6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hfl/rbt6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="hfl/rbt6")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("hfl/rbt6") model = AutoModelForMaskedLM.from_pretrained("hfl/rbt6", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
ymcui commited on
Commit ·
982a35a
1
Parent(s): c2a32bf
First version of the rbt6 model and tokenizer.
Browse filesFiles changed (8)
- README.mdAdded+54
- added_tokens.jsonAdded+1
- config.jsonAdded+27
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+1
- tf_model.h5Added+3
- tokenizer_config.jsonAdded+1
- vocab.txtAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354---language: - zhtags:- bertlicense: "apache-2.0"---## Chinese BERT with Whole Word MaskingFor further accelerating Chinese natural language processing, we provide **Chinese pre-trained BERT with Whole Word Masking**.
**[Pre-Training with Whole Word Masking for Chinese BERT](https://arxiv.org/abs/1906.08101)** Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Ziqing Yang, Shijin Wang, Guoping Hu
This repository is developed based on:https://github.com/google-research/bert
You may also interested in,- Chinese BERT series: https://github.com/ymcui/Chinese-BERT-wwm- Chinese MacBERT: https://github.com/ymcui/MacBERT- Chinese ELECTRA: https://github.com/ymcui/Chinese-ELECTRA- Chinese XLNet: https://github.com/ymcui/Chinese-XLNet- Knowledge Distillation Toolkit - TextBrewer: https://github.com/airaria/TextBrewer
More resources by HFL: https://github.com/ymcui/HFL-Anthology
## CitationIf you find the technical report or resource is useful, please cite the following technical report in your paper.- Primary: https://arxiv.org/abs/2004.13922```@inproceedings{cui-etal-2020-revisiting, title = "Revisiting Pre-Trained Models for {C}hinese Natural Language Processing", author = "Cui, Yiming and Che, Wanxiang and Liu, Ting and Qin, Bing and Wang, Shijin and Hu, Guoping", booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings", month = nov, year = "2020", address = "Online", publisher = "Association for Computational Linguistics", url = "https://www.aclweb.org/anthology/2020.findings-emnlp.58", pages = "657--668",}```- Secondary: https://arxiv.org/abs/1906.08101 ```@article{chinese-bert-wwm, title={Pre-Training with Whole Word Masking for Chinese BERT}, author={Cui, Yiming and Che, Wanxiang and Liu, Ting and Qin, Bing and Yang, Ziqing and Wang, Shijin and Hu, Guoping}, journal={arXiv preprint arXiv:1906.08101}, year={2019} }```1{}123456789101112131415161718192021222324252627{ "_name_or_path": "temp/rbt6", "attention_probs_dropout_prob": 0.1, "directionality": "bidi", "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 6, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "transformers_version": "4.2.2", "type_vocab_size": 2, "use_cache": true, "vocab_size": 21128}123version https://git-lfs.github.com/spec/v1oid sha256:b5341c17ef5f3b028d0b2aa74d13ea5851ef17e456864ddffae3e84e5abd4109size 2414701661{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}123version https://git-lfs.github.com/spec/v1oid sha256:3f817eb6fa00515d7d2d12f60d81b5d08adb1339176c083168300da64643e577size 3080760401{"init_inputs": []}README.mdAdded+54
added_tokens.jsonAdded+1
config.jsonAdded+27
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+1
tf_model.h5Added+3
tokenizer_config.jsonAdded+1
vocab.txtAdded