dcarpintero commited on
Commit
6f53a46
·
verified ·
1 Parent(s): b12eb46

End of training

Browse files
Files changed (4) hide show
  1. README.md +81 -0
  2. config.json +56 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - f1
9
+ - accuracy
10
+ model-index:
11
+ - name: pangolin-large
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # pangolin-large
19
+
20
+ This model is a fine-tuned version of [answerdotai/ModernBERT-large](https://huggingface.co/answerdotai/ModernBERT-large) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.0225
23
+ - F1: 0.9904
24
+ - Accuracy: 0.9937
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 5e-05
44
+ - train_batch_size: 64
45
+ - eval_batch_size: 32
46
+ - seed: 42
47
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: linear
49
+ - num_epochs: 2
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Accuracy |
54
+ |:-------------:|:------:|:----:|:---------------:|:------:|:--------:|
55
+ | 0.1519 | 0.1042 | 100 | 0.1354 | 0.9229 | 0.9534 |
56
+ | 0.068 | 0.2083 | 200 | 0.0553 | 0.9689 | 0.9797 |
57
+ | 0.0458 | 0.3125 | 300 | 0.0555 | 0.9758 | 0.9844 |
58
+ | 0.0389 | 0.4167 | 400 | 0.0442 | 0.9804 | 0.9874 |
59
+ | 0.04 | 0.5208 | 500 | 0.0323 | 0.9842 | 0.9897 |
60
+ | 0.0308 | 0.625 | 600 | 0.0357 | 0.9836 | 0.9894 |
61
+ | 0.0357 | 0.7292 | 700 | 0.0336 | 0.9861 | 0.9909 |
62
+ | 0.0306 | 0.8333 | 800 | 0.0299 | 0.9880 | 0.9921 |
63
+ | 0.0246 | 0.9375 | 900 | 0.0338 | 0.9846 | 0.9900 |
64
+ | 0.0195 | 1.0417 | 1000 | 0.0260 | 0.9881 | 0.9922 |
65
+ | 0.0124 | 1.1458 | 1100 | 0.0225 | 0.9887 | 0.9926 |
66
+ | 0.005 | 1.25 | 1200 | 0.0286 | 0.9874 | 0.9917 |
67
+ | 0.0075 | 1.3542 | 1300 | 0.0313 | 0.9897 | 0.9933 |
68
+ | 0.0065 | 1.4583 | 1400 | 0.0318 | 0.9892 | 0.9930 |
69
+ | 0.0093 | 1.5625 | 1500 | 0.0257 | 0.9903 | 0.9937 |
70
+ | 0.0099 | 1.6667 | 1600 | 0.0233 | 0.9889 | 0.9927 |
71
+ | 0.0054 | 1.7708 | 1700 | 0.0221 | 0.9905 | 0.9938 |
72
+ | 0.0077 | 1.875 | 1800 | 0.0222 | 0.9907 | 0.9939 |
73
+ | 0.0052 | 1.9792 | 1900 | 0.0225 | 0.9904 | 0.9937 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.48.3
79
+ - Pytorch 2.5.1+cu124
80
+ - Datasets 3.3.2
81
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "answerdotai/ModernBERT-large",
3
+ "architectures": [
4
+ "ModernBertForSequenceClassification"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 50281,
9
+ "classifier_activation": "gelu",
10
+ "classifier_bias": false,
11
+ "classifier_dropout": 0.0,
12
+ "classifier_pooling": "mean",
13
+ "cls_token_id": 50281,
14
+ "decoder_bias": true,
15
+ "deterministic_flash_attn": false,
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 50282,
18
+ "global_attn_every_n_layers": 3,
19
+ "global_rope_theta": 160000.0,
20
+ "gradient_checkpointing": false,
21
+ "hidden_activation": "gelu",
22
+ "hidden_size": 1024,
23
+ "id2label": {
24
+ "0": "safe",
25
+ "1": "unsafe"
26
+ },
27
+ "initializer_cutoff_factor": 2.0,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 2624,
30
+ "label2id": {
31
+ "safe": "0",
32
+ "unsafe": "1"
33
+ },
34
+ "layer_norm_eps": 1e-05,
35
+ "local_attention": 128,
36
+ "local_rope_theta": 10000.0,
37
+ "max_position_embeddings": 8192,
38
+ "mlp_bias": false,
39
+ "mlp_dropout": 0.0,
40
+ "model_type": "modernbert",
41
+ "norm_bias": false,
42
+ "norm_eps": 1e-05,
43
+ "num_attention_heads": 16,
44
+ "num_hidden_layers": 28,
45
+ "pad_token_id": 50283,
46
+ "position_embedding_type": "absolute",
47
+ "problem_type": "single_label_classification",
48
+ "reference_compile": true,
49
+ "repad_logits_with_grad": false,
50
+ "sep_token_id": 50282,
51
+ "sparse_pred_ignore_index": -100,
52
+ "sparse_prediction": false,
53
+ "torch_dtype": "float32",
54
+ "transformers_version": "4.48.3",
55
+ "vocab_size": 50368
56
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a419ea980f9dc4350715e02f5c8c8f3df0fd2d4aa91020bb53606c77db1edb9f
3
+ size 1583351632
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac32a7df877d47dcba3147a863c03b4dada3a5034c3588193c1f61d98a8bbdff
3
+ size 5368