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 14:04:06.838533.
Browse files
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: full_labels
|
| 20 |
split: test
|
| 21 |
+
args: full_labels
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
+
value: 0.8161524956107349
|
| 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.5164
|
| 36 |
+
- Claim: {'precision': 0.5841029946823397, 'recall': 0.47910927456382, 'f1-score': 0.5264219952074664, 'support': 4356.0}
|
| 37 |
+
- Majorclaim: {'precision': 0.663898774219059, 'recall': 0.7694775435380385, 'f1-score': 0.7127998301846742, 'support': 2182.0}
|
| 38 |
+
- O: {'precision': 0.9219015280135824, 'recall': 0.8781671159029649, 'f1-score': 0.8995030369961348, 'support': 9275.0}
|
| 39 |
+
- Premise: {'precision': 0.8377274128893001, 'recall': 0.8983961640211641, 'f1-score': 0.8670017552257859, 'support': 12096.0}
|
| 40 |
+
- Accuracy: 0.8162
|
| 41 |
+
- Macro avg: {'precision': 0.7519076774510703, 'recall': 0.7562875245064969, 'f1-score': 0.7514316544035153, 'support': 27909.0}
|
| 42 |
+
- Weighted avg: {'precision': 0.8125252509519227, 'recall': 0.8161524956107349, 'f1-score': 0.8125897502575133, 'support': 27909.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.7242 | {'precision': 0.4451114922813036, 'recall': 0.23829201101928374, 'f1-score': 0.3104066985645933, 'support': 4356.0} | {'precision': 0.6888297872340425, 'recall': 0.11869844179651695, 'f1-score': 0.20250195465207194, 'support': 2182.0} | {'precision': 0.7629536017331648, 'recall': 0.9112668463611859, 'f1-score': 0.8305409521937798, 'support': 9275.0} | {'precision': 0.7774552148976847, 'recall': 0.9077380952380952, 'f1-score': 0.83756054769442, 'support': 12096.0} | 0.7427 | {'precision': 0.6685875240365489, 'recall': 0.5439988486037705, 'f1-score': 0.5452525382762162, 'support': 27909.0} | {'precision': 0.7138351496506337, 'recall': 0.7427353183560859, 'f1-score': 0.7032996725252499, 'support': 27909.0} |
|
| 74 |
+
| No log | 2.0 | 82 | 0.5451 | {'precision': 0.5706823375775384, 'recall': 0.40128558310376494, 'f1-score': 0.47122253673001757, 'support': 4356.0} | {'precision': 0.6872317596566524, 'recall': 0.5870760769935839, 'f1-score': 0.6332179930795848, 'support': 2182.0} | {'precision': 0.8817295464179737, 'recall': 0.8970350404312668, 'f1-score': 0.8893164448720005, 'support': 9275.0} | {'precision': 0.819134799940942, 'recall': 0.9173280423280423, 'f1-score': 0.8654551127057172, 'support': 12096.0} | 0.8042 | {'precision': 0.7396946108982767, 'recall': 0.7006811857141645, 'f1-score': 0.71480302184683, 'support': 27909.0} | {'precision': 0.7908462519320261, 'recall': 0.8042208606542692, 'f1-score': 0.7936967322502336, 'support': 27909.0} |
|
| 75 |
+
| No log | 3.0 | 123 | 0.5164 | {'precision': 0.5841029946823397, 'recall': 0.47910927456382, 'f1-score': 0.5264219952074664, 'support': 4356.0} | {'precision': 0.663898774219059, 'recall': 0.7694775435380385, 'f1-score': 0.7127998301846742, 'support': 2182.0} | {'precision': 0.9219015280135824, 'recall': 0.8781671159029649, 'f1-score': 0.8995030369961348, 'support': 9275.0} | {'precision': 0.8377274128893001, 'recall': 0.8983961640211641, 'f1-score': 0.8670017552257859, 'support': 12096.0} | 0.8162 | {'precision': 0.7519076774510703, 'recall': 0.7562875245064969, 'f1-score': 0.7514316544035153, 'support': 27909.0} | {'precision': 0.8125252509519227, 'recall': 0.8161524956107349, 'f1-score': 0.8125897502575133, 'support': 27909.0} |
|
| 76 |
|
| 77 |
|
| 78 |
### Framework versions
|