Adapting `google-bert/bert-base-uncased` for `wnut_17`.
Browse files- README.md +81 -0
- adapter_config.json +32 -0
- adapter_model.safetensors +3 -0
- runs/Aug31_23-42-48_3dc975fa5721/events.out.tfevents.1725147769.3dc975fa5721.3366.0 +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,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: google-bert/bert-base-uncased
|
3 |
+
datasets:
|
4 |
+
- wnut_17
|
5 |
+
library_name: peft
|
6 |
+
license: apache-2.0
|
7 |
+
metrics:
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
- f1
|
11 |
+
- accuracy
|
12 |
+
tags:
|
13 |
+
- trl
|
14 |
+
- sft
|
15 |
+
- generated_from_trainer
|
16 |
+
model-index:
|
17 |
+
- name: bert-base-uncased-wnut_17
|
18 |
+
results: []
|
19 |
+
---
|
20 |
+
|
21 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
22 |
+
should probably proofread and complete it, then remove this comment. -->
|
23 |
+
|
24 |
+
# bert-base-uncased-wnut_17
|
25 |
+
|
26 |
+
This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on the wnut_17 dataset.
|
27 |
+
It achieves the following results on the evaluation set:
|
28 |
+
- Loss: 0.2870
|
29 |
+
- Precision: 0.4802
|
30 |
+
- Recall: 0.2132
|
31 |
+
- F1: 0.2953
|
32 |
+
- Accuracy: 0.9366
|
33 |
+
|
34 |
+
## Model description
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Intended uses & limitations
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training and evaluation data
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training procedure
|
47 |
+
|
48 |
+
### Training hyperparameters
|
49 |
+
|
50 |
+
The following hyperparameters were used during training:
|
51 |
+
- learning_rate: 5e-05
|
52 |
+
- train_batch_size: 16
|
53 |
+
- eval_batch_size: 16
|
54 |
+
- seed: 42
|
55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
56 |
+
- lr_scheduler_type: linear
|
57 |
+
- num_epochs: 10
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
62 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
63 |
+
| No log | 1.0 | 213 | 0.4305 | 1.0 | 0.0 | 0.0 | 0.9256 |
|
64 |
+
| No log | 2.0 | 426 | 0.3568 | 0.0 | 0.0 | 0.0 | 0.9256 |
|
65 |
+
| 0.496 | 3.0 | 639 | 0.3379 | 0.3495 | 0.0334 | 0.0609 | 0.9277 |
|
66 |
+
| 0.496 | 4.0 | 852 | 0.3166 | 0.3824 | 0.1205 | 0.1832 | 0.9321 |
|
67 |
+
| 0.1935 | 5.0 | 1065 | 0.3034 | 0.3907 | 0.1705 | 0.2374 | 0.9343 |
|
68 |
+
| 0.1935 | 6.0 | 1278 | 0.2956 | 0.4313 | 0.1863 | 0.2602 | 0.9353 |
|
69 |
+
| 0.1935 | 7.0 | 1491 | 0.2941 | 0.4700 | 0.1891 | 0.2697 | 0.9357 |
|
70 |
+
| 0.1717 | 8.0 | 1704 | 0.2960 | 0.4874 | 0.1965 | 0.2801 | 0.9363 |
|
71 |
+
| 0.1717 | 9.0 | 1917 | 0.2882 | 0.4797 | 0.2076 | 0.2898 | 0.9364 |
|
72 |
+
| 0.1594 | 10.0 | 2130 | 0.2870 | 0.4802 | 0.2132 | 0.2953 | 0.9366 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- PEFT 0.12.1.dev0
|
78 |
+
- Transformers 4.45.0.dev0
|
79 |
+
- Pytorch 2.4.0+cu121
|
80 |
+
- Datasets 2.21.0
|
81 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "google-bert/bert-base-uncased",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 16,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": [
|
18 |
+
"classifier",
|
19 |
+
"score"
|
20 |
+
],
|
21 |
+
"peft_type": "LORA",
|
22 |
+
"r": 8,
|
23 |
+
"rank_pattern": {},
|
24 |
+
"revision": null,
|
25 |
+
"target_modules": [
|
26 |
+
"value",
|
27 |
+
"query"
|
28 |
+
],
|
29 |
+
"task_type": "TOKEN_CLS",
|
30 |
+
"use_dora": false,
|
31 |
+
"use_rslora": false
|
32 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23806713665aa55c220be586bdd488f0620a604c3f63199e4e0e26c67cbe587d
|
3 |
+
size 1226516
|
runs/Aug31_23-42-48_3dc975fa5721/events.out.tfevents.1725147769.3dc975fa5721.3366.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72d37f1f8ed365f209b9589945e332c41fabc004c9423a694e29052261534e5f
|
3 |
+
size 11804
|
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": true,
|
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:f21120c19a7623c68dd39983a8a6e286d7da654da8d73e0264f1a261dde6564e
|
3 |
+
size 5496
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|