Fine tuned BERT sequence classification model for LABR dataset
Browse files- config.json +29 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +1 -0
- tf_model.h5 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- trainer_state.json +52 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/jupyter/hub_models/bert-labr-unbalanced",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 1024,
|
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 |
+
"output_past": true,
|
21 |
+
"pad_token_id": 0,
|
22 |
+
"position_embedding_type": "absolute",
|
23 |
+
"problem_type": "single_label_classification",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "4.16.2",
|
26 |
+
"type_vocab_size": 2,
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 32000
|
29 |
+
}
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87aabbd86414ad4d3753e19d2448ad4f5b38b9856dba6d019bc776d578cc1149
|
3 |
+
size 2693488029
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33fd65aad1add73f6284ea034c4c7fe8f967c1e709f833c05310911d292ae683
|
3 |
+
size 1346791341
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e8bb10dd217581b5de9785a605f84148982fbf3839b866bac53dffde9fb8e8ff
|
3 |
+
size 14503
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4534f62a647241efea544e23d4971a2430e57b93deba518536bb98b34471dc01
|
3 |
+
size 623
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2de86a348889fd6fa7fa24799376198822b7699608f3b74a7ebb25c2b794fb83
|
3 |
+
size 1347181680
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": null, "full_tokenizer_file": null, "name_or_path": "asafaya/bert-large-arabic", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
|
trainer_state.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.20763197541236877,
|
3 |
+
"best_model_checkpoint": "BERT-LABR-unbalanced/checkpoint-1000",
|
4 |
+
"epoch": 0.9784735812133072,
|
5 |
+
"global_step": 1000,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 0.49,
|
12 |
+
"learning_rate": 8.369210697977822e-06,
|
13 |
+
"loss": 0.2714,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.49,
|
18 |
+
"eval_accuracy": 0.908311910882605,
|
19 |
+
"eval_f1": 0.9456024402643619,
|
20 |
+
"eval_loss": 0.24122537672519684,
|
21 |
+
"eval_precision": 0.9419765591086673,
|
22 |
+
"eval_recall": 0.9492563429571304,
|
23 |
+
"eval_runtime": 109.0386,
|
24 |
+
"eval_samples_per_second": 74.918,
|
25 |
+
"eval_steps_per_second": 2.348,
|
26 |
+
"step": 500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.98,
|
30 |
+
"learning_rate": 6.738421395955643e-06,
|
31 |
+
"loss": 0.2258,
|
32 |
+
"step": 1000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 0.98,
|
36 |
+
"eval_accuracy": 0.9215326233321092,
|
37 |
+
"eval_f1": 0.9538483692130463,
|
38 |
+
"eval_loss": 0.20763197541236877,
|
39 |
+
"eval_precision": 0.9421134973687953,
|
40 |
+
"eval_recall": 0.9658792650918635,
|
41 |
+
"eval_runtime": 108.4256,
|
42 |
+
"eval_samples_per_second": 75.342,
|
43 |
+
"eval_steps_per_second": 2.361,
|
44 |
+
"step": 1000
|
45 |
+
}
|
46 |
+
],
|
47 |
+
"max_steps": 3066,
|
48 |
+
"num_train_epochs": 3,
|
49 |
+
"total_flos": 3727725453312000.0,
|
50 |
+
"trial_name": null,
|
51 |
+
"trial_params": null
|
52 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c9de0cb303693a02ac6331e86713810274f8cf6772a6ce97338e4749c1046b4
|
3 |
+
size 2991
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|