morten-j/fine_tuned_mBERT
Browse files- README.md +76 -0
- config.json +40 -0
- model.safetensors +3 -0
- runs/Apr15_15-02-52_a256-t4-04.srv.aau.dk/events.out.tfevents.1713186177.a256-t4-04.srv.aau.dk.34830.0 +3 -0
- runs/Apr15_15-02-52_a256-t4-04.srv.aau.dk/events.out.tfevents.1713186338.a256-t4-04.srv.aau.dk.34830.1 +3 -0
- runs/Apr16_09-06-18_nv-ai-03.srv.aau.dk/events.out.tfevents.1713251179.nv-ai-03.srv.aau.dk.3544529.0 +3 -0
- runs/Apr16_09-06-18_nv-ai-03.srv.aau.dk/events.out.tfevents.1713251251.nv-ai-03.srv.aau.dk.3544529.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google-bert/bert-base-multilingual-cased
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- f1
|
| 8 |
+
- precision
|
| 9 |
+
- recall
|
| 10 |
+
model-index:
|
| 11 |
+
- name: fine_tuned_bert
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
# fine_tuned_bert
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an unknown dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.1299
|
| 23 |
+
- F1: 0.8444
|
| 24 |
+
- F5: 0.8373
|
| 25 |
+
- Precision: 0.8636
|
| 26 |
+
- Recall: 0.8261
|
| 27 |
+
|
| 28 |
+
## Model description
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Intended uses & limitations
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training and evaluation data
|
| 37 |
+
|
| 38 |
+
More information needed
|
| 39 |
+
|
| 40 |
+
## Training procedure
|
| 41 |
+
|
| 42 |
+
### Training hyperparameters
|
| 43 |
+
|
| 44 |
+
The following hyperparameters were used during training:
|
| 45 |
+
- learning_rate: 5e-05
|
| 46 |
+
- train_batch_size: 64
|
| 47 |
+
- eval_batch_size: 64
|
| 48 |
+
- seed: 42
|
| 49 |
+
- distributed_type: multi-GPU
|
| 50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 51 |
+
- lr_scheduler_type: linear
|
| 52 |
+
- num_epochs: 10
|
| 53 |
+
- mixed_precision_training: Native AMP
|
| 54 |
+
|
| 55 |
+
### Training results
|
| 56 |
+
|
| 57 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | F5 | Precision | Recall |
|
| 58 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:---------:|:------:|
|
| 59 |
+
| No log | 1.0 | 33 | 0.3776 | 0.0 | 0.0 | 0.0 | 0.0 |
|
| 60 |
+
| No log | 2.0 | 66 | 0.2996 | 0.4 | 0.3359 | 0.8 | 0.2667 |
|
| 61 |
+
| No log | 3.0 | 99 | 0.2137 | 0.7273 | 0.7534 | 0.6667 | 0.8 |
|
| 62 |
+
| No log | 4.0 | 132 | 0.2161 | 0.6429 | 0.6258 | 0.6923 | 0.6 |
|
| 63 |
+
| No log | 5.0 | 165 | 0.2367 | 0.6154 | 0.5812 | 0.7273 | 0.5333 |
|
| 64 |
+
| No log | 6.0 | 198 | 0.1997 | 0.7451 | 0.6980 | 0.9048 | 0.6333 |
|
| 65 |
+
| No log | 7.0 | 231 | 0.2023 | 0.8000 | 0.8 | 0.8 | 0.8 |
|
| 66 |
+
| No log | 8.0 | 264 | 0.2011 | 0.8070 | 0.7911 | 0.8519 | 0.7667 |
|
| 67 |
+
| No log | 9.0 | 297 | 0.2196 | 0.7857 | 0.7648 | 0.8462 | 0.7333 |
|
| 68 |
+
| No log | 10.0 | 330 | 0.2509 | 0.7667 | 0.7667 | 0.7667 | 0.7667 |
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### Framework versions
|
| 72 |
+
|
| 73 |
+
- Transformers 4.38.2
|
| 74 |
+
- Pytorch 2.3.0a0+ebedce2
|
| 75 |
+
- Datasets 2.17.1
|
| 76 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "google-bert/bert-base-multilingual-cased",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 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": "NO_MATCH",
|
| 14 |
+
"1": "MATCH"
|
| 15 |
+
},
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"MATCH": 1,
|
| 20 |
+
"NO_MATCH": 0
|
| 21 |
+
},
|
| 22 |
+
"layer_norm_eps": 1e-12,
|
| 23 |
+
"max_position_embeddings": 512,
|
| 24 |
+
"model_type": "bert",
|
| 25 |
+
"num_attention_heads": 12,
|
| 26 |
+
"num_hidden_layers": 12,
|
| 27 |
+
"pad_token_id": 0,
|
| 28 |
+
"pooler_fc_size": 768,
|
| 29 |
+
"pooler_num_attention_heads": 12,
|
| 30 |
+
"pooler_num_fc_layers": 3,
|
| 31 |
+
"pooler_size_per_head": 128,
|
| 32 |
+
"pooler_type": "first_token_transform",
|
| 33 |
+
"position_embedding_type": "absolute",
|
| 34 |
+
"problem_type": "single_label_classification",
|
| 35 |
+
"torch_dtype": "float32",
|
| 36 |
+
"transformers_version": "4.38.2",
|
| 37 |
+
"type_vocab_size": 2,
|
| 38 |
+
"use_cache": true,
|
| 39 |
+
"vocab_size": 119547
|
| 40 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6419468d93b5db3d518b2e34cd051f682e0bc5817a64e724892ec9761e909e2c
|
| 3 |
+
size 711443456
|
runs/Apr15_15-02-52_a256-t4-04.srv.aau.dk/events.out.tfevents.1713186177.a256-t4-04.srv.aau.dk.34830.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdf1886184220167cee13417465ca618af575d80ee211b379b3e7da9404c0965
|
| 3 |
+
size 9894
|
runs/Apr15_15-02-52_a256-t4-04.srv.aau.dk/events.out.tfevents.1713186338.a256-t4-04.srv.aau.dk.34830.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b4da46271cd0c945b20fff2deac4c5da9ceec8a8fd876e66333690d2d33f455
|
| 3 |
+
size 506
|
runs/Apr16_09-06-18_nv-ai-03.srv.aau.dk/events.out.tfevents.1713251179.nv-ai-03.srv.aau.dk.3544529.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57e9872c93764dd75ddf60307310d2d385d9043c1337067f284f04e91fed75e0
|
| 3 |
+
size 9789
|
runs/Apr16_09-06-18_nv-ai-03.srv.aau.dk/events.out.tfevents.1713251251.nv-ai-03.srv.aau.dk.3544529.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f9d14cad31bc8c1056e75c5f6988e028a6b59031f8bbcf6d4958f3cc9c723ca
|
| 3 |
+
size 506
|
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,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": true,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": false,
|
| 47 |
+
"mask_token": "[MASK]",
|
| 48 |
+
"model_max_length": 512,
|
| 49 |
+
"pad_token": "[PAD]",
|
| 50 |
+
"sep_token": "[SEP]",
|
| 51 |
+
"strip_accents": null,
|
| 52 |
+
"tokenize_chinese_chars": true,
|
| 53 |
+
"tokenizer_class": "BertTokenizer",
|
| 54 |
+
"unk_token": "[UNK]"
|
| 55 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8458d0b4c7131a631dbec08b3fc5893f2e8d12cd0d4fd705696c396d91befbf2
|
| 3 |
+
size 4920
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|