Model save
Browse files- README.md +87 -0
- classification_report_test.txt +14 -0
- confusion_matrix_test.csv +4 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: answerdotai/ModernBERT-base
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: modernBert-base_v2
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# modernBert-base_v2
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.7185
|
| 22 |
+
- Accuracy: 0.9116
|
| 23 |
+
- Precision Macro: 0.8041
|
| 24 |
+
- Recall Macro: 0.7362
|
| 25 |
+
- F1 Macro: 0.7592
|
| 26 |
+
- F1 Weighted: 0.9065
|
| 27 |
+
|
| 28 |
+
## Model description
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Intended uses & limitations
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training and evaluation data
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training procedure
|
| 41 |
+
|
| 42 |
+
### Training hyperparameters
|
| 43 |
+
|
| 44 |
+
The following hyperparameters were used during training:
|
| 45 |
+
- learning_rate: 3e-05
|
| 46 |
+
- train_batch_size: 64
|
| 47 |
+
- eval_batch_size: 64
|
| 48 |
+
- seed: 42
|
| 49 |
+
- gradient_accumulation_steps: 2
|
| 50 |
+
- total_train_batch_size: 128
|
| 51 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 52 |
+
- lr_scheduler_type: linear
|
| 53 |
+
- num_epochs: 20
|
| 54 |
+
- mixed_precision_training: Native AMP
|
| 55 |
+
|
| 56 |
+
### Training results
|
| 57 |
+
|
| 58 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision Macro | Recall Macro | F1 Macro | F1 Weighted |
|
| 59 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------------:|:------------:|:--------:|:-----------:|
|
| 60 |
+
| 1.2139 | 1.0 | 90 | 0.5024 | 0.8073 | 0.8182 | 0.5993 | 0.6061 | 0.7934 |
|
| 61 |
+
| 0.6774 | 2.0 | 180 | 0.2870 | 0.9033 | 0.8421 | 0.7140 | 0.7451 | 0.8960 |
|
| 62 |
+
| 0.4571 | 3.0 | 270 | 0.3474 | 0.8920 | 0.8074 | 0.6669 | 0.6824 | 0.8802 |
|
| 63 |
+
| 0.2925 | 4.0 | 360 | 0.3089 | 0.9065 | 0.8778 | 0.7074 | 0.7413 | 0.8977 |
|
| 64 |
+
| 0.1725 | 5.0 | 450 | 0.3611 | 0.8958 | 0.7729 | 0.7574 | 0.7646 | 0.8946 |
|
| 65 |
+
| 0.0977 | 6.0 | 540 | 0.4743 | 0.9090 | 0.8405 | 0.7388 | 0.7695 | 0.9036 |
|
| 66 |
+
| 0.0576 | 7.0 | 630 | 0.6044 | 0.8743 | 0.7234 | 0.8019 | 0.7413 | 0.8878 |
|
| 67 |
+
| 0.0338 | 8.0 | 720 | 0.6118 | 0.9040 | 0.7756 | 0.7506 | 0.7615 | 0.9019 |
|
| 68 |
+
| 0.016 | 9.0 | 810 | 0.6754 | 0.9071 | 0.8334 | 0.7379 | 0.7670 | 0.9019 |
|
| 69 |
+
| 0.0113 | 10.0 | 900 | 0.6732 | 0.9065 | 0.7898 | 0.7606 | 0.7733 | 0.9044 |
|
| 70 |
+
| 0.0065 | 11.0 | 990 | 0.7871 | 0.9046 | 0.8046 | 0.7277 | 0.7519 | 0.8992 |
|
| 71 |
+
| 0.0037 | 12.0 | 1080 | 0.7134 | 0.9109 | 0.7989 | 0.7147 | 0.7386 | 0.9038 |
|
| 72 |
+
| 0.0022 | 13.0 | 1170 | 0.7784 | 0.9015 | 0.7765 | 0.7383 | 0.7529 | 0.8982 |
|
| 73 |
+
| 0.0013 | 14.0 | 1260 | 0.7176 | 0.9109 | 0.7832 | 0.7486 | 0.7625 | 0.9079 |
|
| 74 |
+
| 0.0011 | 15.0 | 1350 | 0.7681 | 0.9059 | 0.7920 | 0.7371 | 0.7565 | 0.9017 |
|
| 75 |
+
| 0.0001 | 16.0 | 1440 | 0.7170 | 0.9071 | 0.7833 | 0.7282 | 0.7479 | 0.9024 |
|
| 76 |
+
| 0.0007 | 17.0 | 1530 | 0.7219 | 0.9109 | 0.8022 | 0.7442 | 0.7652 | 0.9068 |
|
| 77 |
+
| 0.0003 | 18.0 | 1620 | 0.7379 | 0.9103 | 0.7950 | 0.7398 | 0.7596 | 0.9060 |
|
| 78 |
+
| 0.0006 | 19.0 | 1710 | 0.7198 | 0.9116 | 0.8074 | 0.7404 | 0.7635 | 0.9068 |
|
| 79 |
+
| 0.0004 | 20.0 | 1800 | 0.7185 | 0.9116 | 0.8041 | 0.7362 | 0.7592 | 0.9065 |
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### Framework versions
|
| 83 |
+
|
| 84 |
+
- Transformers 4.55.0
|
| 85 |
+
- Pytorch 2.7.0+cu126
|
| 86 |
+
- Datasets 4.0.0
|
| 87 |
+
- Tokenizers 0.21.4
|
classification_report_test.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
precision recall f1-score support
|
| 2 |
+
|
| 3 |
+
negative 0.91 0.89 0.90 1409
|
| 4 |
+
neutral 0.43 0.30 0.35 167
|
| 5 |
+
positive 0.89 0.93 0.91 1590
|
| 6 |
+
|
| 7 |
+
accuracy 0.88 3166
|
| 8 |
+
macro avg 0.74 0.71 0.72 3166
|
| 9 |
+
weighted avg 0.87 0.88 0.88 3166
|
| 10 |
+
|
| 11 |
+
Confusion matrix:
|
| 12 |
+
[[1259 36 114]
|
| 13 |
+
[ 45 50 72]
|
| 14 |
+
[ 84 29 1477]]
|
confusion_matrix_test.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,negative,neutral,positive
|
| 2 |
+
negative,1259,36,114
|
| 3 |
+
neutral,45,50,72
|
| 4 |
+
positive,84,29,1477
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 598442860
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9aed9685b70c59db379410c46a6515e873127d742ffb8cb1cbea7d75f71e53a0
|
| 3 |
size 598442860
|