End of training
Browse files
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: answerdotai/ModernBERT-large
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
model-index:
|
13 |
+
- name: answerdotai-ModernBERT-large-english-fp16-allagree
|
14 |
+
results: []
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
# answerdotai-ModernBERT-large-english-fp16-allagree
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [answerdotai/ModernBERT-large](https://huggingface.co/answerdotai/ModernBERT-large) on an unknown dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.1687
|
25 |
+
- Accuracy: 0.9692
|
26 |
+
- Precision: 0.9692
|
27 |
+
- Recall: 0.9692
|
28 |
+
- F1: 0.9692
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 2e-05
|
48 |
+
- train_batch_size: 64
|
49 |
+
- eval_batch_size: 64
|
50 |
+
- seed: 42
|
51 |
+
- gradient_accumulation_steps: 2
|
52 |
+
- total_train_batch_size: 128
|
53 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
54 |
+
- lr_scheduler_type: linear
|
55 |
+
- lr_scheduler_warmup_ratio: 0.3
|
56 |
+
- num_epochs: 10
|
57 |
+
- mixed_precision_training: Native AMP
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
62 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
63 |
+
| 1.1324 | 3.3448 | 50 | 0.2563 | 0.9383 | 0.9408 | 0.9383 | 0.9388 |
|
64 |
+
| 0.0519 | 6.6897 | 100 | 0.1687 | 0.9692 | 0.9692 | 0.9692 | 0.9692 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.50.3
|
70 |
+
- Pytorch 2.6.0+cu124
|
71 |
+
- Datasets 3.5.0
|
72 |
+
- Tokenizers 0.21.1
|
config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"ModernBertForSequenceClassification"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 50281,
|
8 |
+
"classifier_activation": "gelu",
|
9 |
+
"classifier_bias": false,
|
10 |
+
"classifier_dropout": 0.0,
|
11 |
+
"classifier_pooling": "mean",
|
12 |
+
"cls_token_id": 50281,
|
13 |
+
"decoder_bias": true,
|
14 |
+
"deterministic_flash_attn": false,
|
15 |
+
"embedding_dropout": 0.0,
|
16 |
+
"eos_token_id": 50282,
|
17 |
+
"global_attn_every_n_layers": 3,
|
18 |
+
"global_rope_theta": 160000.0,
|
19 |
+
"gradient_checkpointing": false,
|
20 |
+
"hidden_activation": "gelu",
|
21 |
+
"hidden_size": 1024,
|
22 |
+
"id2label": {
|
23 |
+
"0": "negative",
|
24 |
+
"1": "positive",
|
25 |
+
"2": "neutral"
|
26 |
+
},
|
27 |
+
"initializer_cutoff_factor": 2.0,
|
28 |
+
"initializer_range": 0.02,
|
29 |
+
"intermediate_size": 2624,
|
30 |
+
"label2id": {
|
31 |
+
"negative": 0,
|
32 |
+
"neutral": 2,
|
33 |
+
"positive": 1
|
34 |
+
},
|
35 |
+
"layer_norm_eps": 1e-05,
|
36 |
+
"local_attention": 128,
|
37 |
+
"local_rope_theta": 10000.0,
|
38 |
+
"max_position_embeddings": 8192,
|
39 |
+
"mlp_bias": false,
|
40 |
+
"mlp_dropout": 0.0,
|
41 |
+
"model_type": "modernbert",
|
42 |
+
"norm_bias": false,
|
43 |
+
"norm_eps": 1e-05,
|
44 |
+
"num_attention_heads": 16,
|
45 |
+
"num_hidden_layers": 28,
|
46 |
+
"pad_token_id": 50283,
|
47 |
+
"position_embedding_type": "absolute",
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"reference_compile": true,
|
50 |
+
"repad_logits_with_grad": false,
|
51 |
+
"sep_token_id": 50282,
|
52 |
+
"sparse_pred_ignore_index": -100,
|
53 |
+
"sparse_prediction": false,
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.50.3",
|
56 |
+
"vocab_size": 50368
|
57 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4167e693b2ee75dd4240a8e8d40f3bed47817a2e82d89060d09725ca43359c5a
|
3 |
+
size 1583355740
|
runs/Apr13_14-14-16_8b16d9cf8075/events.out.tfevents.1744553673.8b16d9cf8075.805.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0471c085ffd9d087d48e31ae6f4c484be264547641cabc2c42a156fa74849938
|
3 |
+
size 7676
|
runs/Apr13_14-14-16_8b16d9cf8075/events.out.tfevents.1744553964.8b16d9cf8075.805.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88a98f01f1f1d38d985c1c1fa30075483b33ff153ccb33ffa5aabef521a8b0b8
|
3 |
+
size 560
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1b90cec230d207fa95e387f0b340dee1d5acea7de0b03dae5a828e269f5e81c8
|
3 |
+
size 5496
|