Instructions to use dennlinger/roberta-cls-consec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dennlinger/roberta-cls-consec with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dennlinger/roberta-cls-consec")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dennlinger/roberta-cls-consec") model = AutoModelForSequenceClassification.from_pretrained("dennlinger/roberta-cls-consec", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
44dfb06
1
Parent(s): 7028c05
Adding other files that should go in here.
Browse files- merges.txt +0 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- vocab.json +0 -0
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": "<mask>"}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"do_lower_case": false, "max_len": 512}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|