SparshSyde commited on
Commit
967961f
·
verified ·
1 Parent(s): 5ff63af

End of training

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: markussagen/xlm-roberta-longformer-base-4096
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: detectors_god2
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # detectors_god2
15
+
16
+ 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.
17
+ It achieves the following results on the evaluation set:
18
+ - eval_loss: 0.7154
19
+ - eval_accuracy: 0.9620
20
+ - eval_precision_safe: 0.9748
21
+ - eval_recall_safe: 0.9547
22
+ - eval_precision_jailbroken: 0.9474
23
+ - eval_recall_jailbroken: 0.9706
24
+ - eval_confusion_matrix: [[232 11]
25
+ [ 6 198]]
26
+ - eval_runtime: 8.6182
27
+ - eval_samples_per_second: 51.867
28
+ - eval_steps_per_second: 3.249
29
+ - epoch: 0.99
30
+ - step: 63
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: 1e-05
50
+ - train_batch_size: 16
51
+ - eval_batch_size: 16
52
+ - seed: 42
53
+ - gradient_accumulation_steps: 2
54
+ - total_train_batch_size: 32
55
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
56
+ - lr_scheduler_type: linear
57
+ - num_epochs: 10
58
+ - mixed_precision_training: Native AMP
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.37.0
63
+ - Pytorch 2.1.2
64
+ - Datasets 2.1.0
65
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "markussagen/xlm-roberta-longformer-base-4096",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "attention_window": [
8
+ 512,
9
+ 512,
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512
20
+ ],
21
+ "bos_token_id": 0,
22
+ "classifier_dropout": null,
23
+ "eos_token_id": 2,
24
+ "gradient_checkpointing": false,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.1,
27
+ "hidden_size": 768,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
+ "layer_norm_eps": 1e-05,
31
+ "max_position_embeddings": 4098,
32
+ "model_type": "xlm-roberta",
33
+ "num_attention_heads": 12,
34
+ "num_hidden_layers": 12,
35
+ "output_past": true,
36
+ "pad_token_id": 1,
37
+ "position_embedding_type": "absolute",
38
+ "problem_type": "single_label_classification",
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.37.0",
41
+ "type_vocab_size": 1,
42
+ "use_cache": true,
43
+ "vocab_size": 250002
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6018096910914186786db1a71d9478fe2e406a29da4817f1bd135e36455c341a
3
+ size 1123215080
runs/Feb16_17-52-26_33d2816b9f1d/events.out.tfevents.1708105948.33d2816b9f1d.35.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d3cd290eac36cded2895962b6310d78ff98dd8e183847113e0c197b409a1983
3
+ size 8326
runs/Feb16_18-27-24_33d2816b9f1d/events.out.tfevents.1708108045.33d2816b9f1d.35.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a77c2e72132f0478306f9ce65e51e4089cf8a894f89d98bd5c5e6d3a73598d44
3
+ size 5883
runs/Feb16_18-47-01_33d2816b9f1d/events.out.tfevents.1708109227.33d2816b9f1d.35.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69a9963465b55b3301092172c7070ce22b2a710820c1a67fa5a06fabfc654290
3
+ size 4597
runs/Feb16_18-47-35_33d2816b9f1d/events.out.tfevents.1708109256.33d2816b9f1d.35.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2c16507f99b5a25567c78a3fbf6251f464409126ce640492ff2d79b9565c059
3
+ size 4646
runs/Feb16_18-47-56_33d2816b9f1d/events.out.tfevents.1708109276.33d2816b9f1d.35.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a72c9773321633c740bd7adbb5df1f038fdd3920aef475e52a5b32ff065b152f
3
+ size 4646
runs/Feb16_18-49-08_33d2816b9f1d/events.out.tfevents.1708109349.33d2816b9f1d.35.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e770a749b63f3d904f9dac9805c1dfdaf02e1bccedddfb0c78ca3adcc984d84
3
+ size 8375
runs/Feb16_18-49-08_33d2816b9f1d/events.out.tfevents.1708111189.33d2816b9f1d.35.6 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af23ae49810a465378d810874effb33bef32af4d129ed692b7c270fff2701ab2
3
+ size 6938
runs/Feb16_19-43-12_33d2816b9f1d/events.out.tfevents.1708112592.33d2816b9f1d.35.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e9035dda442216ec3f496b839271416d533f443d347933655057ee4cc7b0fb5
3
+ size 5951
runs/Feb16_19-43-12_33d2816b9f1d/events.out.tfevents.1708113285.33d2816b9f1d.35.8 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e17983fd47c85ac86a20182237ab9998ef4437303740a7ef4ff8ff6178d3195e
3
+ size 10790
runs/Feb16_19-43-12_33d2816b9f1d/events.out.tfevents.1708115178.33d2816b9f1d.35.9 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12e9977e021a01ffef805ca80ded18903960da0c5f7f559a9578f1d6d0679e4b
3
+ size 6913
runs/Feb16_19-43-12_33d2816b9f1d/events.out.tfevents.1708115978.33d2816b9f1d.35.10 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ccceba9ea0ed29d5a5618d8e84b02193f664236e8e814e27d207febc4a1ad9e
3
+ size 5240
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69564b696052886ed0ac63fa393e928384e0f8caada38c1f4864a9bfbf379c15
3
+ size 17098273
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "max_length": 1024,
50
+ "model_max_length": 4096,
51
+ "pad_token": "<pad>",
52
+ "padding": "max_length",
53
+ "sep_token": "</s>",
54
+ "sp_model_kwargs": {},
55
+ "tokenizer_class": "XLMRobertaTokenizer",
56
+ "truncation": true,
57
+ "unk_token": "<unk>"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fca3ed807c8175719a4b7556ff38a0d20c968d732a8de1f813c5674a48ed48f
3
+ size 4728