Commit
路
26a7b98
1
Parent(s):
12d5ea2
Upload TFDistilBertForQuestionAnswering
Browse files- README.md +72 -0
- config.json +24 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-multilingual-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: transformers-qa-kaggle-tpu
|
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 |
+
# transformers-qa-kaggle-tpu
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.2138
|
19 |
+
- Train End Logits Accuracy: 0.9272
|
20 |
+
- Train Start Logits Accuracy: 0.9265
|
21 |
+
- Validation Loss: 4.0782
|
22 |
+
- Validation End Logits Accuracy: 0.4815
|
23 |
+
- Validation Start Logits Accuracy: 0.4488
|
24 |
+
- Epoch: 14
|
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': False, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 122160, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, '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 |
+
| 2.2397 | 0.4602 | 0.4288 | 2.0601 | 0.4944 | 0.4670 | 0 |
|
51 |
+
| 1.7080 | 0.5695 | 0.5404 | 2.0597 | 0.5098 | 0.4782 | 1 |
|
52 |
+
| 1.4423 | 0.6244 | 0.5975 | 2.0398 | 0.5124 | 0.4779 | 2 |
|
53 |
+
| 1.2221 | 0.6718 | 0.6455 | 2.1899 | 0.5121 | 0.4832 | 3 |
|
54 |
+
| 1.0321 | 0.7138 | 0.6920 | 2.2860 | 0.5067 | 0.4742 | 4 |
|
55 |
+
| 0.8740 | 0.7502 | 0.7307 | 2.4042 | 0.4981 | 0.4677 | 5 |
|
56 |
+
| 0.7420 | 0.7809 | 0.7666 | 2.6543 | 0.4954 | 0.4595 | 6 |
|
57 |
+
| 0.6254 | 0.8107 | 0.7988 | 2.7405 | 0.4938 | 0.4607 | 7 |
|
58 |
+
| 0.5325 | 0.8337 | 0.8255 | 3.0218 | 0.4911 | 0.4613 | 8 |
|
59 |
+
| 0.4537 | 0.8550 | 0.8491 | 3.1804 | 0.4917 | 0.4550 | 9 |
|
60 |
+
| 0.3860 | 0.8751 | 0.8707 | 3.4298 | 0.4880 | 0.4524 | 10 |
|
61 |
+
| 0.3284 | 0.8914 | 0.8890 | 3.5952 | 0.4826 | 0.4480 | 11 |
|
62 |
+
| 0.2844 | 0.9053 | 0.9033 | 3.6105 | 0.4856 | 0.4510 | 12 |
|
63 |
+
| 0.2462 | 0.9176 | 0.9151 | 3.8751 | 0.4785 | 0.4504 | 13 |
|
64 |
+
| 0.2138 | 0.9272 | 0.9265 | 4.0782 | 0.4815 | 0.4488 | 14 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.31.0.dev0
|
70 |
+
- TensorFlow 2.12.0
|
71 |
+
- Datasets 2.13.1
|
72 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-multilingual-cased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForQuestionAnswering"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"max_position_embeddings": 512,
|
13 |
+
"model_type": "distilbert",
|
14 |
+
"n_heads": 12,
|
15 |
+
"n_layers": 6,
|
16 |
+
"output_past": true,
|
17 |
+
"pad_token_id": 0,
|
18 |
+
"qa_dropout": 0.1,
|
19 |
+
"seq_classif_dropout": 0.2,
|
20 |
+
"sinusoidal_pos_embds": false,
|
21 |
+
"tie_weights_": true,
|
22 |
+
"transformers_version": "4.31.0.dev0",
|
23 |
+
"vocab_size": 119547
|
24 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d827e5849b70dfbafd600c27dfa28e32ba28b189f450df6999657812ae07fed
|
3 |
+
size 539068392
|