Upload folder using huggingface_hub
Browse files- added_tokens.json +1 -0
- config.json +32 -0
- eval_results.txt +20 -0
- model_args.json +1 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +1 -0
- test_eval.txt +43 -0
- tokenizer_config.json +1 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"<e>": 28996, "</e>": 28997}
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bert-large-cased",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"directionality": "bidi",
|
| 9 |
+
"gradient_checkpointing": false,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 1024,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 4096,
|
| 15 |
+
"layer_norm_eps": 1e-12,
|
| 16 |
+
"max_position_embeddings": 512,
|
| 17 |
+
"model_type": "bert",
|
| 18 |
+
"num_attention_heads": 16,
|
| 19 |
+
"num_hidden_layers": 24,
|
| 20 |
+
"pad_token_id": 0,
|
| 21 |
+
"pooler_fc_size": 768,
|
| 22 |
+
"pooler_num_attention_heads": 12,
|
| 23 |
+
"pooler_num_fc_layers": 3,
|
| 24 |
+
"pooler_size_per_head": 128,
|
| 25 |
+
"pooler_type": "first_token_transform",
|
| 26 |
+
"position_embedding_type": "absolute",
|
| 27 |
+
"torch_dtype": "float32",
|
| 28 |
+
"transformers_version": "4.16.2",
|
| 29 |
+
"type_vocab_size": 2,
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 28998
|
| 32 |
+
}
|
eval_results.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
accuracy = 0.8122222222222222
|
| 2 |
+
cls_report = precision recall f1-score support
|
| 3 |
+
|
| 4 |
+
0.0 0.8485 0.7778 0.8116 468
|
| 5 |
+
1.0 0.7792 0.8495 0.8128 432
|
| 6 |
+
|
| 7 |
+
accuracy 0.8122 900
|
| 8 |
+
macro avg 0.8138 0.8137 0.8122 900
|
| 9 |
+
weighted avg 0.8152 0.8122 0.8122 900
|
| 10 |
+
|
| 11 |
+
eval_loss = 0.4493997673193614
|
| 12 |
+
fn = 65
|
| 13 |
+
fp = 104
|
| 14 |
+
macro_f1 = 0.8122201357792864
|
| 15 |
+
mcc = 0.6274964083386112
|
| 16 |
+
tn = 364
|
| 17 |
+
tp = 367
|
| 18 |
+
weighted_f1 = 0.812195098464057
|
| 19 |
+
weighted_p = 0.8138390272148235
|
| 20 |
+
weighted_r = 0.8136574074074074
|
model_args.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"adam_epsilon": 1e-08, "begin_tag": "<e>", "best_model_dir": "temp/outputs/best_model", "cache_dir": "temp/cache_dir/", "config": {}, "custom_layer_parameters": [], "custom_parameter_groups": [], "dataloader_num_workers": 70, "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": 10, "encoding": null, "end_tag": "</e>", "eval_batch_size": 64, "evaluate_during_training": true, "evaluate_during_training_silent": false, "evaluate_during_training_steps": 100, "evaluate_during_training_verbose": true, "evaluate_each_epoch": true, "fp16": false, "gradient_accumulation_steps": 1, "learning_rate": 1e-05, "local_rank": -1, "logging_steps": 100, "manual_seed": 777, "max_grad_norm": 1.0, "max_seq_length": 120, "model_name": "bert-large-cased", "model_type": "bert", "multiprocessing_chunksize": 500, "n_gpu": 1, "no_cache": false, "no_save": false, "num_train_epochs": 3, "output_dir": "temp/outputs/", "overwrite_output_dir": true, "process_count": 70, "quantized_model": false, "reprocess_input_data": true, "save_best_model": true, "save_eval_checkpoints": false, "save_model_every_epoch": false, "save_optimizer_and_scheduler": true, "save_steps": 100, "save_recent_only": true, "silent": false, "tensorboard_dir": null, "thread_count": null, "train_batch_size": 8, "train_custom_parameters_only": false, "use_cached_eval_features": false, "use_early_stopping": true, "use_multiprocessing": true, "wandb_kwargs": {"group": "en-en_bert-large-cased_P_concat", "job_type": "2"}, "wandb_project": "TransWiC-groups", "warmup_ratio": 0.1, "warmup_steps": 304, "weight_decay": 0, "skip_special_tokens": true, "model_class": "ClassificationModel", "labels_list": [0, 1], "labels_map": {}, "lazy_delimiter": "\t", "lazy_labels_column": 1, "lazy_loading": false, "lazy_loading_start_line": 1, "lazy_text_a_column": null, "lazy_text_b_column": null, "lazy_text_column": 0, "onnx": false, "regression": false, "sliding_window": false, "stride": 0.8, "tie_value": 1, "tagging": true, "strategy": "P", "special_tags": ["<e>", "</e>"], "merge_n": 2, "merge_type": "concat"}
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60cd781faba3cf254dc6444769b00ce0843a58498aba09986d34706f5a08ffc3
|
| 3 |
+
size 2660516165
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:889b9de985ea55414cd11a2c4442f19317d40346757a6e7c915b83d1e1002604
|
| 3 |
+
size 1334506229
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a93a77a513e2e8c74a0f7643b089a6503701a057afe58a9c7890e0113b7dc464
|
| 3 |
+
size 627
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
test_eval.txt
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Default classification report:
|
| 2 |
+
precision recall f1-score support
|
| 3 |
+
|
| 4 |
+
F 0.8643 0.8920 0.8780 500
|
| 5 |
+
T 0.8884 0.8600 0.8740 500
|
| 6 |
+
|
| 7 |
+
accuracy 0.8760 1000
|
| 8 |
+
macro avg 0.8764 0.8760 0.8760 1000
|
| 9 |
+
weighted avg 0.8764 0.8760 0.8760 1000
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
ADJ
|
| 13 |
+
Accuracy = 0.875
|
| 14 |
+
Weighted Recall = 0.875
|
| 15 |
+
Weighted Precision = 0.8750971250971252
|
| 16 |
+
Weighted F1 = 0.8748788524907928
|
| 17 |
+
Macro Recall = 0.8738390092879257
|
| 18 |
+
Macro Precision = 0.8752913752913754
|
| 19 |
+
Macro F1 = 0.8743942624539639
|
| 20 |
+
ADV
|
| 21 |
+
Accuracy = 0.8333333333333334
|
| 22 |
+
Weighted Recall = 0.8333333333333334
|
| 23 |
+
Weighted Precision = 0.8412698412698413
|
| 24 |
+
Weighted F1 = 0.827838827838828
|
| 25 |
+
Macro Recall = 0.8055555555555556
|
| 26 |
+
Macro Precision = 0.8492063492063492
|
| 27 |
+
Macro F1 = 0.8168498168498168
|
| 28 |
+
NOUN
|
| 29 |
+
Accuracy = 0.8674242424242424
|
| 30 |
+
Weighted Recall = 0.8674242424242424
|
| 31 |
+
Weighted Precision = 0.8681623467839614
|
| 32 |
+
Weighted F1 = 0.8673442938002072
|
| 33 |
+
Macro Recall = 0.8673362508070881
|
| 34 |
+
Macro Precision = 0.8682238554806047
|
| 35 |
+
Macro F1 = 0.8673309690295347
|
| 36 |
+
VERB
|
| 37 |
+
Accuracy = 0.8959731543624161
|
| 38 |
+
Weighted Recall = 0.8959731543624161
|
| 39 |
+
Weighted Precision = 0.896133741888969
|
| 40 |
+
Weighted F1 = 0.8959626105073482
|
| 41 |
+
Macro Recall = 0.8959731543624161
|
| 42 |
+
Macro Precision = 0.896133741888969
|
| 43 |
+
Macro F1 = 0.8959626105073484
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"do_lower_case": false, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "tokenizer_file": "/home/hh2/.cache/huggingface/transformers/75be22d7750034989358861e325977feda47740e1c3f8a4dc1cb73570aad843e.2b9a196704f2f183fe3f4b48d6e662dba8203fdcb3346bfa896831378edf6f97", "name_or_path": "bert-large-cased", "tokenizer_class": "BertTokenizer"}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28823c3c77f4a50d0e993c24862c6823d96d5a3a8faa57f57ba6e93a25d5dda0
|
| 3 |
+
size 2811
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|