Initial upload
Browse files- added_tokens.json +1 -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.1676955697.s199.uppmax.uu.se.54741.0 +3 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"[SPAN]": 30522}
|
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-base-uncased"
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
train_file: "./data/train.json"
|
| 6 |
+
|
| 7 |
+
dev_file: "./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: 64
|
| 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: 8
|
| 35 |
+
|
| 36 |
+
per_gpu_eval_batch_size: 8
|
| 37 |
+
|
| 38 |
+
learning_rate: !!float 3e-5
|
| 39 |
+
|
| 40 |
+
# Number of updates steps to accumulate before performing a backward/update pass.
|
| 41 |
+
gradient_accumulation_steps: 1
|
| 42 |
+
|
| 43 |
+
weight_decay: 0.0
|
| 44 |
+
|
| 45 |
+
adam_epsilon: !!float 1e-8
|
| 46 |
+
|
| 47 |
+
max_grad_norm: 1.0
|
| 48 |
+
|
| 49 |
+
num_epochs: 5.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: 200
|
| 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.1
|
| 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/best-checkpoint",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForIdentificationClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"class_loss_weight": 0.1,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"impossible_strategy": "ignore",
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 3072,
|
| 15 |
+
"layer_norm_eps": 1e-12,
|
| 16 |
+
"max_position_embeddings": 512,
|
| 17 |
+
"model_type": "bert",
|
| 18 |
+
"num_attention_heads": 12,
|
| 19 |
+
"num_hidden_layers": 12,
|
| 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:12e2951142577a28db3d3abb5fc5b7d5050a4f7503826998af749b642eb16e3a
|
| 3 |
+
size 438035308
|
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.1676955697.s199.uppmax.uu.se.54741.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76efb59497a331188aeb83331204c1278e942f6798842877256334f2711338af
|
| 3 |
+
size 8652318
|
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/534479488c54aeaf9c3406f647aa2ec13648c06771ffe269edabebd4c412da1d.7f2721073f19841be16f41b0a70b600ca6b880c8f3df6f3535cbc704371bdfa4", "name_or_path": "bert-base-uncased"}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|