
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# detectors_god2

This model is a fine-tuned version of [markussagen/xlm-roberta-longformer-base-4096](https://huggingface.co/markussagen/xlm-roberta-longformer-base-4096) on the None dataset.
It achieves the following results on the evaluation set:
- Loss: 0.4486
- Accuracy: 0.9172
- Precision Safe: 0.9952
- Recall Safe: 0.8519
- Precision Jailbroken: 0.8494
- Recall Jailbroken: 0.9951

## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 10
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision Safe | Recall Safe | Precision Jailbroken | Recall Jailbroken |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------------:|:-----------:|:--------------------:|:-----------------:|
| No log        | 1.0   | 69   | 0.3322          | 0.8210   | 0.9939         | 0.6749      | 0.7199               | 0.9951            |
| No log        | 2.0   | 138  | 0.2220          | 0.9172   | 0.9858         | 0.8601      | 0.8553               | 0.9853            |
| No log        | 3.0   | 207  | 0.2913          | 0.9083   | 0.9951         | 0.8354      | 0.8354               | 0.9951            |
| No log        | 4.0   | 276  | 0.3355          | 0.9083   | 0.9951         | 0.8354      | 0.8354               | 0.9951            |
| No log        | 5.0   | 345  | 0.4129          | 0.9060   | 0.9951         | 0.8313      | 0.8320               | 0.9951            |
| No log        | 6.0   | 414  | 0.4042          | 0.9128   | 0.9951         | 0.8436      | 0.8423               | 0.9951            |
| No log        | 7.0   | 483  | 0.4053          | 0.9195   | 0.9952         | 0.8560      | 0.8529               | 0.9951            |
| 0.1096        | 8.0   | 552  | 0.4236          | 0.9195   | 0.9952         | 0.8560      | 0.8529               | 0.9951            |
| 0.1096        | 9.0   | 621  | 0.4410          | 0.9172   | 0.9952         | 0.8519      | 0.8494               | 0.9951            |
| 0.1096        | 10.0  | 690  | 0.4486          | 0.9172   | 0.9952         | 0.8519      | 0.8494               | 0.9951            |


### Framework versions

- Transformers 4.37.0
- Pytorch 2.1.2
- Datasets 2.1.0
- Tokenizers 0.15.1

{"license": "apache-2.0", "tags": ["generated_from_trainer"], "metrics": ["accuracy"], "base_model": "markussagen/xlm-roberta-longformer-base-4096", "model-index": [{"name": "detectors_god2", "results": []}]}
transformers tensorboard safetensors xlm-roberta text-classification generated_from_trainer base_model:markussagen/xlm-roberta-longformer-base-4096 license:apache-2.0 autotrain_compatible endpoints_compatible region:us