Add model weights and configuration
Browse files- added_tokens.json +1 -0
- best-checkpoint/config.json +26 -0
- best-checkpoint/optimizer.pt +3 -0
- best-checkpoint/pytorch_model.bin +3 -0
- best-checkpoint/scheduler.pt +3 -0
- best-checkpoint/trainer_info.json +5 -0
- conf.yml +93 -0
- config.json +26 -0
- metrics.json +0 -0
- pytorch_model.bin +3 -0
- result.json +0 -0
- special_tokens_map.json +1 -0
- tensorboard/events.out.tfevents.1678368633.s176.uppmax.uu.se.41762.0 +3 -0
- tensorboard/events.out.tfevents.1678412827.s192.uppmax.uu.se.14240.0 +3 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"[SPAN]": 30522}
|
best-checkpoint/config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "bert-large-uncased-whole-word-masking",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForIdentificationClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"class_loss_weight": 0.05,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"impossible_strategy": "ignore",
|
| 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 |
+
"position_embedding_type": "absolute",
|
| 22 |
+
"transformers_version": "4.5.1",
|
| 23 |
+
"type_vocab_size": 2,
|
| 24 |
+
"use_cache": true,
|
| 25 |
+
"vocab_size": 30523
|
| 26 |
+
}
|
best-checkpoint/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0689866818365d7597971407b92d3c25f9f5402543255002d2532c16fe8c5506
|
| 3 |
+
size 2681422833
|
best-checkpoint/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f33922339465b9da2039ccc18964027e88051022c5ce2e7752bc747ac025dbe7
|
| 3 |
+
size 1340759200
|
best-checkpoint/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5e2e6c7c5515a74d37758c2476eff025e720623140ac8ac01c8b521a3cc34e6
|
| 3 |
+
size 623
|
best-checkpoint/trainer_info.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"global_step": 15000,
|
| 3 |
+
"best_loss": 0.03806677039561597,
|
| 4 |
+
"task": "identification_classification"
|
| 5 |
+
}
|
conf.yml
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Path to pretrained model or model identifier from huggingface.co/models
|
| 2 |
+
model_name_or_path: "bert-large-uncased-whole-word-masking"
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
train_file: "../contract-nli-bert/data/train.json"
|
| 6 |
+
|
| 7 |
+
dev_file: "../contract-nli-bert/data/dev.json"
|
| 8 |
+
|
| 9 |
+
# Pretrained config name or path if not the same as model_name
|
| 10 |
+
config_name: null
|
| 11 |
+
|
| 12 |
+
# Pretrained tokenizer name or path if not the same as model_name
|
| 13 |
+
tokenizer_name: null
|
| 14 |
+
|
| 15 |
+
# Directory to save downloaded pretrained model
|
| 16 |
+
# Default to ~/.cache/huggingface/transformers
|
| 17 |
+
cache_dir: null
|
| 18 |
+
|
| 19 |
+
# The maximum total input sequence length.
|
| 20 |
+
# Sequence longer max_seq_length will be splitted into different chunks.
|
| 21 |
+
max_seq_length: 512
|
| 22 |
+
|
| 23 |
+
# How many tokens should the first span have in each chunk.
|
| 24 |
+
# Note that it may not be honored when the span is too long.
|
| 25 |
+
doc_stride: 128
|
| 26 |
+
|
| 27 |
+
# The maximum number of tokens for the hypothesis.
|
| 28 |
+
# Hypotheses longer than this will be truncated.
|
| 29 |
+
max_query_length: 256
|
| 30 |
+
|
| 31 |
+
# Set this flag if you are using an uncased model.
|
| 32 |
+
do_lower_case: true
|
| 33 |
+
|
| 34 |
+
per_gpu_train_batch_size: 2
|
| 35 |
+
|
| 36 |
+
per_gpu_eval_batch_size: 2
|
| 37 |
+
|
| 38 |
+
learning_rate: !!float 2e-5
|
| 39 |
+
|
| 40 |
+
# Number of updates steps to accumulate before performing a backward/update pass.
|
| 41 |
+
gradient_accumulation_steps: 3
|
| 42 |
+
|
| 43 |
+
weight_decay: 0.0
|
| 44 |
+
|
| 45 |
+
adam_epsilon: !!float 1e-8
|
| 46 |
+
|
| 47 |
+
max_grad_norm: 1.0
|
| 48 |
+
|
| 49 |
+
num_epochs: 3.0
|
| 50 |
+
|
| 51 |
+
# If set, total number of training steps to perform. Conflicts with num_epochs.
|
| 52 |
+
max_steps: null
|
| 53 |
+
|
| 54 |
+
# Linear warmup over warmup_steps
|
| 55 |
+
warmup_steps: 1000
|
| 56 |
+
|
| 57 |
+
# language id of input for language-specific xlm models (see tokenization_xlm.PRETRAINED_INIT_CONFIGURATION)
|
| 58 |
+
lang_id: null
|
| 59 |
+
|
| 60 |
+
# Validate every n steps
|
| 61 |
+
valid_steps: 3000
|
| 62 |
+
|
| 63 |
+
early_stopping: true
|
| 64 |
+
|
| 65 |
+
# save model every n steps
|
| 66 |
+
save_steps: -1
|
| 67 |
+
|
| 68 |
+
seed: 42
|
| 69 |
+
|
| 70 |
+
# Whether to use 16-bit (mixed) precision (through NVIDIA apex) instead of 32-bit
|
| 71 |
+
fp16: false
|
| 72 |
+
|
| 73 |
+
# For fp16: Apex AMP optimization level selected in ['O0', 'O1', 'O2', and 'O3'].
|
| 74 |
+
# See details at https://nvidia.github.io/apex/amp.html
|
| 75 |
+
fp16_opt_level: "O1"
|
| 76 |
+
|
| 77 |
+
# Make it true if you have a gpu but you don't want to use it
|
| 78 |
+
no_cuda: false
|
| 79 |
+
|
| 80 |
+
# Overwrite the cached training and evaluation sets
|
| 81 |
+
overwrite_cache: false
|
| 82 |
+
|
| 83 |
+
weight_class_probs_by_span_probs: true
|
| 84 |
+
|
| 85 |
+
# class loss is multiplied by this value
|
| 86 |
+
class_loss_weight: 0.05
|
| 87 |
+
|
| 88 |
+
# Either of 'identification_classification' or 'classification'
|
| 89 |
+
task: "identification_classification"
|
| 90 |
+
|
| 91 |
+
# Whether to treat hypothesis (query) texts as a symbol instead of feeding the
|
| 92 |
+
# hypothesis descriptions
|
| 93 |
+
symbol_based_hypothesis: false
|
config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "./output_large/best-checkpoint",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForIdentificationClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"class_loss_weight": 0.05,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"impossible_strategy": "ignore",
|
| 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 |
+
"position_embedding_type": "absolute",
|
| 22 |
+
"transformers_version": "4.5.1",
|
| 23 |
+
"type_vocab_size": 2,
|
| 24 |
+
"use_cache": true,
|
| 25 |
+
"vocab_size": 30523
|
| 26 |
+
}
|
metrics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d45e0463492ed49470b414e258e9cd4e285c8b7ef76cc18f3f687d19f98f10f
|
| 3 |
+
size 1340759362
|
result.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "additional_special_tokens": ["[SPAN]"]}
|
tensorboard/events.out.tfevents.1678368633.s176.uppmax.uu.se.41762.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c50125b60a6ef21ac2e7b6e32e5b5f0bb69c8d933601b166c55a033b37517007
|
| 3 |
+
size 40
|
tensorboard/events.out.tfevents.1678412827.s192.uppmax.uu.se.14240.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2eddd66a932f414bb184f057370d4b3c0025f5d11c042244864b6c6f8edc982
|
| 3 |
+
size 7872369
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"do_lower_case": true, "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/yiukei/.cache/huggingface/transformers/33ee0bae279476c742373ecfd5a127d27372fbb9e2f5a84ccb38bbd72775f296.7f2721073f19841be16f41b0a70b600ca6b880c8f3df6f3535cbc704371bdfa4", "name_or_path": "bert-large-uncased-whole-word-masking"}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|