Instructions to use vantan/longformer-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vantan/longformer-text-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="vantan/longformer-text-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("vantan/longformer-text-classification") model = AutoModelForSequenceClassification.from_pretrained("vantan/longformer-text-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 3894
Browse files- model.safetensors +1 -1
- special_tokens_map.json +1 -7
- tokenizer.json +1 -1
- tokenizer_config.json +1 -1
- training_args.bin +1 -1
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 594690488
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:903a8f9a77b6ebdc99ce80c5207e3cb2b7895d5473717b0be979b58885781c60
|
| 3 |
size 594690488
|
special_tokens_map.json
CHANGED
|
@@ -27,13 +27,7 @@
|
|
| 27 |
"rstrip": false,
|
| 28 |
"single_word": false
|
| 29 |
},
|
| 30 |
-
"pad_token":
|
| 31 |
-
"content": "<pad>",
|
| 32 |
-
"lstrip": false,
|
| 33 |
-
"normalized": true,
|
| 34 |
-
"rstrip": false,
|
| 35 |
-
"single_word": false
|
| 36 |
-
},
|
| 37 |
"sep_token": {
|
| 38 |
"content": "</s>",
|
| 39 |
"lstrip": false,
|
|
|
|
| 27 |
"rstrip": false,
|
| 28 |
"single_word": false
|
| 29 |
},
|
| 30 |
+
"pad_token": "</s>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
"sep_token": {
|
| 32 |
"content": "</s>",
|
| 33 |
"lstrip": false,
|
tokenizer.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
-
"max_length":
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
|
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
+
"max_length": 2048,
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
tokenizer_config.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
"errors": "replace",
|
| 50 |
"mask_token": "<mask>",
|
| 51 |
"model_max_length": 4096,
|
| 52 |
-
"pad_token": "<
|
| 53 |
"sep_token": "</s>",
|
| 54 |
"tokenizer_class": "LongformerTokenizer",
|
| 55 |
"trim_offsets": true,
|
|
|
|
| 49 |
"errors": "replace",
|
| 50 |
"mask_token": "<mask>",
|
| 51 |
"model_max_length": 4096,
|
| 52 |
+
"pad_token": "</s>",
|
| 53 |
"sep_token": "</s>",
|
| 54 |
"tokenizer_class": "LongformerTokenizer",
|
| 55 |
"trim_offsets": true,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a02260652f8e74596bdd8a200f4892b15bf40d56836b7676e891ff83dc1e774
|
| 3 |
size 5112
|