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
Training in progress, epoch 1
Browse files- README.md +15 -30
- config.json +12 -12
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -3,26 +3,11 @@ license: apache-2.0
|
|
| 3 |
base_model: allenai/longformer-base-4096
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
-
datasets:
|
| 7 |
-
- fancy_dataset
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
model-index:
|
| 11 |
- name: longformer-one-step
|
| 12 |
-
results:
|
| 13 |
-
- task:
|
| 14 |
-
name: Token Classification
|
| 15 |
-
type: token-classification
|
| 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
|
|
@@ -30,16 +15,16 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 30 |
|
| 31 |
# longformer-one-step
|
| 32 |
|
| 33 |
-
This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the
|
| 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 +53,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 |
|
| 74 |
-
| No log | 2.0 |
|
| 75 |
-
| No log | 3.0 |
|
| 76 |
|
| 77 |
|
| 78 |
### Framework versions
|
|
|
|
| 3 |
base_model: allenai/longformer-base-4096
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
|
|
|
|
|
|
| 6 |
metrics:
|
| 7 |
- accuracy
|
| 8 |
model-index:
|
| 9 |
- name: longformer-one-step
|
| 10 |
+
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 15 |
|
| 16 |
# longformer-one-step
|
| 17 |
|
| 18 |
+
This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the None dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.5640
|
| 21 |
+
- Claim: {'precision': 0.5519765739385066, 'recall': 0.32811140121845084, 'f1-score': 0.41157205240174677, 'support': 2298.0}
|
| 22 |
+
- Majorclaim: {'precision': 0.5541490857946554, 'recall': 0.701067615658363, 'f1-score': 0.6190102120974077, 'support': 1124.0}
|
| 23 |
+
- O: {'precision': 0.8899137758171245, 'recall': 0.8831840796019901, 'f1-score': 0.8865361566120655, 'support': 5025.0}
|
| 24 |
+
- Premise: {'precision': 0.830119375573921, 'recall': 0.9103726082578046, 'f1-score': 0.8683957732949088, 'support': 6951.0}
|
| 25 |
+
- Accuracy: 0.7993
|
| 26 |
+
- Macro avg: {'precision': 0.7065397027810518, 'recall': 0.7056839261841521, 'f1-score': 0.6963785486015321, 'support': 15398.0}
|
| 27 |
+
- Weighted avg: {'precision': 0.7879778050681424, 'recall': 0.7993245876087803, 'f1-score': 0.7879350085702844, 'support': 15398.0}
|
| 28 |
|
| 29 |
## Model description
|
| 30 |
|
|
|
|
| 53 |
|
| 54 |
### Training results
|
| 55 |
|
| 56 |
+
| Training Loss | Epoch | Step | Validation Loss | Claim | Majorclaim | O | Premise | Accuracy | Macro avg | Weighted avg |
|
| 57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------:|:--------:|:-------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------:|
|
| 58 |
+
| No log | 1.0 | 36 | 0.7525 | {'precision': 0.41766381766381766, 'recall': 0.31897302001740646, 'f1-score': 0.36170737725141877, 'support': 2298.0} | {'precision': 0.43548387096774194, 'recall': 0.02402135231316726, 'f1-score': 0.045531197301854974, 'support': 1124.0} | {'precision': 0.7476681394207167, 'recall': 0.9092537313432836, 'f1-score': 0.8205818965517241, 'support': 5025.0} | {'precision': 0.8187416331994646, 'recall': 0.8798733995108617, 'f1-score': 0.8482074752097636, 'support': 6951.0} | 0.7433 | {'precision': 0.6048893653129352, 'recall': 0.5330303757961797, 'f1-score': 0.5190069865786904, 'support': 15398.0} | {'precision': 0.707714041883217, 'recall': 0.7432783478373814, 'f1-score': 0.7079942076273884, 'support': 15398.0} |
|
| 59 |
+
| No log | 2.0 | 72 | 0.6577 | {'precision': 0.4793814432989691, 'recall': 0.3237597911227154, 'f1-score': 0.38649350649350644, 'support': 2298.0} | {'precision': 0.41677503250975295, 'recall': 0.5702846975088968, 'f1-score': 0.48159278737791134, 'support': 1124.0} | {'precision': 0.7966573816155988, 'recall': 0.9106467661691542, 'f1-score': 0.849846782431052, 'support': 5025.0} | {'precision': 0.8743144424131627, 'recall': 0.8256365990504964, 'f1-score': 0.8492785793562707, 'support': 6951.0} | 0.7598 | {'precision': 0.6417820749593709, 'recall': 0.6575819634628157, 'f1-score': 0.6418029139146851, 'support': 15398.0} | {'precision': 0.7566331163186304, 'recall': 0.7598389401220937, 'f1-score': 0.7535581151939423, 'support': 15398.0} |
|
| 60 |
+
| No log | 3.0 | 108 | 0.5640 | {'precision': 0.5519765739385066, 'recall': 0.32811140121845084, 'f1-score': 0.41157205240174677, 'support': 2298.0} | {'precision': 0.5541490857946554, 'recall': 0.701067615658363, 'f1-score': 0.6190102120974077, 'support': 1124.0} | {'precision': 0.8899137758171245, 'recall': 0.8831840796019901, 'f1-score': 0.8865361566120655, 'support': 5025.0} | {'precision': 0.830119375573921, 'recall': 0.9103726082578046, 'f1-score': 0.8683957732949088, 'support': 6951.0} | 0.7993 | {'precision': 0.7065397027810518, 'recall': 0.7056839261841521, 'f1-score': 0.6963785486015321, 'support': 15398.0} | {'precision': 0.7879778050681424, 'recall': 0.7993245876087803, 'f1-score': 0.7879350085702844, 'support': 15398.0} |
|
| 61 |
|
| 62 |
|
| 63 |
### Framework versions
|
config.json
CHANGED
|
@@ -6,18 +6,18 @@
|
|
| 6 |
"attention_mode": "longformer",
|
| 7 |
"attention_probs_dropout_prob": 0.1,
|
| 8 |
"attention_window": [
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
],
|
| 22 |
"bos_token_id": 0,
|
| 23 |
"eos_token_id": 2,
|
|
|
|
| 6 |
"attention_mode": "longformer",
|
| 7 |
"attention_probs_dropout_prob": 0.1,
|
| 8 |
"attention_window": [
|
| 9 |
+
512,
|
| 10 |
+
512,
|
| 11 |
+
512,
|
| 12 |
+
512,
|
| 13 |
+
512,
|
| 14 |
+
512,
|
| 15 |
+
512,
|
| 16 |
+
512,
|
| 17 |
+
512,
|
| 18 |
+
512,
|
| 19 |
+
512,
|
| 20 |
+
512
|
| 21 |
],
|
| 22 |
"bos_token_id": 0,
|
| 23 |
"eos_token_id": 2,
|
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:ff1500e6187d45329e7e4f9532dbff8c49e244c525e7575eae46390f09754faf
|
| 3 |
size 592330980
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4664
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:223d910fef0c741cf4d01af639c10c6956f9668989f3027d435a2092f10d923e
|
| 3 |
size 4664
|