End of training
Browse files- DisamBertSingleSense.py +0 -3
- README.md +96 -195
- config.json +1 -1
- model.safetensors +1 -1
- tokenizer.json +0 -0
- tokenizer_config.json +20 -0
- training_args.bin +3 -0
DisamBertSingleSense.py
CHANGED
|
@@ -132,6 +132,3 @@ class DisamBertSingleSense(PreTrainedModel):
|
|
| 132 |
hidden_states=base_model_output.hidden_states if output_hidden_states else None,
|
| 133 |
attentions=base_model_output.attentions if output_attentions else None,
|
| 134 |
)
|
| 135 |
-
|
| 136 |
-
def get_input_embeddings(self):
|
| 137 |
-
return self.BaseModel.get_input_embeddings()
|
|
|
|
| 132 |
hidden_states=base_model_output.hidden_states if output_hidden_states else None,
|
| 133 |
attentions=base_model_output.attentions if output_attentions else None,
|
| 134 |
)
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,199 +1,100 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
###
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
[More Information Needed]
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
#### Training Hyperparameters
|
| 94 |
-
|
| 95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
-
|
| 97 |
-
#### Speeds, Sizes, Times [optional]
|
| 98 |
-
|
| 99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 102 |
-
|
| 103 |
-
## Evaluation
|
| 104 |
-
|
| 105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
-
|
| 107 |
-
### Testing Data, Factors & Metrics
|
| 108 |
-
|
| 109 |
-
#### Testing Data
|
| 110 |
-
|
| 111 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
-
|
| 113 |
-
[More Information Needed]
|
| 114 |
-
|
| 115 |
-
#### Factors
|
| 116 |
-
|
| 117 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
-
|
| 119 |
-
[More Information Needed]
|
| 120 |
-
|
| 121 |
-
#### Metrics
|
| 122 |
-
|
| 123 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
-
|
| 125 |
-
[More Information Needed]
|
| 126 |
-
|
| 127 |
-
### Results
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
#### Summary
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
## Model Examination [optional]
|
| 136 |
-
|
| 137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
-
|
| 139 |
-
[More Information Needed]
|
| 140 |
-
|
| 141 |
-
## Environmental Impact
|
| 142 |
-
|
| 143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
-
|
| 145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
-
|
| 147 |
-
- **Hardware Type:** [More Information Needed]
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
-
|
| 153 |
-
## Technical Specifications [optional]
|
| 154 |
-
|
| 155 |
-
### Model Architecture and Objective
|
| 156 |
-
|
| 157 |
-
[More Information Needed]
|
| 158 |
-
|
| 159 |
-
### Compute Infrastructure
|
| 160 |
-
|
| 161 |
-
[More Information Needed]
|
| 162 |
-
|
| 163 |
-
#### Hardware
|
| 164 |
-
|
| 165 |
-
[More Information Needed]
|
| 166 |
-
|
| 167 |
-
#### Software
|
| 168 |
-
|
| 169 |
-
[More Information Needed]
|
| 170 |
-
|
| 171 |
-
## Citation [optional]
|
| 172 |
-
|
| 173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
-
|
| 175 |
-
**BibTeX:**
|
| 176 |
-
|
| 177 |
-
[More Information Needed]
|
| 178 |
-
|
| 179 |
-
**APA:**
|
| 180 |
-
|
| 181 |
-
[More Information Needed]
|
| 182 |
-
|
| 183 |
-
## Glossary [optional]
|
| 184 |
-
|
| 185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
-
|
| 187 |
-
[More Information Needed]
|
| 188 |
-
|
| 189 |
-
## More Information [optional]
|
| 190 |
-
|
| 191 |
-
[More Information Needed]
|
| 192 |
-
|
| 193 |
-
## Model Card Authors [optional]
|
| 194 |
-
|
| 195 |
-
[More Information Needed]
|
| 196 |
-
|
| 197 |
-
## Model Card Contact
|
| 198 |
-
|
| 199 |
-
[More Information Needed]
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
base_model: answerdotai/ModernBERT-base
|
| 7 |
+
tags:
|
| 8 |
+
- generated_from_trainer
|
| 9 |
+
metrics:
|
| 10 |
+
- precision
|
| 11 |
+
- recall
|
| 12 |
+
- f1
|
| 13 |
+
model-index:
|
| 14 |
+
- name: DisambertSingleSense-base
|
| 15 |
+
results: []
|
| 16 |
---
|
| 17 |
|
| 18 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 19 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 20 |
+
|
| 21 |
+
# DisambertSingleSense-base
|
| 22 |
+
|
| 23 |
+
This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on the semcor dataset.
|
| 24 |
+
It achieves the following results on the evaluation set:
|
| 25 |
+
- Loss: 4.3051
|
| 26 |
+
- Precision: 0.6129
|
| 27 |
+
- Recall: 0.6236
|
| 28 |
+
- F1: 0.6182
|
| 29 |
+
- Matthews: 0.6233
|
| 30 |
+
|
| 31 |
+
## Model description
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Intended uses & limitations
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training and evaluation data
|
| 40 |
+
|
| 41 |
+
More information needed
|
| 42 |
+
|
| 43 |
+
## Training procedure
|
| 44 |
+
|
| 45 |
+
### Training hyperparameters
|
| 46 |
+
|
| 47 |
+
The following hyperparameters were used during training:
|
| 48 |
+
- learning_rate: 0.0001
|
| 49 |
+
- train_batch_size: 16
|
| 50 |
+
- eval_batch_size: 16
|
| 51 |
+
- seed: 42
|
| 52 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 53 |
+
- lr_scheduler_type: inverse_sqrt
|
| 54 |
+
- lr_scheduler_warmup_steps: 1000
|
| 55 |
+
- num_epochs: 30
|
| 56 |
+
- label_smoothing_factor: 0.1
|
| 57 |
+
|
| 58 |
+
### Training results
|
| 59 |
+
|
| 60 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Matthews |
|
| 61 |
+
|:-------------:|:-----:|:------:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 62 |
+
| No log | 0 | 0 | 208.8371 | 0.0 | 0.0 | 0.0 | 0.0 |
|
| 63 |
+
| 6.4576 | 1.0 | 14014 | 7.0514 | 0.5818 | 0.5259 | 0.5524 | 0.5256 |
|
| 64 |
+
| 4.4009 | 2.0 | 28028 | 5.0733 | 0.5949 | 0.5819 | 0.5884 | 0.5819 |
|
| 65 |
+
| 2.8900 | 3.0 | 42042 | 4.5159 | 0.6520 | 0.6131 | 0.6319 | 0.6127 |
|
| 66 |
+
| 2.4798 | 4.0 | 56056 | 4.2910 | 0.6449 | 0.6060 | 0.6249 | 0.6058 |
|
| 67 |
+
| 2.1994 | 5.0 | 70070 | 4.1419 | 0.6295 | 0.6126 | 0.6209 | 0.6126 |
|
| 68 |
+
| 1.9889 | 6.0 | 84084 | 4.0561 | 0.6316 | 0.6192 | 0.6253 | 0.6191 |
|
| 69 |
+
| 1.8689 | 7.0 | 98098 | 3.9877 | 0.6350 | 0.6183 | 0.6266 | 0.6182 |
|
| 70 |
+
| 1.7944 | 8.0 | 112112 | 3.9447 | 0.6216 | 0.6218 | 0.6217 | 0.6217 |
|
| 71 |
+
| 1.6724 | 9.0 | 126126 | 3.9353 | 0.6037 | 0.6096 | 0.6066 | 0.6094 |
|
| 72 |
+
| 1.6316 | 10.0 | 140140 | 3.9487 | 0.6135 | 0.6148 | 0.6141 | 0.6147 |
|
| 73 |
+
| 1.6296 | 11.0 | 154154 | 3.9428 | 0.6160 | 0.6231 | 0.6195 | 0.6231 |
|
| 74 |
+
| 1.5991 | 12.0 | 168168 | 4.0174 | 0.6137 | 0.6161 | 0.6149 | 0.6160 |
|
| 75 |
+
| 1.5809 | 13.0 | 182182 | 4.0325 | 0.6087 | 0.6166 | 0.6126 | 0.6165 |
|
| 76 |
+
| 1.5724 | 14.0 | 196196 | 4.0345 | 0.6157 | 0.6236 | 0.6196 | 0.6235 |
|
| 77 |
+
| 1.5707 | 15.0 | 210210 | 4.0787 | 0.6142 | 0.6236 | 0.6189 | 0.6235 |
|
| 78 |
+
| 1.5606 | 16.0 | 224224 | 4.0881 | 0.6146 | 0.6205 | 0.6175 | 0.6204 |
|
| 79 |
+
| 1.5534 | 17.0 | 238238 | 4.1319 | 0.6041 | 0.6139 | 0.6090 | 0.6137 |
|
| 80 |
+
| 1.5543 | 18.0 | 252252 | 4.1268 | 0.6133 | 0.6231 | 0.6182 | 0.6229 |
|
| 81 |
+
| 1.5438 | 19.0 | 266266 | 4.1633 | 0.6080 | 0.6174 | 0.6127 | 0.6172 |
|
| 82 |
+
| 1.5446 | 20.0 | 280280 | 4.1796 | 0.6080 | 0.6201 | 0.6140 | 0.6198 |
|
| 83 |
+
| 1.5378 | 21.0 | 294294 | 4.2057 | 0.6144 | 0.6236 | 0.6190 | 0.6233 |
|
| 84 |
+
| 1.5371 | 22.0 | 308308 | 4.2225 | 0.6119 | 0.6218 | 0.6168 | 0.6216 |
|
| 85 |
+
| 1.5343 | 23.0 | 322322 | 4.2246 | 0.6051 | 0.6179 | 0.6114 | 0.6176 |
|
| 86 |
+
| 1.5313 | 24.0 | 336336 | 4.2584 | 0.6086 | 0.6166 | 0.6126 | 0.6163 |
|
| 87 |
+
| 1.5306 | 25.0 | 350350 | 4.2558 | 0.6084 | 0.6183 | 0.6133 | 0.6181 |
|
| 88 |
+
| 1.5268 | 26.0 | 364364 | 4.2737 | 0.6134 | 0.6231 | 0.6182 | 0.6229 |
|
| 89 |
+
| 1.5271 | 27.0 | 378378 | 4.2826 | 0.6059 | 0.6174 | 0.6116 | 0.6172 |
|
| 90 |
+
| 1.5267 | 28.0 | 392392 | 4.2831 | 0.6041 | 0.6161 | 0.6100 | 0.6159 |
|
| 91 |
+
| 1.5250 | 29.0 | 406406 | 4.2994 | 0.6095 | 0.6192 | 0.6143 | 0.6189 |
|
| 92 |
+
| 1.5238 | 30.0 | 420420 | 4.3051 | 0.6129 | 0.6236 | 0.6182 | 0.6233 |
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
### Framework versions
|
| 96 |
+
|
| 97 |
+
- Transformers 5.2.0
|
| 98 |
+
- Pytorch 2.6.0+cu124
|
| 99 |
+
- Datasets 4.5.0
|
| 100 |
+
- Tokenizers 0.22.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
CHANGED
|
@@ -117738,7 +117738,7 @@
|
|
| 117738 |
"sparse_pred_ignore_index": -100,
|
| 117739 |
"sparse_prediction": false,
|
| 117740 |
"tie_word_embeddings": true,
|
| 117741 |
-
"transformers_version": "5.
|
| 117742 |
"use_cache": false,
|
| 117743 |
"vocab_size": 50370
|
| 117744 |
}
|
|
|
|
| 117738 |
"sparse_pred_ignore_index": -100,
|
| 117739 |
"sparse_prediction": false,
|
| 117740 |
"tie_word_embeddings": true,
|
| 117741 |
+
"transformers_version": "5.2.0",
|
| 117742 |
"use_cache": false,
|
| 117743 |
"vocab_size": 50370
|
| 117744 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 957996876
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f23f0a9070c06ea4016a745d0c112399fece10b493814edd9213c75d987e690f
|
| 3 |
size 957996876
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"clean_up_tokenization_spaces": true,
|
| 4 |
+
"cls_token": "[CLS]",
|
| 5 |
+
"extra_special_tokens": [
|
| 6 |
+
"[START]",
|
| 7 |
+
"[END]"
|
| 8 |
+
],
|
| 9 |
+
"is_local": false,
|
| 10 |
+
"mask_token": "[MASK]",
|
| 11 |
+
"model_input_names": [
|
| 12 |
+
"input_ids",
|
| 13 |
+
"attention_mask"
|
| 14 |
+
],
|
| 15 |
+
"model_max_length": 8192,
|
| 16 |
+
"pad_token": "[PAD]",
|
| 17 |
+
"sep_token": "[SEP]",
|
| 18 |
+
"tokenizer_class": "TokenizersBackend",
|
| 19 |
+
"unk_token": "[UNK]"
|
| 20 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaaef26dc3ff2a41322089fbda6952b609589eb9324e926c820581bc232909b1
|
| 3 |
+
size 4856
|