dcarpintero commited on
Commit
e6042ce
·
verified ·
1 Parent(s): 79f1ad2

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-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - f1
9
+ - accuracy
10
+ model-index:
11
+ - name: pangolin-guard-base
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-guard-base
19
+
20
+ This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.0216
23
+ - F1: 0.9909
24
+ - Accuracy: 0.9940
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.1786 | 0.1042 | 100 | 0.0687 | 0.9646 | 0.9765 |
56
+ | 0.0807 | 0.2083 | 200 | 0.0540 | 0.9709 | 0.9808 |
57
+ | 0.0479 | 0.3125 | 300 | 0.0486 | 0.9733 | 0.9824 |
58
+ | 0.043 | 0.4167 | 400 | 0.0495 | 0.9751 | 0.9833 |
59
+ | 0.0414 | 0.5208 | 500 | 0.0364 | 0.9824 | 0.9884 |
60
+ | 0.0369 | 0.625 | 600 | 0.0396 | 0.9791 | 0.9861 |
61
+ | 0.0341 | 0.7292 | 700 | 0.0292 | 0.9854 | 0.9904 |
62
+ | 0.0334 | 0.8333 | 800 | 0.0276 | 0.9860 | 0.9908 |
63
+ | 0.0278 | 0.9375 | 900 | 0.0272 | 0.9872 | 0.9916 |
64
+ | 0.0203 | 1.0417 | 1000 | 0.0277 | 0.9884 | 0.9924 |
65
+ | 0.012 | 1.1458 | 1100 | 0.0280 | 0.9897 | 0.9932 |
66
+ | 0.0118 | 1.25 | 1200 | 0.0268 | 0.9889 | 0.9926 |
67
+ | 0.0075 | 1.3542 | 1300 | 0.0270 | 0.9904 | 0.9937 |
68
+ | 0.0112 | 1.4583 | 1400 | 0.0300 | 0.9877 | 0.9918 |
69
+ | 0.0126 | 1.5625 | 1500 | 0.0233 | 0.9886 | 0.9924 |
70
+ | 0.0108 | 1.6667 | 1600 | 0.0214 | 0.9910 | 0.9941 |
71
+ | 0.0101 | 1.7708 | 1700 | 0.0222 | 0.9911 | 0.9941 |
72
+ | 0.0058 | 1.875 | 1800 | 0.0230 | 0.9911 | 0.9941 |
73
+ | 0.0095 | 1.9792 | 1900 | 0.0216 | 0.9909 | 0.9940 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.48.3
79
+ - Pytorch 2.6.0+cu124
80
+ - Datasets 3.4.0
81
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "answerdotai/ModernBERT-base",
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": 768,
23
+ "id2label": {
24
+ "0": "safe",
25
+ "1": "unsafe"
26
+ },
27
+ "initializer_cutoff_factor": 2.0,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 1152,
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": 12,
44
+ "num_hidden_layers": 22,
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:6018f40a93f72a2f93c73dbb987e6ed9995eae52f4b6d76d7d5885a293e545cb
3
+ size 598439784
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1b815b19eec8d4d382b6ffaf2f2a5366fc1f24b46d943961bbafdf336f5fddb
3
+ size 5368