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
End of training
Browse files- README.md +10 -10
- pytorch_model.bin +1 -1
README.md
CHANGED
|
@@ -17,9 +17,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [eclec/patentClassificationLongFormer2](https://huggingface.co/eclec/patentClassificationLongFormer2) on the None dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
-
- Accuracy: 0.
|
| 22 |
-
- F1: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -38,25 +38,25 @@ More information needed
|
|
| 38 |
### Training hyperparameters
|
| 39 |
|
| 40 |
The following hyperparameters were used during training:
|
| 41 |
-
- learning_rate:
|
| 42 |
- train_batch_size: 8
|
| 43 |
- eval_batch_size: 8
|
| 44 |
-
- seed:
|
| 45 |
- gradient_accumulation_steps: 4
|
| 46 |
- total_train_batch_size: 32
|
| 47 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 48 |
- lr_scheduler_type: cosine
|
| 49 |
-
- lr_scheduler_warmup_ratio: 0.
|
| 50 |
-
- lr_scheduler_warmup_steps:
|
| 51 |
- num_epochs: 3
|
| 52 |
|
| 53 |
### Training results
|
| 54 |
|
| 55 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 56 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
|
| 61 |
|
| 62 |
### Framework versions
|
|
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [eclec/patentClassificationLongFormer2](https://huggingface.co/eclec/patentClassificationLongFormer2) on the None dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.4294
|
| 21 |
+
- Accuracy: 0.7959
|
| 22 |
+
- F1: 0.6187
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 38 |
### Training hyperparameters
|
| 39 |
|
| 40 |
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 1.330504416591152e-05
|
| 42 |
- train_batch_size: 8
|
| 43 |
- eval_batch_size: 8
|
| 44 |
+
- seed: 3
|
| 45 |
- gradient_accumulation_steps: 4
|
| 46 |
- total_train_batch_size: 32
|
| 47 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 48 |
- lr_scheduler_type: cosine
|
| 49 |
+
- lr_scheduler_warmup_ratio: 0.24934655263987432
|
| 50 |
+
- lr_scheduler_warmup_steps: 90
|
| 51 |
- num_epochs: 3
|
| 52 |
|
| 53 |
### Training results
|
| 54 |
|
| 55 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 56 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 57 |
+
| 0.4444 | 1.0 | 2059 | 0.4397 | 0.7947 | 0.6100 |
|
| 58 |
+
| 0.3942 | 2.0 | 4119 | 0.4294 | 0.7959 | 0.6187 |
|
| 59 |
+
| 0.3331 | 3.0 | 6177 | 0.4607 | 0.7999 | 0.6078 |
|
| 60 |
|
| 61 |
|
| 62 |
### Framework versions
|
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:5e395031e4f950d2cb21220ff7c033171d540727b8f2bce246490f27c74a27f5
|
| 3 |
size 1738600369
|