End of training
Browse files- README.md +78 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: bert-base-uncased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
- precision
|
| 10 |
+
- recall
|
| 11 |
+
- f1
|
| 12 |
+
model-index:
|
| 13 |
+
- name: bert-base-detect-jailbreak
|
| 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 |
+
# bert-base-detect-jailbreak
|
| 21 |
+
|
| 22 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
| 23 |
+
It achieves the following results on the evaluation set:
|
| 24 |
+
- Loss: 0.1676
|
| 25 |
+
- Accuracy: 0.9463
|
| 26 |
+
- Precision: 0.7756
|
| 27 |
+
- Recall: 0.7089
|
| 28 |
+
- F1: 0.7407
|
| 29 |
+
- Balanced Accuracy: 0.8420
|
| 30 |
+
- Mcc: 0.7118
|
| 31 |
+
|
| 32 |
+
## Model description
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Intended uses & limitations
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training and evaluation data
|
| 41 |
+
|
| 42 |
+
More information needed
|
| 43 |
+
|
| 44 |
+
## Training procedure
|
| 45 |
+
|
| 46 |
+
### Training hyperparameters
|
| 47 |
+
|
| 48 |
+
The following hyperparameters were used during training:
|
| 49 |
+
- learning_rate: 2e-05
|
| 50 |
+
- train_batch_size: 16
|
| 51 |
+
- eval_batch_size: 32
|
| 52 |
+
- seed: 42
|
| 53 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 54 |
+
- lr_scheduler_type: linear
|
| 55 |
+
- num_epochs: 10
|
| 56 |
+
|
| 57 |
+
### Training results
|
| 58 |
+
|
| 59 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Balanced Accuracy | Mcc |
|
| 60 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:-----------------:|:------:|
|
| 61 |
+
| 0.16 | 1.0 | 685 | 0.1588 | 0.9504 | 0.7967 | 0.7305 | 0.7622 | 0.8539 | 0.7354 |
|
| 62 |
+
| 0.1094 | 2.0 | 1370 | 0.1731 | 0.9477 | 0.7711 | 0.7380 | 0.7542 | 0.8557 | 0.7252 |
|
| 63 |
+
| 0.1255 | 3.0 | 2055 | 0.1881 | 0.9502 | 0.8045 | 0.7154 | 0.7573 | 0.8471 | 0.7312 |
|
| 64 |
+
| 0.0686 | 4.0 | 2740 | 0.2148 | 0.9507 | 0.8056 | 0.7204 | 0.7606 | 0.8496 | 0.7347 |
|
| 65 |
+
| 0.048 | 5.0 | 3425 | 0.2793 | 0.9493 | 0.8136 | 0.6927 | 0.7483 | 0.8367 | 0.7232 |
|
| 66 |
+
| 0.0276 | 6.0 | 4110 | 0.3122 | 0.9477 | 0.7960 | 0.6977 | 0.7436 | 0.8380 | 0.7166 |
|
| 67 |
+
| 0.0194 | 7.0 | 4795 | 0.3583 | 0.9480 | 0.8224 | 0.6650 | 0.7354 | 0.8237 | 0.7118 |
|
| 68 |
+
| 0.0173 | 8.0 | 5480 | 0.3802 | 0.9461 | 0.7809 | 0.7003 | 0.7384 | 0.8381 | 0.7097 |
|
| 69 |
+
| 0.0121 | 9.0 | 6165 | 0.3939 | 0.9463 | 0.7880 | 0.6927 | 0.7373 | 0.8350 | 0.7093 |
|
| 70 |
+
| 0.0052 | 10.0 | 6850 | 0.3984 | 0.9472 | 0.7914 | 0.6977 | 0.7416 | 0.8377 | 0.7141 |
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
### Framework versions
|
| 74 |
+
|
| 75 |
+
- Transformers 4.57.2
|
| 76 |
+
- Pytorch 2.9.0+cu126
|
| 77 |
+
- Datasets 4.0.0
|
| 78 |
+
- Tokenizers 0.22.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437958648
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bd190bcc7bef85f5dfc9fd269d9ffe05172854ffca62876774e09b240a1e1c3
|
| 3 |
size 437958648
|