vincenzopecorella
commited on
Upload 12 files
Browse files- README.md +64 -3
- all_results.json +18 -0
- config.json +57 -0
- eval_results.json +12 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +56 -0
- train_results.json +9 -0
- trainer_state.json +63 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,64 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: bert-base-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
- f1
|
11 |
+
- accuracy
|
12 |
+
model-index:
|
13 |
+
- name: test-ner
|
14 |
+
results: []
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
# test-ner
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.0201
|
25 |
+
- Precision: 0.7977
|
26 |
+
- Recall: 0.8532
|
27 |
+
- F1: 0.8245
|
28 |
+
- Accuracy: 0.9937
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 5e-05
|
48 |
+
- train_batch_size: 8
|
49 |
+
- eval_batch_size: 8
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- num_epochs: 3.0
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
### Framework versions
|
60 |
+
|
61 |
+
- Transformers 4.48.0.dev0
|
62 |
+
- Pytorch 2.5.1
|
63 |
+
- Datasets 3.1.0
|
64 |
+
- Tokenizers 0.21.0
|
all_results.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_accuracy": 0.9936547895449831,
|
4 |
+
"eval_f1": 0.8245283018867925,
|
5 |
+
"eval_loss": 0.02005779556930065,
|
6 |
+
"eval_precision": 0.7976878612716763,
|
7 |
+
"eval_recall": 0.8532378782948259,
|
8 |
+
"eval_runtime": 31.1176,
|
9 |
+
"eval_samples": 620,
|
10 |
+
"eval_samples_per_second": 19.924,
|
11 |
+
"eval_steps_per_second": 2.507,
|
12 |
+
"total_flos": 3885346539712512.0,
|
13 |
+
"train_loss": 0.03023709866308397,
|
14 |
+
"train_runtime": 2355.393,
|
15 |
+
"train_samples": 4956,
|
16 |
+
"train_samples_per_second": 6.312,
|
17 |
+
"train_steps_per_second": 0.79
|
18 |
+
}
|
config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"finetuning_task": "ner",
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "B-Advisors.GENERIC_CONSULTING_COMPANY",
|
15 |
+
"1": "B-Advisors.LEGAL_CONSULTING_COMPANY",
|
16 |
+
"2": "B-Generic_Info.ANNUAL_REVENUES",
|
17 |
+
"3": "B-Parties.ACQUIRED_COMPANY",
|
18 |
+
"4": "B-Parties.BUYING_COMPANY",
|
19 |
+
"5": "B-Parties.SELLING_COMPANY",
|
20 |
+
"6": "I-Advisors.GENERIC_CONSULTING_COMPANY",
|
21 |
+
"7": "I-Advisors.LEGAL_CONSULTING_COMPANY",
|
22 |
+
"8": "I-Generic_Info.ANNUAL_REVENUES",
|
23 |
+
"9": "I-Parties.ACQUIRED_COMPANY",
|
24 |
+
"10": "I-Parties.BUYING_COMPANY",
|
25 |
+
"11": "I-Parties.SELLING_COMPANY",
|
26 |
+
"12": "O"
|
27 |
+
},
|
28 |
+
"initializer_range": 0.02,
|
29 |
+
"intermediate_size": 3072,
|
30 |
+
"label2id": {
|
31 |
+
"B-Advisors.GENERIC_CONSULTING_COMPANY": 0,
|
32 |
+
"B-Advisors.LEGAL_CONSULTING_COMPANY": 1,
|
33 |
+
"B-Generic_Info.ANNUAL_REVENUES": 2,
|
34 |
+
"B-Parties.ACQUIRED_COMPANY": 3,
|
35 |
+
"B-Parties.BUYING_COMPANY": 4,
|
36 |
+
"B-Parties.SELLING_COMPANY": 5,
|
37 |
+
"I-Advisors.GENERIC_CONSULTING_COMPANY": 6,
|
38 |
+
"I-Advisors.LEGAL_CONSULTING_COMPANY": 7,
|
39 |
+
"I-Generic_Info.ANNUAL_REVENUES": 8,
|
40 |
+
"I-Parties.ACQUIRED_COMPANY": 9,
|
41 |
+
"I-Parties.BUYING_COMPANY": 10,
|
42 |
+
"I-Parties.SELLING_COMPANY": 11,
|
43 |
+
"O": 12
|
44 |
+
},
|
45 |
+
"layer_norm_eps": 1e-12,
|
46 |
+
"max_position_embeddings": 512,
|
47 |
+
"model_type": "bert",
|
48 |
+
"num_attention_heads": 12,
|
49 |
+
"num_hidden_layers": 12,
|
50 |
+
"pad_token_id": 0,
|
51 |
+
"position_embedding_type": "absolute",
|
52 |
+
"torch_dtype": "float32",
|
53 |
+
"transformers_version": "4.48.0.dev0",
|
54 |
+
"type_vocab_size": 2,
|
55 |
+
"use_cache": true,
|
56 |
+
"vocab_size": 30522
|
57 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_accuracy": 0.9936547895449831,
|
4 |
+
"eval_f1": 0.8245283018867925,
|
5 |
+
"eval_loss": 0.02005779556930065,
|
6 |
+
"eval_precision": 0.7976878612716763,
|
7 |
+
"eval_recall": 0.8532378782948259,
|
8 |
+
"eval_runtime": 31.1176,
|
9 |
+
"eval_samples": 620,
|
10 |
+
"eval_samples_per_second": 19.924,
|
11 |
+
"eval_steps_per_second": 2.507
|
12 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65ac9077113579cd934f7589850c727ca059bacf8f5c07e2c841274ef03a345c
|
3 |
+
size 435629924
|
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,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": false,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
47 |
+
"extra_special_tokens": {},
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"pad_token": "[PAD]",
|
51 |
+
"sep_token": "[SEP]",
|
52 |
+
"strip_accents": null,
|
53 |
+
"tokenize_chinese_chars": true,
|
54 |
+
"tokenizer_class": "BertTokenizer",
|
55 |
+
"unk_token": "[UNK]"
|
56 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 3885346539712512.0,
|
4 |
+
"train_loss": 0.03023709866308397,
|
5 |
+
"train_runtime": 2355.393,
|
6 |
+
"train_samples": 4956,
|
7 |
+
"train_samples_per_second": 6.312,
|
8 |
+
"train_steps_per_second": 0.79
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1860,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.8064516129032258,
|
13 |
+
"grad_norm": 0.36054283380508423,
|
14 |
+
"learning_rate": 3.655913978494624e-05,
|
15 |
+
"loss": 0.0713,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.6129032258064515,
|
20 |
+
"grad_norm": 0.2890476882457733,
|
21 |
+
"learning_rate": 2.3118279569892472e-05,
|
22 |
+
"loss": 0.0203,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 2.4193548387096775,
|
27 |
+
"grad_norm": 0.166881263256073,
|
28 |
+
"learning_rate": 9.67741935483871e-06,
|
29 |
+
"loss": 0.0136,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 3.0,
|
34 |
+
"step": 1860,
|
35 |
+
"total_flos": 3885346539712512.0,
|
36 |
+
"train_loss": 0.03023709866308397,
|
37 |
+
"train_runtime": 2355.393,
|
38 |
+
"train_samples_per_second": 6.312,
|
39 |
+
"train_steps_per_second": 0.79
|
40 |
+
}
|
41 |
+
],
|
42 |
+
"logging_steps": 500,
|
43 |
+
"max_steps": 1860,
|
44 |
+
"num_input_tokens_seen": 0,
|
45 |
+
"num_train_epochs": 3,
|
46 |
+
"save_steps": 500,
|
47 |
+
"stateful_callbacks": {
|
48 |
+
"TrainerControl": {
|
49 |
+
"args": {
|
50 |
+
"should_epoch_stop": false,
|
51 |
+
"should_evaluate": false,
|
52 |
+
"should_log": false,
|
53 |
+
"should_save": true,
|
54 |
+
"should_training_stop": true
|
55 |
+
},
|
56 |
+
"attributes": {}
|
57 |
+
}
|
58 |
+
},
|
59 |
+
"total_flos": 3885346539712512.0,
|
60 |
+
"train_batch_size": 8,
|
61 |
+
"trial_name": null,
|
62 |
+
"trial_params": null
|
63 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d168c9776b3531a8c6acde3dd9ef7333d7874da65f9004726acb9de825620ea
|
3 |
+
size 5304
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|