End of training
Browse files- README.md +99 -0
- config.json +76 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- anno_ctr
|
8 |
+
metrics:
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
- accuracy
|
13 |
+
model-index:
|
14 |
+
- name: annoctr_bert_uncased
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Token Classification
|
18 |
+
type: token-classification
|
19 |
+
dataset:
|
20 |
+
name: anno_ctr
|
21 |
+
type: anno_ctr
|
22 |
+
config: all_tags
|
23 |
+
split: test
|
24 |
+
args: all_tags
|
25 |
+
metrics:
|
26 |
+
- name: Precision
|
27 |
+
type: precision
|
28 |
+
value: 0.7928388746803069
|
29 |
+
- name: Recall
|
30 |
+
type: recall
|
31 |
+
value: 0.7809920945182869
|
32 |
+
- name: F1
|
33 |
+
type: f1
|
34 |
+
value: 0.7868708971553611
|
35 |
+
- name: Accuracy
|
36 |
+
type: accuracy
|
37 |
+
value: 0.936522196415268
|
38 |
+
---
|
39 |
+
|
40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
41 |
+
should probably proofread and complete it, then remove this comment. -->
|
42 |
+
|
43 |
+
# annoctr_bert_uncased
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the anno_ctr dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.3322
|
48 |
+
- Precision: 0.7928
|
49 |
+
- Recall: 0.7810
|
50 |
+
- F1: 0.7869
|
51 |
+
- Accuracy: 0.9365
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 1e-05
|
71 |
+
- train_batch_size: 16
|
72 |
+
- eval_batch_size: 16
|
73 |
+
- seed: 42
|
74 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
75 |
+
- lr_scheduler_type: linear
|
76 |
+
- num_epochs: 10
|
77 |
+
|
78 |
+
### Training results
|
79 |
+
|
80 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
81 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
82 |
+
| 0.54 | 1.0 | 474 | 0.3452 | 0.6983 | 0.6601 | 0.6786 | 0.9137 |
|
83 |
+
| 0.3013 | 2.0 | 948 | 0.3466 | 0.7774 | 0.7018 | 0.7376 | 0.9240 |
|
84 |
+
| 0.0392 | 3.0 | 1422 | 0.3071 | 0.7851 | 0.7517 | 0.7680 | 0.9303 |
|
85 |
+
| 0.5695 | 4.0 | 1896 | 0.2941 | 0.7810 | 0.7617 | 0.7712 | 0.9334 |
|
86 |
+
| 0.0021 | 5.0 | 2370 | 0.3109 | 0.7928 | 0.7720 | 0.7823 | 0.9351 |
|
87 |
+
| 0.0419 | 6.0 | 2844 | 0.3020 | 0.7772 | 0.7796 | 0.7784 | 0.9341 |
|
88 |
+
| 0.2979 | 7.0 | 3318 | 0.3169 | 0.8019 | 0.7814 | 0.7915 | 0.9374 |
|
89 |
+
| 0.0017 | 8.0 | 3792 | 0.3260 | 0.7972 | 0.7778 | 0.7874 | 0.9365 |
|
90 |
+
| 0.0166 | 9.0 | 4266 | 0.3349 | 0.7935 | 0.7789 | 0.7861 | 0.9364 |
|
91 |
+
| 0.0685 | 10.0 | 4740 | 0.3322 | 0.7928 | 0.7810 | 0.7869 | 0.9365 |
|
92 |
+
|
93 |
+
|
94 |
+
### Framework versions
|
95 |
+
|
96 |
+
- Transformers 4.40.1
|
97 |
+
- Pytorch 2.3.0+cu121
|
98 |
+
- Datasets 2.19.1
|
99 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "B-SECTOR",
|
14 |
+
"1": "B-DATE",
|
15 |
+
"2": "B-TECHNIQUE",
|
16 |
+
"3": "I-LOC",
|
17 |
+
"4": "B-CON",
|
18 |
+
"5": "I-TACTIC",
|
19 |
+
"6": "I-CON",
|
20 |
+
"7": "I-DATE",
|
21 |
+
"8": "B-TOOL",
|
22 |
+
"9": "I-TECHNIQUE",
|
23 |
+
"10": "I-ORG",
|
24 |
+
"11": "B-MALWARE",
|
25 |
+
"12": "B-ORG",
|
26 |
+
"13": "I-TOOL",
|
27 |
+
"14": "B-GROUP",
|
28 |
+
"15": "O",
|
29 |
+
"16": "I-MALWARE",
|
30 |
+
"17": "B-TACTIC",
|
31 |
+
"18": "B-LOC",
|
32 |
+
"19": "I-GROUP",
|
33 |
+
"20": "B-CLICommand/CodeSnippet",
|
34 |
+
"21": "I-SECTOR",
|
35 |
+
"22": "I-CLICommand/CodeSnippet"
|
36 |
+
},
|
37 |
+
"initializer_range": 0.02,
|
38 |
+
"intermediate_size": 3072,
|
39 |
+
"label2id": {
|
40 |
+
"B-CLICommand/CodeSnippet": 20,
|
41 |
+
"B-CON": 4,
|
42 |
+
"B-DATE": 1,
|
43 |
+
"B-GROUP": 14,
|
44 |
+
"B-LOC": 18,
|
45 |
+
"B-MALWARE": 11,
|
46 |
+
"B-ORG": 12,
|
47 |
+
"B-SECTOR": 0,
|
48 |
+
"B-TACTIC": 17,
|
49 |
+
"B-TECHNIQUE": 2,
|
50 |
+
"B-TOOL": 8,
|
51 |
+
"I-CLICommand/CodeSnippet": 22,
|
52 |
+
"I-CON": 6,
|
53 |
+
"I-DATE": 7,
|
54 |
+
"I-GROUP": 19,
|
55 |
+
"I-LOC": 3,
|
56 |
+
"I-MALWARE": 16,
|
57 |
+
"I-ORG": 10,
|
58 |
+
"I-SECTOR": 21,
|
59 |
+
"I-TACTIC": 5,
|
60 |
+
"I-TECHNIQUE": 9,
|
61 |
+
"I-TOOL": 13,
|
62 |
+
"O": 15
|
63 |
+
},
|
64 |
+
"layer_norm_eps": 1e-12,
|
65 |
+
"max_position_embeddings": 512,
|
66 |
+
"model_type": "bert",
|
67 |
+
"num_attention_heads": 12,
|
68 |
+
"num_hidden_layers": 12,
|
69 |
+
"pad_token_id": 0,
|
70 |
+
"position_embedding_type": "absolute",
|
71 |
+
"torch_dtype": "float32",
|
72 |
+
"transformers_version": "4.40.1",
|
73 |
+
"type_vocab_size": 2,
|
74 |
+
"use_cache": true,
|
75 |
+
"vocab_size": 30522
|
76 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7bd33366def77d1563c5f1fe88f535e4b2824bb1c288d258dc2bf7361cfc70d7
|
3 |
+
size 435660684
|
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,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
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_lower_case": true,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "BertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52e2f34d902c0dd69a62a8a5bb82d7cc5fc827859a38bb0eb57dd316cdb3e29c
|
3 |
+
size 4984
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|