Instructions to use arxyzan/data2vec-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arxyzan/data2vec-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="arxyzan/data2vec-roberta-base")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("arxyzan/data2vec-roberta-base") model = AutoModel.from_pretrained("arxyzan/data2vec-roberta-base") - Notebooks
- Google Colab
- Kaggle
add tokenizer
Browse files- tokenizer.json +4 -2
tokenizer.json
CHANGED
|
@@ -53,7 +53,8 @@
|
|
| 53 |
"pre_tokenizer": {
|
| 54 |
"type": "ByteLevel",
|
| 55 |
"add_prefix_space": false,
|
| 56 |
-
"trim_offsets": true
|
|
|
|
| 57 |
},
|
| 58 |
"post_processor": {
|
| 59 |
"type": "RobertaProcessing",
|
|
@@ -71,7 +72,8 @@
|
|
| 71 |
"decoder": {
|
| 72 |
"type": "ByteLevel",
|
| 73 |
"add_prefix_space": true,
|
| 74 |
-
"trim_offsets": true
|
|
|
|
| 75 |
},
|
| 76 |
"model": {
|
| 77 |
"type": "BPE",
|
|
|
|
| 53 |
"pre_tokenizer": {
|
| 54 |
"type": "ByteLevel",
|
| 55 |
"add_prefix_space": false,
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"use_regex": true
|
| 58 |
},
|
| 59 |
"post_processor": {
|
| 60 |
"type": "RobertaProcessing",
|
|
|
|
| 72 |
"decoder": {
|
| 73 |
"type": "ByteLevel",
|
| 74 |
"add_prefix_space": true,
|
| 75 |
+
"trim_offsets": true,
|
| 76 |
+
"use_regex": true
|
| 77 |
},
|
| 78 |
"model": {
|
| 79 |
"type": "BPE",
|