Instructions to use Theoreticallyhugo/longformer-one-step with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Theoreticallyhugo/longformer-one-step with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Theoreticallyhugo/longformer-one-step")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Theoreticallyhugo/longformer-one-step") model = AutoModelForTokenClassification.from_pretrained("Theoreticallyhugo/longformer-one-step", device_map="auto") - Notebooks
- Google Colab
- Kaggle
trainer: training complete at 2024-02-05 13:56:59.411305.
Browse files- README.md +16 -16
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -16,13 +16,13 @@ model-index:
|
|
| 16 |
dataset:
|
| 17 |
name: fancy_dataset
|
| 18 |
type: fancy_dataset
|
| 19 |
-
config:
|
| 20 |
split: test
|
| 21 |
-
args:
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
-
value: 0.
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -32,14 +32,14 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 32 |
|
| 33 |
This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the fancy_dataset dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
-
- Loss: 0.
|
| 36 |
-
- Claim: {'precision': 0.
|
| 37 |
-
- Majorclaim: {'precision': 0.
|
| 38 |
-
- O: {'precision': 0.
|
| 39 |
-
- Premise: {'precision': 0.
|
| 40 |
-
- Accuracy: 0.
|
| 41 |
-
- Macro avg: {'precision': 0.
|
| 42 |
-
- Weighted avg: {'precision': 0.
|
| 43 |
|
| 44 |
## Model description
|
| 45 |
|
|
@@ -68,11 +68,11 @@ The following hyperparameters were used during training:
|
|
| 68 |
|
| 69 |
### Training results
|
| 70 |
|
| 71 |
-
| Training Loss | Epoch | Step | Validation Loss | Claim
|
| 72 |
-
|:-------------:|:-----:|:----:|:---------------:|:-------------------------------------------------------------------------------------------------------------------
|
| 73 |
-
| No log | 1.0 | 41 | 0.
|
| 74 |
-
| No log | 2.0 | 82 | 0.
|
| 75 |
-
| No log | 3.0 | 123 | 0.
|
| 76 |
|
| 77 |
|
| 78 |
### Framework versions
|
|
|
|
| 16 |
dataset:
|
| 17 |
name: fancy_dataset
|
| 18 |
type: fancy_dataset
|
| 19 |
+
config: sep_tok
|
| 20 |
split: test
|
| 21 |
+
args: sep_tok
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.8691844007060312
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 32 |
|
| 33 |
This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the fancy_dataset dataset.
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.3013
|
| 36 |
+
- Claim: {'precision': 0.5698178664353859, 'recall': 0.4524793388429752, 'f1-score': 0.5044145873320538, 'support': 4356.0}
|
| 37 |
+
- Majorclaim: {'precision': 0.7584043030031377, 'recall': 0.775435380384968, 'f1-score': 0.7668252889191027, 'support': 2182.0}
|
| 38 |
+
- O: {'precision': 0.9997360084477297, 'recall': 0.9971912577898709, 'f1-score': 0.9984620116887112, 'support': 11393.0}
|
| 39 |
+
- Premise: {'precision': 0.8536961381330456, 'recall': 0.9155919312169312, 'f1-score': 0.8835613706170967, 'support': 12096.0}
|
| 40 |
+
- Accuracy: 0.8692
|
| 41 |
+
- Macro avg: {'precision': 0.7954135790048247, 'recall': 0.7851744770586864, 'f1-score': 0.7883158146392412, 'support': 30027.0}
|
| 42 |
+
- Weighted avg: {'precision': 0.8610006209893659, 'recall': 0.8691844007060312, 'f1-score': 0.8636719872446065, 'support': 30027.0}
|
| 43 |
|
| 44 |
## Model description
|
| 45 |
|
|
|
|
| 68 |
|
| 69 |
### Training results
|
| 70 |
|
| 71 |
+
| Training Loss | Epoch | Step | Validation Loss | Claim | Majorclaim | O | Premise | Accuracy | Macro avg | Weighted avg |
|
| 72 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------:|:--------:|:-------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------:|
|
| 73 |
+
| No log | 1.0 | 41 | 0.4523 | {'precision': 0.4538361508452536, 'recall': 0.16023875114784206, 'f1-score': 0.2368510349507974, 'support': 4356.0} | {'precision': 0.6438781852082038, 'recall': 0.4747937671860678, 'f1-score': 0.5465576365075178, 'support': 2182.0} | {'precision': 0.961874840791373, 'recall': 0.9942947423856754, 'f1-score': 0.9778161415623651, 'support': 11393.0} | {'precision': 0.7773290074819572, 'recall': 0.970568783068783, 'f1-score': 0.8632670318761719, 'support': 12096.0} | 0.8260 | {'precision': 0.7092295460816969, 'recall': 0.6499740109470921, 'f1-score': 0.656122961224213, 'support': 30027.0} | {'precision': 0.7907238221881672, 'recall': 0.8259899423851866, 'f1-score': 0.7928414157091711, 'support': 30027.0} |
|
| 74 |
+
| No log | 2.0 | 82 | 0.3203 | {'precision': 0.5346471710108074, 'recall': 0.38613406795224975, 'f1-score': 0.4484137563316448, 'support': 4356.0} | {'precision': 0.8060538116591929, 'recall': 0.6590284142988084, 'f1-score': 0.7251638930912757, 'support': 2182.0} | {'precision': 0.9997357759379955, 'recall': 0.9963135258492056, 'f1-score': 0.9980217171495142, 'support': 11393.0} | {'precision': 0.8241286473113585, 'recall': 0.9363425925925926, 'f1-score': 0.8766593134409226, 'support': 12096.0} | 0.8591 | {'precision': 0.7911413514798384, 'recall': 0.7444546501732141, 'f1-score': 0.7620646700033393, 'support': 30027.0} | {'precision': 0.8474500385354251, 'recall': 0.8591267858926965, 'f1-score': 0.8495730647807515, 'support': 30027.0} |
|
| 75 |
+
| No log | 3.0 | 123 | 0.3013 | {'precision': 0.5698178664353859, 'recall': 0.4524793388429752, 'f1-score': 0.5044145873320538, 'support': 4356.0} | {'precision': 0.7584043030031377, 'recall': 0.775435380384968, 'f1-score': 0.7668252889191027, 'support': 2182.0} | {'precision': 0.9997360084477297, 'recall': 0.9971912577898709, 'f1-score': 0.9984620116887112, 'support': 11393.0} | {'precision': 0.8536961381330456, 'recall': 0.9155919312169312, 'f1-score': 0.8835613706170967, 'support': 12096.0} | 0.8692 | {'precision': 0.7954135790048247, 'recall': 0.7851744770586864, 'f1-score': 0.7883158146392412, 'support': 30027.0} | {'precision': 0.8610006209893659, 'recall': 0.8691844007060312, 'f1-score': 0.8636719872446065, 'support': 30027.0} |
|
| 76 |
|
| 77 |
|
| 78 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 592330980
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac9dd5742133824d16209428885eaa7c8c92d2e898abb88eb4e12ca5c84aec81
|
| 3 |
size 592330980
|