Instructions to use vinai/bertweet-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vinai/bertweet-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="vinai/bertweet-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("vinai/bertweet-base") model = AutoModelForMaskedLM.from_pretrained("vinai/bertweet-base") - Inference
- Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +0 -3
config.json
CHANGED
|
@@ -2,9 +2,6 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"RobertaForMaskedLM"
|
| 4 |
],
|
| 5 |
-
"auto_map": {
|
| 6 |
-
"AutoTokenizer": ["tokenization_bertweet.BertweetTokenizer", "tokenization_bertweet_fast.BertweetTokenizerFast"]
|
| 7 |
-
},
|
| 8 |
"attention_probs_dropout_prob": 0.1,
|
| 9 |
"bos_token_id": 0,
|
| 10 |
"eos_token_id": 2,
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"RobertaForMaskedLM"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"bos_token_id": 0,
|
| 7 |
"eos_token_id": 2,
|