add model
Browse files- .gitignore +1 -0
- README.md +67 -0
- config.json +24 -0
- pytorch_model.bin +3 -0
- runs/Sep01_00-46-56_ab001347a7bd/1630457228.8587787/events.out.tfevents.1630457228.ab001347a7bd.88.1 +3 -0
- runs/Sep01_00-46-56_ab001347a7bd/events.out.tfevents.1630457228.ab001347a7bd.88.0 +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- squad
|
7 |
+
model-index:
|
8 |
+
- name: distilbert-base-uncased-finetuned-squad
|
9 |
+
results:
|
10 |
+
- task:
|
11 |
+
name: Question Answering
|
12 |
+
type: question-answering
|
13 |
+
dataset:
|
14 |
+
name: squad
|
15 |
+
type: squad
|
16 |
+
args: plain_text
|
17 |
+
---
|
18 |
+
|
19 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
20 |
+
should probably proofread and complete it, then remove this comment. -->
|
21 |
+
|
22 |
+
# distilbert-base-uncased-finetuned-squad
|
23 |
+
|
24 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the squad dataset.
|
25 |
+
It achieves the following results on the evaluation set:
|
26 |
+
- Loss: 1.1646
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 2e-05
|
46 |
+
- train_batch_size: 16
|
47 |
+
- eval_batch_size: 16
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 3
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
56 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
57 |
+
| 1.2267 | 1.0 | 5533 | 1.1723 |
|
58 |
+
| 0.9579 | 2.0 | 11066 | 1.1223 |
|
59 |
+
| 0.772 | 3.0 | 16599 | 1.1646 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.10.0
|
65 |
+
- Pytorch 1.9.0+cu102
|
66 |
+
- Datasets 1.11.0
|
67 |
+
- Tokenizers 0.10.3
|
config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
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 |
+
"pad_token_id": 0,
|
17 |
+
"qa_dropout": 0.1,
|
18 |
+
"seq_classif_dropout": 0.2,
|
19 |
+
"sinusoidal_pos_embds": false,
|
20 |
+
"tie_weights_": true,
|
21 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.10.0",
|
23 |
+
"vocab_size": 30522
|
24 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:799f2daf6091e7de1e347791c9d55842e2a3ccb53d95656c2a4bebb2cfa3a711
|
3 |
+
size 265497077
|
runs/Sep01_00-46-56_ab001347a7bd/1630457228.8587787/events.out.tfevents.1630457228.ab001347a7bd.88.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8611906fc5714be1496e4dad05d79e134ba313afc90337ca495b105fada2f5a
|
3 |
+
size 4206
|
runs/Sep01_00-46-56_ab001347a7bd/events.out.tfevents.1630457228.ab001347a7bd.88.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:67a37bcd758b95d68e56de52a6b332a19d78a3c68b517ecf2be887d1fde91586
|
3 |
+
size 9217
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
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, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilbert-base-uncased", "tokenizer_class": "DistilBertTokenizer"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9d2bb800acc3ea62a44c2e0587af3978756f5984922be3f7ed69e89faead2ae9
|
3 |
+
size 2671
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|