Training in progress, epoch 1
Browse files- README.md +66 -0
- config.json +52 -0
- model.safetensors +3 -0
- runs/Apr05_04-24-25_a498a9400766/events.out.tfevents.1712291065.a498a9400766.964.0 +3 -0
- runs/Apr05_04-50-09_a498a9400766/events.out.tfevents.1712292610.a498a9400766.964.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: allenai/scibert_scivocab_uncased
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: my_awesome_model
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# my_awesome_model
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [allenai/scibert_scivocab_uncased](https://huggingface.co/allenai/scibert_scivocab_uncased) on the None dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.3690
|
20 |
+
- Accuracy: 0.9119
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 2e-05
|
40 |
+
- train_batch_size: 16
|
41 |
+
- eval_batch_size: 16
|
42 |
+
- seed: 42
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- num_epochs: 8
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
51 |
+
| No log | 1.0 | 88 | 1.0040 | 0.7528 |
|
52 |
+
| No log | 2.0 | 176 | 0.4404 | 0.8892 |
|
53 |
+
| No log | 3.0 | 264 | 0.3365 | 0.8977 |
|
54 |
+
| No log | 4.0 | 352 | 0.2969 | 0.9205 |
|
55 |
+
| No log | 5.0 | 440 | 0.3452 | 0.9034 |
|
56 |
+
| 0.594 | 6.0 | 528 | 0.3440 | 0.9091 |
|
57 |
+
| 0.594 | 7.0 | 616 | 0.3584 | 0.9119 |
|
58 |
+
| 0.594 | 8.0 | 704 | 0.3690 | 0.9119 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.38.2
|
64 |
+
- Pytorch 2.2.1+cu121
|
65 |
+
- Datasets 2.18.0
|
66 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "allenai/scibert_scivocab_uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "csrf",
|
13 |
+
"1": "directory_traversal",
|
14 |
+
"2": "file_inclusion",
|
15 |
+
"3": "input_validation",
|
16 |
+
"4": "memory_corruption",
|
17 |
+
"5": "open_redirect",
|
18 |
+
"6": "overflow",
|
19 |
+
"7": "sql_injection",
|
20 |
+
"8": "ssrf",
|
21 |
+
"9": "xss",
|
22 |
+
"10": "xxe"
|
23 |
+
},
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"csrf": 0,
|
28 |
+
"directory_traversal": 1,
|
29 |
+
"file_inclusion": 2,
|
30 |
+
"input_validation": 3,
|
31 |
+
"memory_corruption": 4,
|
32 |
+
"open_redirect": 5,
|
33 |
+
"overflow": 6,
|
34 |
+
"sql_injection": 7,
|
35 |
+
"ssrf": 8,
|
36 |
+
"xss": 9,
|
37 |
+
"xxe": 10
|
38 |
+
},
|
39 |
+
"layer_norm_eps": 1e-12,
|
40 |
+
"max_position_embeddings": 512,
|
41 |
+
"model_type": "bert",
|
42 |
+
"num_attention_heads": 12,
|
43 |
+
"num_hidden_layers": 12,
|
44 |
+
"pad_token_id": 0,
|
45 |
+
"position_embedding_type": "absolute",
|
46 |
+
"problem_type": "single_label_classification",
|
47 |
+
"torch_dtype": "float32",
|
48 |
+
"transformers_version": "4.38.2",
|
49 |
+
"type_vocab_size": 2,
|
50 |
+
"use_cache": true,
|
51 |
+
"vocab_size": 31090
|
52 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f199df910ca16fb42f669fd46c9ded0d16d23cc91701f77899f977eae4cb51ed
|
3 |
+
size 439731228
|
runs/Apr05_04-24-25_a498a9400766/events.out.tfevents.1712291065.a498a9400766.964.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3a3cfeb313b24540b4182bd887d57bffba73f5f87831f52d50d29b8545920d5
|
3 |
+
size 8166
|
runs/Apr05_04-50-09_a498a9400766/events.out.tfevents.1712292610.a498a9400766.964.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:31ff688445849249ae18fc399c18d6fc8a6f74ac0bc3044a7e8f982f31d4cc5d
|
3 |
+
size 5479
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"101": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"102": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"103": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"104": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b06ce88023e3be5f3a7f405adcdae1e370ff3aada4638bb3cc90be590ce9522d
|
3 |
+
size 4920
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|