J1N2 commited on
Commit
a22b6f2
1 Parent(s): 66d9d76

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

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-17
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-17
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.7014
22
+ - F1: 0.0
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.452 | 0.2527 | 100 | 0.2348 | 0.9039 |
58
+ | 0.2009 | 0.5054 | 200 | 0.1794 | 0.9343 |
59
+ | 0.1595 | 0.7581 | 300 | 0.1470 | 0.9452 |
60
+ | 0.1523 | 1.0107 | 400 | 0.1182 | 0.9566 |
61
+ | 0.1072 | 1.2634 | 500 | 0.1256 | 0.9545 |
62
+ | 0.1113 | 1.5161 | 600 | 0.1319 | 0.9531 |
63
+ | 0.1168 | 1.7688 | 700 | 0.1450 | 0.9438 |
64
+ | 0.1129 | 2.0215 | 800 | 0.1331 | 0.9564 |
65
+ | 0.2379 | 2.2742 | 900 | 0.6936 | 0.7087 |
66
+ | 0.7027 | 2.5268 | 1000 | 0.6899 | 0.7087 |
67
+ | 0.6948 | 2.7795 | 1100 | 0.6918 | 0.7087 |
68
+ | 0.675 | 3.0322 | 1200 | 0.7413 | 0.0 |
69
+ | 0.6709 | 3.2849 | 1300 | 0.6972 | 0.0 |
70
+ | 0.6698 | 3.5376 | 1400 | 0.7014 | 0.0 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.45.2
76
+ - Pytorch 2.5.1+cu124
77
+ - Datasets 3.1.0
78
+ - 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:c335dc94d0fe500858043566882b709fe5081976b9f3567e74a55dd8b3865805
3
+ size 1740793696
runs/Dec06_01-53-32_d1c787833046/events.out.tfevents.1733450015.d1c787833046.531441.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:392b476e5729420b7ac78362863f0265aa98da06bbf315a76ba9d578c47c6bf2
3
+ size 13696
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c8ab1a9402521c07e75b8a1c526d5b3c790a320dde856dca8c087b38061baad
3
+ size 5304