Instructions to use eclec/patentClassificationLongFormerTextrank with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eclec/patentClassificationLongFormerTextrank with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="eclec/patentClassificationLongFormerTextrank")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("eclec/patentClassificationLongFormerTextrank") model = AutoModelForSequenceClassification.from_pretrained("eclec/patentClassificationLongFormerTextrank", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 0
Browse files- config.json +1 -1
- merges.txt +1 -1
- pytorch_model.bin +1 -1
- tokenizer.json +0 -1
- tokenizer_config.json +4 -0
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
| 58 |
"problem_type": "single_label_classification",
|
| 59 |
"sep_token_id": 2,
|
| 60 |
"torch_dtype": "float32",
|
| 61 |
-
"transformers_version": "4.
|
| 62 |
"type_vocab_size": 1,
|
| 63 |
"vocab_size": 50265
|
| 64 |
}
|
|
|
|
| 58 |
"problem_type": "single_label_classification",
|
| 59 |
"sep_token_id": 2,
|
| 60 |
"torch_dtype": "float32",
|
| 61 |
+
"transformers_version": "4.32.1",
|
| 62 |
"type_vocab_size": 1,
|
| 63 |
"vocab_size": 50265
|
| 64 |
}
|
merges.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#version: 0.2
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
|
|
|
| 1 |
+
#version: 0.2 - Trained by `huggingface/tokenizers`
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1738600369
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16f683fc518a14964be2d614e020755bece4ff3a2bdb75cdb030c8db3b474fb2
|
| 3 |
size 1738600369
|
tokenizer.json
CHANGED
|
@@ -87,7 +87,6 @@
|
|
| 87 |
"continuing_subword_prefix": "",
|
| 88 |
"end_of_word_suffix": "",
|
| 89 |
"fuse_unk": false,
|
| 90 |
-
"byte_fallback": false,
|
| 91 |
"vocab": {
|
| 92 |
"<s>": 0,
|
| 93 |
"<pad>": 1,
|
|
|
|
| 87 |
"continuing_subword_prefix": "",
|
| 88 |
"end_of_word_suffix": "",
|
| 89 |
"fuse_unk": false,
|
|
|
|
| 90 |
"vocab": {
|
| 91 |
"<s>": 0,
|
| 92 |
"<pad>": 1,
|
tokenizer_config.json
CHANGED
|
@@ -6,10 +6,14 @@
|
|
| 6 |
"eos_token": "</s>",
|
| 7 |
"errors": "replace",
|
| 8 |
"mask_token": "<mask>",
|
|
|
|
| 9 |
"model_max_length": 4096,
|
| 10 |
"pad_token": "<pad>",
|
| 11 |
"sep_token": "</s>",
|
|
|
|
| 12 |
"tokenizer_class": "LongformerTokenizer",
|
| 13 |
"trim_offsets": true,
|
|
|
|
|
|
|
| 14 |
"unk_token": "<unk>"
|
| 15 |
}
|
|
|
|
| 6 |
"eos_token": "</s>",
|
| 7 |
"errors": "replace",
|
| 8 |
"mask_token": "<mask>",
|
| 9 |
+
"max_length": 4096,
|
| 10 |
"model_max_length": 4096,
|
| 11 |
"pad_token": "<pad>",
|
| 12 |
"sep_token": "</s>",
|
| 13 |
+
"stride": 0,
|
| 14 |
"tokenizer_class": "LongformerTokenizer",
|
| 15 |
"trim_offsets": true,
|
| 16 |
+
"truncation_side": "right",
|
| 17 |
+
"truncation_strategy": "longest_first",
|
| 18 |
"unk_token": "<unk>"
|
| 19 |
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e26e62b16a293407814f49e54f624e85ab2cf305273143011cce6cc47beb000
|
| 3 |
+
size 4091
|