J1N2 commited on
Commit
fe77b46
·
verified ·
1 Parent(s): c98d913

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

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-44
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-44
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.2193
22
+ - F1: 0.9463
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.2243 | 0.9083 |
58
+ | 0.2014 | 0.5054 | 200 | 0.1719 | 0.9377 |
59
+ | 0.1679 | 0.7581 | 300 | 0.1354 | 0.9486 |
60
+ | 0.1497 | 1.0107 | 400 | 0.1174 | 0.9543 |
61
+ | 0.1062 | 1.2634 | 500 | 0.1451 | 0.9490 |
62
+ | 0.1117 | 1.5161 | 600 | 0.1379 | 0.9504 |
63
+ | 0.1156 | 1.7688 | 700 | 0.1235 | 0.9533 |
64
+ | 0.1155 | 2.0215 | 800 | 0.1305 | 0.9562 |
65
+ | 0.0784 | 2.2742 | 900 | 0.1372 | 0.9530 |
66
+ | 0.0898 | 2.5268 | 1000 | 0.1204 | 0.9585 |
67
+ | 0.0904 | 2.7795 | 1100 | 0.1864 | 0.9294 |
68
+ | 0.0936 | 3.0322 | 1200 | 0.1731 | 0.9543 |
69
+ | 0.0644 | 3.2849 | 1300 | 0.1482 | 0.95 |
70
+ | 0.0668 | 3.5376 | 1400 | 0.1713 | 0.9455 |
71
+ | 0.0648 | 3.7903 | 1500 | 0.1499 | 0.9551 |
72
+ | 0.0605 | 4.0430 | 1600 | 0.2150 | 0.9506 |
73
+ | 0.0468 | 4.2956 | 1700 | 0.1913 | 0.9453 |
74
+ | 0.0531 | 4.5483 | 1800 | 0.2022 | 0.9421 |
75
+ | 0.0564 | 4.8010 | 1900 | 0.1694 | 0.9544 |
76
+ | 0.0568 | 5.0537 | 2000 | 0.2193 | 0.9463 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.45.2
82
+ - Pytorch 2.5.1+cu124
83
+ - Datasets 3.1.0
84
+ - 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:8cd7094e1b9222b2b2ea048f3f3d2831c18e698edb1c363f5a75c5c3fe88bc52
3
+ size 1740793696
runs/Dec06_06-42-58_d1c787833046/events.out.tfevents.1733467381.d1c787833046.533534.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20516c17ae745946ca1189530107b153cda613d45b17808cc348cf4920d3d018
3
+ size 16864
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3504542a982a26ebf15ee9f79867c056600762ceaf1bcf1578028f189178c96
3
+ size 5304