add model
Browse files- .gitignore +1 -0
- README.md +80 -0
- config.json +38 -0
- pytorch_model.bin +3 -0
- runs/Aug30_22-46-37_3eb35ec19584/1630363609.9186647/events.out.tfevents.1630363609.3eb35ec19584.76.1 +3 -0
- runs/Aug30_22-46-37_3eb35ec19584/events.out.tfevents.1630363609.3eb35ec19584.76.0 +3 -0
- runs/Aug30_22-46-37_3eb35ec19584/events.out.tfevents.1630363678.3eb35ec19584.76.2 +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,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- ingredients_yes_no
|
7 |
+
metrics:
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
- f1
|
11 |
+
- accuracy
|
12 |
+
model_index:
|
13 |
+
- name: distilbert-base-uncased-finetuned-ingredients
|
14 |
+
results:
|
15 |
+
- task:
|
16 |
+
name: Token Classification
|
17 |
+
type: token-classification
|
18 |
+
dataset:
|
19 |
+
name: ingredients_yes_no
|
20 |
+
type: ingredients_yes_no
|
21 |
+
args: IngredientsYesNo
|
22 |
+
metric:
|
23 |
+
name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.9918144611186903
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# distilbert-base-uncased-finetuned-ingredients
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the ingredients_yes_no dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.0264
|
36 |
+
- Precision: 0.9926
|
37 |
+
- Recall: 1.0
|
38 |
+
- F1: 0.9963
|
39 |
+
- Accuracy: 0.9918
|
40 |
+
|
41 |
+
## Model description
|
42 |
+
|
43 |
+
More information needed
|
44 |
+
|
45 |
+
## Intended uses & limitations
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Training and evaluation data
|
50 |
+
|
51 |
+
More information needed
|
52 |
+
|
53 |
+
## Training procedure
|
54 |
+
|
55 |
+
### Training hyperparameters
|
56 |
+
|
57 |
+
The following hyperparameters were used during training:
|
58 |
+
- learning_rate: 2e-05
|
59 |
+
- train_batch_size: 16
|
60 |
+
- eval_batch_size: 16
|
61 |
+
- seed: 42
|
62 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
63 |
+
- lr_scheduler_type: linear
|
64 |
+
- num_epochs: 3
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
69 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
70 |
+
| No log | 1.0 | 170 | 0.0584 | 0.9739 | 0.9942 | 0.9839 | 0.9804 |
|
71 |
+
| No log | 2.0 | 340 | 0.0423 | 0.9861 | 1.0 | 0.9930 | 0.9870 |
|
72 |
+
| 0.123 | 3.0 | 510 | 0.0264 | 0.9926 | 1.0 | 0.9963 | 0.9918 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.9.2
|
78 |
+
- Pytorch 1.9.0+cu102
|
79 |
+
- Datasets 1.11.0
|
80 |
+
- Tokenizers 0.10.3
|
config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForTokenClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"id2label": {
|
12 |
+
"0": "LABEL_0",
|
13 |
+
"1": "LABEL_1",
|
14 |
+
"2": "LABEL_2",
|
15 |
+
"3": "LABEL_3",
|
16 |
+
"4": "LABEL_4"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"label2id": {
|
20 |
+
"LABEL_0": 0,
|
21 |
+
"LABEL_1": 1,
|
22 |
+
"LABEL_2": 2,
|
23 |
+
"LABEL_3": 3,
|
24 |
+
"LABEL_4": 4
|
25 |
+
},
|
26 |
+
"max_position_embeddings": 512,
|
27 |
+
"model_type": "distilbert",
|
28 |
+
"n_heads": 12,
|
29 |
+
"n_layers": 6,
|
30 |
+
"pad_token_id": 0,
|
31 |
+
"qa_dropout": 0.1,
|
32 |
+
"seq_classif_dropout": 0.2,
|
33 |
+
"sinusoidal_pos_embds": false,
|
34 |
+
"tie_weights_": true,
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.9.2",
|
37 |
+
"vocab_size": 30522
|
38 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3b47ac6ccbadcc3d6e28cfa24c71a86c2dda96a74ead3ebf96ff89c5f16314a
|
3 |
+
size 265506293
|
runs/Aug30_22-46-37_3eb35ec19584/1630363609.9186647/events.out.tfevents.1630363609.3eb35ec19584.76.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73fe14e984f7b4bc6b76c92e898abe401e0501d24076fc919c57d15019efbfe2
|
3 |
+
size 4230
|
runs/Aug30_22-46-37_3eb35ec19584/events.out.tfevents.1630363609.3eb35ec19584.76.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77edcfdb20dc8a10479340f4e3b7d33222c69fc6b482a8e50fcd894a34bf8a50
|
3 |
+
size 5035
|
runs/Aug30_22-46-37_3eb35ec19584/events.out.tfevents.1630363678.3eb35ec19584.76.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ebd06a4c19dabafad6e3493ab6ea38944744e789d91393300a6223f301713a81
|
3 |
+
size 512
|
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:2b1485e584c7edb475c741b835e42f64846a3b590af723e57d8dc464b3101eb4
|
3 |
+
size 2671
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|