J1N2 commited on
Commit
53f12ca
·
verified ·
1 Parent(s): 6266a33

J1N2/gte-large-en-v1.5-based-ft-prompt-injection-detection-241205Weighted-77

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: Alibaba-NLP/gte-large-en-v1.5
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - f1
9
+ model-index:
10
+ - name: gte-large-en-v1.5-based-ft-prompt-injection-detection-241205Weighted-77
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # gte-large-en-v1.5-based-ft-prompt-injection-detection-241205Weighted-77
18
+
19
+ This model is a fine-tuned version of [Alibaba-NLP/gte-large-en-v1.5](https://huggingface.co/Alibaba-NLP/gte-large-en-v1.5) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.1865
22
+ - F1: 0.9553
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 0.0001
42
+ - train_batch_size: 32
43
+ - eval_batch_size: 32
44
+ - seed: 42
45
+ - gradient_accumulation_steps: 8
46
+ - total_train_batch_size: 256
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: linear
49
+ - lr_scheduler_warmup_steps: 1000
50
+ - num_epochs: 50
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
56
+ |:-------------:|:------:|:----:|:---------------:|:------:|
57
+ | 0.4603 | 0.2527 | 100 | 0.2376 | 0.9013 |
58
+ | 0.2019 | 0.5054 | 200 | 0.1611 | 0.9381 |
59
+ | 0.1572 | 0.7581 | 300 | 0.1362 | 0.9484 |
60
+ | 0.1526 | 1.0107 | 400 | 0.1196 | 0.9547 |
61
+ | 0.1094 | 1.2634 | 500 | 0.1384 | 0.9535 |
62
+ | 0.1133 | 1.5161 | 600 | 0.1448 | 0.9506 |
63
+ | 0.1144 | 1.7688 | 700 | 0.1269 | 0.9562 |
64
+ | 0.1151 | 2.0215 | 800 | 0.1227 | 0.9566 |
65
+ | 0.0791 | 2.2742 | 900 | 0.1458 | 0.9529 |
66
+ | 0.0973 | 2.5268 | 1000 | 0.1396 | 0.9553 |
67
+ | 0.0931 | 2.7795 | 1100 | 0.1455 | 0.9567 |
68
+ | 0.0928 | 3.0322 | 1200 | 0.1501 | 0.9534 |
69
+ | 0.063 | 3.2849 | 1300 | 0.1676 | 0.9445 |
70
+ | 0.0665 | 3.5376 | 1400 | 0.1598 | 0.9465 |
71
+ | 0.0683 | 3.7903 | 1500 | 0.1505 | 0.9557 |
72
+ | 0.0701 | 4.0430 | 1600 | 0.1657 | 0.9566 |
73
+ | 0.0569 | 4.2956 | 1700 | 0.2030 | 0.9433 |
74
+ | 0.052 | 4.5483 | 1800 | 0.1747 | 0.9503 |
75
+ | 0.0558 | 4.8010 | 1900 | 0.1994 | 0.9491 |
76
+ | 0.0555 | 5.0537 | 2000 | 0.1951 | 0.9303 |
77
+ | 0.0682 | 5.3064 | 2100 | 0.1865 | 0.9553 |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.45.2
83
+ - Pytorch 2.5.1+cu124
84
+ - Datasets 3.1.0
85
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Alibaba-NLP/gte-large-en-v1.5",
3
+ "architectures": [
4
+ "NewForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "Alibaba-NLP/new-impl--configuration.NewConfig",
9
+ "AutoModel": "Alibaba-NLP/new-impl--modeling.NewModel",
10
+ "AutoModelForMaskedLM": "Alibaba-NLP/new-impl--modeling.NewForMaskedLM",
11
+ "AutoModelForMultipleChoice": "Alibaba-NLP/new-impl--modeling.NewForMultipleChoice",
12
+ "AutoModelForQuestionAnswering": "Alibaba-NLP/new-impl--modeling.NewForQuestionAnswering",
13
+ "AutoModelForSequenceClassification": "Alibaba-NLP/new-impl--modeling.NewForSequenceClassification",
14
+ "AutoModelForTokenClassification": "Alibaba-NLP/new-impl--modeling.NewForTokenClassification"
15
+ },
16
+ "classifier_dropout": null,
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.1,
19
+ "hidden_size": 1024,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 4096,
22
+ "layer_norm_eps": 1e-12,
23
+ "layer_norm_type": "layer_norm",
24
+ "logn_attention_clip1": false,
25
+ "logn_attention_scale": false,
26
+ "max_position_embeddings": 8192,
27
+ "model_type": "new",
28
+ "num_attention_heads": 16,
29
+ "num_hidden_layers": 24,
30
+ "pack_qkv": true,
31
+ "pad_token_id": 0,
32
+ "position_embedding_type": "rope",
33
+ "problem_type": "single_label_classification",
34
+ "rope_scaling": {
35
+ "factor": 2.0,
36
+ "type": "ntk"
37
+ },
38
+ "rope_theta": 160000,
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.45.2",
41
+ "type_vocab_size": 2,
42
+ "unpad_inputs": false,
43
+ "use_memory_efficient_attention": false,
44
+ "vocab_size": 30528
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19a7d157f02a10d75cecbcc24d1aa1ee4f041b7318b8f9ccda8fa8424ac30fb8
3
+ size 1740793696
runs/Dec07_11-23-45_d1c787833046/events.out.tfevents.1733570626.d1c787833046.539759.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:010346860141d5ae2d69b239a4e12b33fe9f9d60103c962266f82f2b9ef13e4b
3
+ size 17392
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a653f16f519e40c7578f6b30b433429136ca9a85e5a072fb552fd0930fb2de15
3
+ size 5304