Upload TFBertForSequenceClassification
Browse files- README.md +59 -0
- config.json +78 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: bert-base-multilingual-cased
|
5 |
+
tags:
|
6 |
+
- generated_from_keras_callback
|
7 |
+
model-index:
|
8 |
+
- name: bert-nandha
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
13 |
+
probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# bert-nandha
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Train Loss: 0.0745
|
20 |
+
- Train Accuracy: 0.9845
|
21 |
+
- Validation Loss: 0.0733
|
22 |
+
- Validation Accuracy: 0.9873
|
23 |
+
- Epoch: 2
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 5e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
43 |
+
- training_precision: float32
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|
48 |
+
|:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
|
49 |
+
| 0.2354 | 0.9629 | 0.0875 | 0.9858 | 0 |
|
50 |
+
| 0.0718 | 0.9864 | 0.0991 | 0.9821 | 1 |
|
51 |
+
| 0.0745 | 0.9845 | 0.0733 | 0.9873 | 2 |
|
52 |
+
|
53 |
+
|
54 |
+
### Framework versions
|
55 |
+
|
56 |
+
- Transformers 4.46.2
|
57 |
+
- TensorFlow 2.16.1
|
58 |
+
- Datasets 3.0.1
|
59 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "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": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5",
|
19 |
+
"6": "LABEL_6",
|
20 |
+
"7": "LABEL_7",
|
21 |
+
"8": "LABEL_8",
|
22 |
+
"9": "LABEL_9",
|
23 |
+
"10": "LABEL_10",
|
24 |
+
"11": "LABEL_11",
|
25 |
+
"12": "LABEL_12",
|
26 |
+
"13": "LABEL_13",
|
27 |
+
"14": "LABEL_14",
|
28 |
+
"15": "LABEL_15",
|
29 |
+
"16": "LABEL_16",
|
30 |
+
"17": "LABEL_17",
|
31 |
+
"18": "LABEL_18",
|
32 |
+
"19": "LABEL_19",
|
33 |
+
"20": "LABEL_20",
|
34 |
+
"21": "LABEL_21"
|
35 |
+
},
|
36 |
+
"initializer_range": 0.02,
|
37 |
+
"intermediate_size": 3072,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0,
|
40 |
+
"LABEL_1": 1,
|
41 |
+
"LABEL_10": 10,
|
42 |
+
"LABEL_11": 11,
|
43 |
+
"LABEL_12": 12,
|
44 |
+
"LABEL_13": 13,
|
45 |
+
"LABEL_14": 14,
|
46 |
+
"LABEL_15": 15,
|
47 |
+
"LABEL_16": 16,
|
48 |
+
"LABEL_17": 17,
|
49 |
+
"LABEL_18": 18,
|
50 |
+
"LABEL_19": 19,
|
51 |
+
"LABEL_2": 2,
|
52 |
+
"LABEL_20": 20,
|
53 |
+
"LABEL_21": 21,
|
54 |
+
"LABEL_3": 3,
|
55 |
+
"LABEL_4": 4,
|
56 |
+
"LABEL_5": 5,
|
57 |
+
"LABEL_6": 6,
|
58 |
+
"LABEL_7": 7,
|
59 |
+
"LABEL_8": 8,
|
60 |
+
"LABEL_9": 9
|
61 |
+
},
|
62 |
+
"layer_norm_eps": 1e-12,
|
63 |
+
"max_position_embeddings": 512,
|
64 |
+
"model_type": "bert",
|
65 |
+
"num_attention_heads": 12,
|
66 |
+
"num_hidden_layers": 12,
|
67 |
+
"pad_token_id": 0,
|
68 |
+
"pooler_fc_size": 768,
|
69 |
+
"pooler_num_attention_heads": 12,
|
70 |
+
"pooler_num_fc_layers": 3,
|
71 |
+
"pooler_size_per_head": 128,
|
72 |
+
"pooler_type": "first_token_transform",
|
73 |
+
"position_embedding_type": "absolute",
|
74 |
+
"transformers_version": "4.46.2",
|
75 |
+
"type_vocab_size": 2,
|
76 |
+
"use_cache": true,
|
77 |
+
"vocab_size": 119547
|
78 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22ae5f496639cb47a2afb5eb57c4a3ba6bde442767b3fa49557d26208ec0a141
|
3 |
+
size 711769448
|