nguyennghia0902
commited on
Commit
•
c56b9f6
1
Parent(s):
ecf1ff5
Upload TFElectraForQuestionAnswering
Browse files- README.md +67 -0
- config.json +29 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google/electra-small-discriminator
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: textmining_proj02_electra
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# textmining_proj02_electra
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [google/electra-small-discriminator](https://huggingface.co/google/electra-small-discriminator) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 2.0145
|
19 |
+
- Train End Logits Accuracy: 0.5186
|
20 |
+
- Train Start Logits Accuracy: 0.4898
|
21 |
+
- Validation Loss: 1.7837
|
22 |
+
- Validation End Logits Accuracy: 0.5643
|
23 |
+
- Validation Start Logits Accuracy: 0.5514
|
24 |
+
- Epoch: 9
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- 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': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 15630, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
44 |
+
- training_precision: float32
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Train Loss | Train End Logits Accuracy | Train Start Logits Accuracy | Validation Loss | Validation End Logits Accuracy | Validation Start Logits Accuracy | Epoch |
|
49 |
+
|:----------:|:-------------------------:|:---------------------------:|:---------------:|:------------------------------:|:--------------------------------:|:-----:|
|
50 |
+
| 3.5498 | 0.2455 | 0.2154 | 2.7762 | 0.3625 | 0.3353 | 0 |
|
51 |
+
| 2.7913 | 0.3657 | 0.3291 | 2.5014 | 0.4105 | 0.3950 | 1 |
|
52 |
+
| 2.5710 | 0.4032 | 0.3725 | 2.2847 | 0.4635 | 0.4409 | 2 |
|
53 |
+
| 2.4125 | 0.4377 | 0.4076 | 2.1311 | 0.4904 | 0.4761 | 3 |
|
54 |
+
| 2.2918 | 0.4641 | 0.4348 | 2.0155 | 0.5161 | 0.5063 | 4 |
|
55 |
+
| 2.1978 | 0.4833 | 0.4512 | 1.9319 | 0.5343 | 0.5214 | 5 |
|
56 |
+
| 2.1306 | 0.4960 | 0.4664 | 1.8634 | 0.5505 | 0.5352 | 6 |
|
57 |
+
| 2.0801 | 0.5018 | 0.4755 | 1.8229 | 0.5568 | 0.5457 | 7 |
|
58 |
+
| 2.0404 | 0.5139 | 0.4837 | 1.7963 | 0.5611 | 0.5488 | 8 |
|
59 |
+
| 2.0145 | 0.5186 | 0.4898 | 1.7837 | 0.5643 | 0.5514 | 9 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.39.3
|
65 |
+
- TensorFlow 2.15.0
|
66 |
+
- Datasets 2.18.0
|
67 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/electra-small-discriminator",
|
3 |
+
"architectures": [
|
4 |
+
"ElectraForQuestionAnswering"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"embedding_size": 128,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 256,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 1024,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "electra",
|
17 |
+
"num_attention_heads": 4,
|
18 |
+
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"position_embedding_type": "absolute",
|
21 |
+
"summary_activation": "gelu",
|
22 |
+
"summary_last_dropout": 0.1,
|
23 |
+
"summary_type": "first",
|
24 |
+
"summary_use_proj": true,
|
25 |
+
"transformers_version": "4.39.3",
|
26 |
+
"type_vocab_size": 2,
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 30522
|
29 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6232c874e127f273a1e9f8bf21a5c3c59b170f5271cf52e23da03c22c0e07414
|
3 |
+
size 54221088
|