Commit
·
70733f6
1
Parent(s):
73391a6
End of training
Browse files- README.md +70 -0
- config.json +59 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +13 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: distilbert-base-multilingual-cased
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- precision
|
| 8 |
+
- recall
|
| 9 |
+
- f1
|
| 10 |
+
- accuracy
|
| 11 |
+
model-index:
|
| 12 |
+
- name: BERT_B08
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
# BERT_B08
|
| 20 |
+
|
| 21 |
+
This model is a fine-tuned version of [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on the None dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.3054
|
| 24 |
+
- Precision: 0.6335
|
| 25 |
+
- Recall: 0.6849
|
| 26 |
+
- F1: 0.6582
|
| 27 |
+
- Accuracy: 0.9094
|
| 28 |
+
|
| 29 |
+
## Model description
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Intended uses & limitations
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training and evaluation data
|
| 38 |
+
|
| 39 |
+
More information needed
|
| 40 |
+
|
| 41 |
+
## Training procedure
|
| 42 |
+
|
| 43 |
+
### Training hyperparameters
|
| 44 |
+
|
| 45 |
+
The following hyperparameters were used during training:
|
| 46 |
+
- learning_rate: 4e-05
|
| 47 |
+
- train_batch_size: 16
|
| 48 |
+
- eval_batch_size: 16
|
| 49 |
+
- seed: 42
|
| 50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 51 |
+
- lr_scheduler_type: linear
|
| 52 |
+
- num_epochs: 5
|
| 53 |
+
|
| 54 |
+
### Training results
|
| 55 |
+
|
| 56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 58 |
+
| 0.3792 | 1.0 | 92 | 0.3446 | 0.6004 | 0.5913 | 0.5958 | 0.8982 |
|
| 59 |
+
| 0.2782 | 2.0 | 184 | 0.2911 | 0.6485 | 0.6664 | 0.6573 | 0.9110 |
|
| 60 |
+
| 0.1736 | 3.0 | 276 | 0.2886 | 0.6570 | 0.6730 | 0.6649 | 0.9123 |
|
| 61 |
+
| 0.1434 | 4.0 | 368 | 0.2974 | 0.6481 | 0.6763 | 0.6619 | 0.9109 |
|
| 62 |
+
| 0.1422 | 5.0 | 460 | 0.3054 | 0.6335 | 0.6849 | 0.6582 | 0.9094 |
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
### Framework versions
|
| 66 |
+
|
| 67 |
+
- Transformers 4.33.3
|
| 68 |
+
- Pytorch 2.0.1+cu117
|
| 69 |
+
- Datasets 2.14.4
|
| 70 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "distilbert-base-multilingual-cased",
|
| 3 |
+
"activation": "gelu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"DistilBertForTokenClassification"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.1,
|
| 8 |
+
"dim": 768,
|
| 9 |
+
"dropout": 0.1,
|
| 10 |
+
"hidden_dim": 3072,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "O",
|
| 13 |
+
"1": "B-Organisation",
|
| 14 |
+
"2": "I-Organisation",
|
| 15 |
+
"3": "B-Person",
|
| 16 |
+
"4": "I-Person",
|
| 17 |
+
"5": "B-Location",
|
| 18 |
+
"6": "I-Location",
|
| 19 |
+
"7": "B-Money",
|
| 20 |
+
"8": "I-Money",
|
| 21 |
+
"9": "B-Temporal",
|
| 22 |
+
"10": "I-Temporal",
|
| 23 |
+
"11": "B-Weapon",
|
| 24 |
+
"12": "I-Weapon",
|
| 25 |
+
"13": "B-MilitaryPlatform",
|
| 26 |
+
"14": "I-MilitaryPlatform"
|
| 27 |
+
},
|
| 28 |
+
"initializer_range": 0.02,
|
| 29 |
+
"label2id": {
|
| 30 |
+
"B-Location": 5,
|
| 31 |
+
"B-MilitaryPlatform": 13,
|
| 32 |
+
"B-Money": 7,
|
| 33 |
+
"B-Organisation": 1,
|
| 34 |
+
"B-Person": 3,
|
| 35 |
+
"B-Temporal": 9,
|
| 36 |
+
"B-Weapon": 11,
|
| 37 |
+
"I-Location": 6,
|
| 38 |
+
"I-MilitaryPlatform": 14,
|
| 39 |
+
"I-Money": 8,
|
| 40 |
+
"I-Organisation": 2,
|
| 41 |
+
"I-Person": 4,
|
| 42 |
+
"I-Temporal": 10,
|
| 43 |
+
"I-Weapon": 12,
|
| 44 |
+
"O": 0
|
| 45 |
+
},
|
| 46 |
+
"max_position_embeddings": 512,
|
| 47 |
+
"model_type": "distilbert",
|
| 48 |
+
"n_heads": 12,
|
| 49 |
+
"n_layers": 6,
|
| 50 |
+
"output_past": true,
|
| 51 |
+
"pad_token_id": 0,
|
| 52 |
+
"qa_dropout": 0.1,
|
| 53 |
+
"seq_classif_dropout": 0.2,
|
| 54 |
+
"sinusoidal_pos_embds": false,
|
| 55 |
+
"tie_weights_": true,
|
| 56 |
+
"torch_dtype": "float32",
|
| 57 |
+
"transformers_version": "4.33.3",
|
| 58 |
+
"vocab_size": 119547
|
| 59 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95fe907c9757dd7aef2b667c2f0cd80e7c04e0f050d241432855af0af5ca847d
|
| 3 |
+
size 539017317
|
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,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_lower_case": false,
|
| 5 |
+
"mask_token": "[MASK]",
|
| 6 |
+
"model_max_length": 512,
|
| 7 |
+
"pad_token": "[PAD]",
|
| 8 |
+
"sep_token": "[SEP]",
|
| 9 |
+
"strip_accents": null,
|
| 10 |
+
"tokenize_chinese_chars": true,
|
| 11 |
+
"tokenizer_class": "DistilBertTokenizer",
|
| 12 |
+
"unk_token": "[UNK]"
|
| 13 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84d98745641b01e741aae4a1abbbe31c13377b88524a3c3272280720d0354f78
|
| 3 |
+
size 3963
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|