dominguesm
commited on
Commit
•
8512cc5
1
Parent(s):
839f981
Add model
Browse files- config.json +66 -0
- eval_results.txt +4 -0
- model_args.json +1 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer_config.json +15 -0
- training_args.bin +3 -0
- training_progress_scores.csv +13 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "neuralmind/bert-base-portuguese-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "OU",
|
14 |
+
"1": "OO",
|
15 |
+
"2": ".O",
|
16 |
+
"3": "!O",
|
17 |
+
"4": ",O",
|
18 |
+
"5": ".U",
|
19 |
+
"6": "!U",
|
20 |
+
"7": ",U",
|
21 |
+
"8": ":O",
|
22 |
+
"9": ";O",
|
23 |
+
"10": ":U",
|
24 |
+
"11": "'O",
|
25 |
+
"12": "-O",
|
26 |
+
"13": "?O",
|
27 |
+
"14": "?U"
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 3072,
|
31 |
+
"label2id": {
|
32 |
+
"!O": 3,
|
33 |
+
"!U": 6,
|
34 |
+
"'O": 11,
|
35 |
+
",O": 4,
|
36 |
+
",U": 7,
|
37 |
+
"-O": 12,
|
38 |
+
".O": 2,
|
39 |
+
".U": 5,
|
40 |
+
":O": 8,
|
41 |
+
":U": 10,
|
42 |
+
";O": 9,
|
43 |
+
"?O": 13,
|
44 |
+
"?U": 14,
|
45 |
+
"OO": 1,
|
46 |
+
"OU": 0
|
47 |
+
},
|
48 |
+
"layer_norm_eps": 1e-12,
|
49 |
+
"max_position_embeddings": 512,
|
50 |
+
"model_type": "bert",
|
51 |
+
"num_attention_heads": 12,
|
52 |
+
"num_hidden_layers": 12,
|
53 |
+
"output_past": true,
|
54 |
+
"pad_token_id": 0,
|
55 |
+
"pooler_fc_size": 768,
|
56 |
+
"pooler_num_attention_heads": 12,
|
57 |
+
"pooler_num_fc_layers": 3,
|
58 |
+
"pooler_size_per_head": 128,
|
59 |
+
"pooler_type": "first_token_transform",
|
60 |
+
"position_embedding_type": "absolute",
|
61 |
+
"torch_dtype": "float32",
|
62 |
+
"transformers_version": "4.20.1",
|
63 |
+
"type_vocab_size": 2,
|
64 |
+
"use_cache": true,
|
65 |
+
"vocab_size": 29794
|
66 |
+
}
|
eval_results.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
eval_loss = 0.10823741682212461
|
2 |
+
f1_score = 0.565987004257226
|
3 |
+
precision = 0.5885368126747437
|
4 |
+
recall = 0.5451014242555028
|
model_args.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"adafactor_beta1": null, "adafactor_clip_threshold": 1.0, "adafactor_decay_rate": -0.8, "adafactor_eps": [1e-30, 0.001], "adafactor_relative_step": true, "adafactor_scale_parameter": true, "adafactor_warmup_init": true, "adam_epsilon": 1e-08, "best_model_dir": "outputs/best_model", "cache_dir": "cache_dir/", "config": {}, "cosine_schedule_num_cycles": 0.5, "custom_layer_parameters": [], "custom_parameter_groups": [], "dataloader_num_workers": 0, "do_lower_case": false, "dynamic_quantize": false, "early_stopping_consider_epochs": false, "early_stopping_delta": 0, "early_stopping_metric": "eval_loss", "early_stopping_metric_minimize": true, "early_stopping_patience": 3, "encoding": null, "eval_batch_size": 16, "evaluate_during_training": true, "evaluate_during_training_silent": true, "evaluate_during_training_steps": 1000, "evaluate_during_training_verbose": false, "evaluate_each_epoch": true, "fp16": true, "gradient_accumulation_steps": 1, "learning_rate": 4e-05, "local_rank": -1, "logging_steps": 1, "loss_type": null, "loss_args": {}, "manual_seed": null, "max_grad_norm": 1.0, "max_seq_length": 512, "model_name": "neuralmind/bert-base-portuguese-cased", "model_type": "bert", "multiprocessing_chunksize": -1, "n_gpu": 1, "no_cache": false, "no_save": false, "not_saved_args": [], "num_train_epochs": 3, "optimizer": "AdamW", "output_dir": "outputs/", "overwrite_output_dir": true, "polynomial_decay_schedule_lr_end": 1e-07, "polynomial_decay_schedule_power": 1.0, "process_count": 6, "quantized_model": false, "reprocess_input_data": true, "save_best_model": true, "save_eval_checkpoints": true, "save_model_every_epoch": true, "save_optimizer_and_scheduler": true, "save_steps": 2000, "scheduler": "linear_schedule_with_warmup", "silent": false, "skip_special_tokens": true, "tensorboard_dir": null, "thread_count": null, "tokenizer_name": null, "tokenizer_type": null, "train_batch_size": 8, "train_custom_parameters_only": false, "use_cached_eval_features": false, "use_early_stopping": false, "use_hf_datasets": false, "use_multiprocessing": true, "use_multiprocessing_for_evaluation": true, "wandb_kwargs": {"job_type": "training"}, "wandb_project": "RestorePunctuationPTBR", "warmup_ratio": 0.06, "warmup_steps": 570, "weight_decay": 0.0, "model_class": "NERModel", "classification_report": false, "labels_list": ["OU", "OO", ".O", "!O", ",O", ".U", "!U", ",U", ":O", ";O", ":U", "'O", "-O", "?O", "?U"], "lazy_loading": true, "lazy_loading_start_line": 0, "onnx": false, "special_tokens_list": []}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:074f7d6e2e0f9644cdd8a3615d892dd29991f9ea9a7696e8e27cf2f5e8873b79
|
3 |
+
size 433446705
|
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_config.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"do_basic_tokenize": true,
|
4 |
+
"do_lower_case": false,
|
5 |
+
"mask_token": "[MASK]",
|
6 |
+
"name_or_path": "neuralmind/bert-base-portuguese-cased",
|
7 |
+
"never_split": null,
|
8 |
+
"pad_token": "[PAD]",
|
9 |
+
"sep_token": "[SEP]",
|
10 |
+
"special_tokens_map_file": "/root/.cache/huggingface/transformers/eecc45187d085a1169eed91017d358cc0e9cbdd5dc236bcd710059dbf0a2f816.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d",
|
11 |
+
"strip_accents": null,
|
12 |
+
"tokenize_chinese_chars": true,
|
13 |
+
"tokenizer_class": "BertTokenizer",
|
14 |
+
"unk_token": "[UNK]"
|
15 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a494e25a336cfc1d3631aa530741b6b3b767a0cb2d00e5e717f46f0b0a838f2
|
3 |
+
size 3119
|
training_progress_scores.csv
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
global_step,train_loss,eval_loss,precision,recall,f1_score
|
2 |
+
1000,0.1248941496014595,0.13800142815505917,0.4846371034711842,0.41979571284707234,0.44989207523897623
|
3 |
+
2000,0.1565110832452774,0.12018181159245697,0.5045703839122486,0.4764782045748813,0.4901220865704773
|
4 |
+
3000,0.11230213195085526,0.11561041702093049,0.5379727216367018,0.4993526111350885,0.5179437439379243
|
5 |
+
3166,0.1464250236749649,0.11306420612064275,0.5538734095667579,0.4947489569846065,0.5226443768996961
|
6 |
+
4000,0.13592171669006348,0.11413881902328947,0.5160187953865869,0.5213638325420803,0.5186775440103049
|
7 |
+
5000,0.11957047134637833,0.11253610333766449,0.5586643994434998,0.5199251906200547,0.5385991058122206
|
8 |
+
6000,0.10566143691539764,0.10819986238229004,0.5772019126947401,0.5383398072219825,0.5570939407473574
|
9 |
+
6332,0.12447528541088104,0.1083609036762606,0.5710365853658537,0.5389152639907927,0.5545111390718673
|
10 |
+
7000,0.0662759318947792,0.11269116410138932,0.5959890021025392,0.5301395482664365,0.561139028475712
|
11 |
+
8000,0.06995037943124771,0.10897330694239248,0.5739287869643935,0.5472593871385412,0.5602768981515575
|
12 |
+
9000,0.10503079742193222,0.10939429514110088,0.5774992357077346,0.5435189181412746,0.5599940709997776
|
13 |
+
9498,0.10121016204357147,0.10823741682212461,0.5885368126747437,0.5451014242555028,0.565987004257226
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|