J1N2/gte-large-en-v1.5-based-ft-prompt-injection-detection-241205Weighted-41
Browse files- README.md +84 -0
- config.json +45 -0
- model.safetensors +3 -0
- runs/Dec06_03-53-16_d1c787833046/events.out.tfevents.1733457198.d1c787833046.532692.0 +3 -0
- training_args.bin +3 -0
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-41
|
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-41
|
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.1900
|
22 |
+
- F1: 0.9527
|
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.4552 | 0.2527 | 100 | 0.2210 | 0.9100 |
|
58 |
+
| 0.1965 | 0.5054 | 200 | 0.1912 | 0.9298 |
|
59 |
+
| 0.1597 | 0.7581 | 300 | 0.1320 | 0.9520 |
|
60 |
+
| 0.1509 | 1.0107 | 400 | 0.1212 | 0.9574 |
|
61 |
+
| 0.1062 | 1.2634 | 500 | 0.1348 | 0.9500 |
|
62 |
+
| 0.1109 | 1.5161 | 600 | 0.1812 | 0.9462 |
|
63 |
+
| 0.1172 | 1.7688 | 700 | 0.1335 | 0.9530 |
|
64 |
+
| 0.1127 | 2.0215 | 800 | 0.1414 | 0.9564 |
|
65 |
+
| 0.0754 | 2.2742 | 900 | 0.1359 | 0.9553 |
|
66 |
+
| 0.0837 | 2.5268 | 1000 | 0.1182 | 0.9603 |
|
67 |
+
| 0.093 | 2.7795 | 1100 | 0.1459 | 0.9511 |
|
68 |
+
| 0.0926 | 3.0322 | 1200 | 0.1386 | 0.9564 |
|
69 |
+
| 0.0669 | 3.2849 | 1300 | 0.1504 | 0.9584 |
|
70 |
+
| 0.0683 | 3.5376 | 1400 | 0.1682 | 0.9487 |
|
71 |
+
| 0.07 | 3.7903 | 1500 | 0.1494 | 0.9498 |
|
72 |
+
| 0.0663 | 4.0430 | 1600 | 0.1934 | 0.9497 |
|
73 |
+
| 0.0471 | 4.2956 | 1700 | 0.2087 | 0.9500 |
|
74 |
+
| 0.0546 | 4.5483 | 1800 | 0.1867 | 0.9477 |
|
75 |
+
| 0.1081 | 4.8010 | 1900 | 0.1720 | 0.9579 |
|
76 |
+
| 0.0505 | 5.0537 | 2000 | 0.1900 | 0.9527 |
|
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:625de90711fb086c6d4cccfad6e05118d0f084d94cad88466e04a05289e10909
|
3 |
+
size 1740793696
|
runs/Dec06_03-53-16_d1c787833046/events.out.tfevents.1733457198.d1c787833046.532692.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf44cf67436e0fc79a9379b515dfb0f5a7a064bc152f1c706452fca50c43cc79
|
3 |
+
size 16864
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7adbbb5242b64e573b46bfc1d59b0f61b40740a76242cb67e2df391eaf261ee4
|
3 |
+
size 5304
|