Training completed!
Browse files- README.md +69 -0
- config.json +84 -0
- model.safetensors +3 -0
- runs/Feb20_08-29-48_257978156f34/events.out.tfevents.1708417884.257978156f34.34.0 +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,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: bert-base-cased
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- f1
|
| 8 |
+
model-index:
|
| 9 |
+
- name: SOMD-train-bert-v3
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# SOMD-train-bert-v3
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the None dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.0000
|
| 21 |
+
- F1: 1.0
|
| 22 |
+
|
| 23 |
+
## Model description
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Intended uses & limitations
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training and evaluation data
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training procedure
|
| 36 |
+
|
| 37 |
+
### Training hyperparameters
|
| 38 |
+
|
| 39 |
+
The following hyperparameters were used during training:
|
| 40 |
+
- learning_rate: 5e-05
|
| 41 |
+
- train_batch_size: 32
|
| 42 |
+
- eval_batch_size: 32
|
| 43 |
+
- seed: 42
|
| 44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
+
- lr_scheduler_type: linear
|
| 46 |
+
- num_epochs: 10
|
| 47 |
+
|
| 48 |
+
### Training results
|
| 49 |
+
|
| 50 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 |
|
| 51 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|
|
| 52 |
+
| No log | 1.0 | 1243 | 0.0048 | 0.7214 |
|
| 53 |
+
| No log | 2.0 | 2486 | 0.0024 | 0.8299 |
|
| 54 |
+
| No log | 3.0 | 3729 | 0.0011 | 0.9137 |
|
| 55 |
+
| No log | 4.0 | 4972 | 0.0006 | 0.9494 |
|
| 56 |
+
| No log | 5.0 | 6215 | 0.0002 | 0.9820 |
|
| 57 |
+
| No log | 6.0 | 7458 | 0.0001 | 0.9888 |
|
| 58 |
+
| No log | 7.0 | 8701 | 0.0003 | 0.9839 |
|
| 59 |
+
| No log | 8.0 | 9944 | 0.0001 | 0.9960 |
|
| 60 |
+
| No log | 9.0 | 11187 | 0.0000 | 0.9995 |
|
| 61 |
+
| No log | 10.0 | 12430 | 0.0000 | 1.0 |
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
### Framework versions
|
| 65 |
+
|
| 66 |
+
- Transformers 4.37.0
|
| 67 |
+
- Pytorch 2.1.2
|
| 68 |
+
- Datasets 2.1.0
|
| 69 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bert-base-cased",
|
| 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": "O",
|
| 14 |
+
"1": "I-SoftwareCoreference_Deposition",
|
| 15 |
+
"2": "I-ProgrammingEnvironment_Usage",
|
| 16 |
+
"3": "I-ProgrammingEnvironment_Mention",
|
| 17 |
+
"4": "I-PlugIn_Usage",
|
| 18 |
+
"5": "I-PlugIn_Mention",
|
| 19 |
+
"6": "I-PlugIn_Deposition",
|
| 20 |
+
"7": "I-PlugIn_Creation",
|
| 21 |
+
"8": "I-OperatingSystem_Usage",
|
| 22 |
+
"9": "I-OperatingSystem_Mention",
|
| 23 |
+
"10": "I-Application_Usage",
|
| 24 |
+
"11": "I-Application_Mention",
|
| 25 |
+
"12": "I-Application_Deposition",
|
| 26 |
+
"13": "I-Application_Creation",
|
| 27 |
+
"14": "B-SoftwareCoreference_Deposition",
|
| 28 |
+
"15": "B-ProgrammingEnvironment_Usage",
|
| 29 |
+
"16": "B-ProgrammingEnvironment_Mention",
|
| 30 |
+
"17": "B-PlugIn_Usage",
|
| 31 |
+
"18": "B-PlugIn_Mention",
|
| 32 |
+
"19": "B-PlugIn_Deposition",
|
| 33 |
+
"20": "B-PlugIn_Creation",
|
| 34 |
+
"21": "B-OperatingSystem_Usage",
|
| 35 |
+
"22": "B-OperatingSystem_Mention",
|
| 36 |
+
"23": "B-Application_Usage",
|
| 37 |
+
"24": "B-Application_Mention",
|
| 38 |
+
"25": "B-Application_Deposition",
|
| 39 |
+
"26": "B-Application_Creation"
|
| 40 |
+
},
|
| 41 |
+
"initializer_range": 0.02,
|
| 42 |
+
"intermediate_size": 3072,
|
| 43 |
+
"label2id": {
|
| 44 |
+
"B-Application_Creation": 26,
|
| 45 |
+
"B-Application_Deposition": 25,
|
| 46 |
+
"B-Application_Mention": 24,
|
| 47 |
+
"B-Application_Usage": 23,
|
| 48 |
+
"B-OperatingSystem_Mention": 22,
|
| 49 |
+
"B-OperatingSystem_Usage": 21,
|
| 50 |
+
"B-PlugIn_Creation": 20,
|
| 51 |
+
"B-PlugIn_Deposition": 19,
|
| 52 |
+
"B-PlugIn_Mention": 18,
|
| 53 |
+
"B-PlugIn_Usage": 17,
|
| 54 |
+
"B-ProgrammingEnvironment_Mention": 16,
|
| 55 |
+
"B-ProgrammingEnvironment_Usage": 15,
|
| 56 |
+
"B-SoftwareCoreference_Deposition": 14,
|
| 57 |
+
"I-Application_Creation": 13,
|
| 58 |
+
"I-Application_Deposition": 12,
|
| 59 |
+
"I-Application_Mention": 11,
|
| 60 |
+
"I-Application_Usage": 10,
|
| 61 |
+
"I-OperatingSystem_Mention": 9,
|
| 62 |
+
"I-OperatingSystem_Usage": 8,
|
| 63 |
+
"I-PlugIn_Creation": 7,
|
| 64 |
+
"I-PlugIn_Deposition": 6,
|
| 65 |
+
"I-PlugIn_Mention": 5,
|
| 66 |
+
"I-PlugIn_Usage": 4,
|
| 67 |
+
"I-ProgrammingEnvironment_Mention": 3,
|
| 68 |
+
"I-ProgrammingEnvironment_Usage": 2,
|
| 69 |
+
"I-SoftwareCoreference_Deposition": 1,
|
| 70 |
+
"O": 0
|
| 71 |
+
},
|
| 72 |
+
"layer_norm_eps": 1e-12,
|
| 73 |
+
"max_position_embeddings": 512,
|
| 74 |
+
"model_type": "bert",
|
| 75 |
+
"num_attention_heads": 12,
|
| 76 |
+
"num_hidden_layers": 12,
|
| 77 |
+
"pad_token_id": 0,
|
| 78 |
+
"position_embedding_type": "absolute",
|
| 79 |
+
"torch_dtype": "float32",
|
| 80 |
+
"transformers_version": "4.37.0",
|
| 81 |
+
"type_vocab_size": 2,
|
| 82 |
+
"use_cache": true,
|
| 83 |
+
"vocab_size": 28996
|
| 84 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcabaaedc72c4be384a469933714b3ad571164d41d56e243d1f1e961e8aded64
|
| 3 |
+
size 430985108
|
runs/Feb20_08-29-48_257978156f34/events.out.tfevents.1708417884.257978156f34.34.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d162656e3625aa301d1188cf02602a2480a289b249775ef7be7129129896743c
|
| 3 |
+
size 9777
|
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": false,
|
| 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:f77162abdad33fdcc2349f93370750fc55b179b04fa39e108dd69a70ec947dad
|
| 3 |
+
size 4728
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|