model update
Browse files- README.md +9 -9
- config.json +1 -1
- eval/metric.first.answer.paragraph.questions_answers.lmqg_qag_tweetqa.default.json +1 -1
- eval/samples.test.hyp.paragraph.questions_answers.lmqg_qag_tweetqa.default.txt +0 -0
- eval/samples.validation.hyp.paragraph.questions_answers.lmqg_qag_tweetqa.default.txt +0 -0
- pytorch_model.bin +2 -2
- tokenizer_config.json +1 -1
- trainer_config.json +1 -1
README.md
CHANGED
@@ -14,7 +14,7 @@ pipeline_tag: text2text-generation
|
|
14 |
tags:
|
15 |
- questions and answers generation
|
16 |
widget:
|
17 |
-
- text: "Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
|
18 |
example_title: "Questions & Answers Generation Example 1"
|
19 |
model-index:
|
20 |
- name: lmqg/bart-large-tweetqa-qag
|
@@ -29,19 +29,19 @@ model-index:
|
|
29 |
metrics:
|
30 |
- name: BLEU4
|
31 |
type: bleu4
|
32 |
-
value:
|
33 |
- name: ROUGE-L
|
34 |
type: rouge-l
|
35 |
-
value: 0.
|
36 |
- name: METEOR
|
37 |
type: meteor
|
38 |
-
value: 0.
|
39 |
- name: BERTScore
|
40 |
type: bertscore
|
41 |
-
value: 0.
|
42 |
- name: MoverScore
|
43 |
type: moverscore
|
44 |
-
value: 0.
|
45 |
---
|
46 |
|
47 |
# Model Card of `lmqg/bart-large-tweetqa-qag`
|
@@ -94,7 +94,7 @@ from transformers import pipeline
|
|
94 |
# initialize model
|
95 |
pipe = pipeline("text2text-generation", 'lmqg/bart-large-tweetqa-qag')
|
96 |
# question generation
|
97 |
-
question = pipe('
|
98 |
|
99 |
```
|
100 |
|
@@ -105,7 +105,7 @@ question = pipe('generate question and answer: Beyonce further expanded her act
|
|
105 |
|
106 |
| Dataset | Type | BLEU4 | ROUGE-L | METEOR | BERTScore | MoverScore | Link |
|
107 |
|:--------|:-----|------:|--------:|-------:|----------:|-----------:|-----:|
|
108 |
-
| [lmqg/qag_tweetqa](https://huggingface.co/datasets/lmqg/qag_tweetqa) | default | 0.
|
109 |
|
110 |
|
111 |
|
@@ -126,7 +126,7 @@ The following hyperparameters were used during fine-tuning:
|
|
126 |
- lr: 5e-05
|
127 |
- fp16: False
|
128 |
- random_seed: 1
|
129 |
-
- gradient_accumulation_steps:
|
130 |
- label_smoothing: 0.15
|
131 |
|
132 |
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/bart-large-tweetqa-qag/raw/main/trainer_config.json).
|
|
|
14 |
tags:
|
15 |
- questions and answers generation
|
16 |
widget:
|
17 |
+
- text: " Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
|
18 |
example_title: "Questions & Answers Generation Example 1"
|
19 |
model-index:
|
20 |
- name: lmqg/bart-large-tweetqa-qag
|
|
|
29 |
metrics:
|
30 |
- name: BLEU4
|
31 |
type: bleu4
|
32 |
+
value: 0.15175643909660202
|
33 |
- name: ROUGE-L
|
34 |
type: rouge-l
|
35 |
+
value: 0.34985377392591416
|
36 |
- name: METEOR
|
37 |
type: meteor
|
38 |
+
value: 0.2790788570524155
|
39 |
- name: BERTScore
|
40 |
type: bertscore
|
41 |
+
value: 0.9126712936479886
|
42 |
- name: MoverScore
|
43 |
type: moverscore
|
44 |
+
value: 0.62254961921224
|
45 |
---
|
46 |
|
47 |
# Model Card of `lmqg/bart-large-tweetqa-qag`
|
|
|
94 |
# initialize model
|
95 |
pipe = pipeline("text2text-generation", 'lmqg/bart-large-tweetqa-qag')
|
96 |
# question generation
|
97 |
+
question = pipe(' Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.')
|
98 |
|
99 |
```
|
100 |
|
|
|
105 |
|
106 |
| Dataset | Type | BLEU4 | ROUGE-L | METEOR | BERTScore | MoverScore | Link |
|
107 |
|:--------|:-----|------:|--------:|-------:|----------:|-----------:|-----:|
|
108 |
+
| [lmqg/qag_tweetqa](https://huggingface.co/datasets/lmqg/qag_tweetqa) | default | 0.152 | 0.35 | 0.279 | 0.913 | 0.623 | [link](https://huggingface.co/lmqg/bart-large-tweetqa-qag/raw/main/eval/metric.first.answer.paragraph.questions_answers.lmqg_qag_tweetqa.default.json) |
|
109 |
|
110 |
|
111 |
|
|
|
126 |
- lr: 5e-05
|
127 |
- fp16: False
|
128 |
- random_seed: 1
|
129 |
+
- gradient_accumulation_steps: 8
|
130 |
- label_smoothing: 0.15
|
131 |
|
132 |
The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/bart-large-tweetqa-qag/raw/main/trainer_config.json).
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "lmqg_output/bart_large_tweetqa/
|
3 |
"activation_dropout": 0.1,
|
4 |
"activation_function": "gelu",
|
5 |
"add_bias_logits": false,
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "lmqg_output/bart_large_tweetqa/model_xfrxcu/epoch_10",
|
3 |
"activation_dropout": 0.1,
|
4 |
"activation_function": "gelu",
|
5 |
"add_bias_logits": false,
|
eval/metric.first.answer.paragraph.questions_answers.lmqg_qag_tweetqa.default.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"validation": {"Bleu_1": 0.
|
|
|
1 |
+
{"validation": {"Bleu_1": 0.43188759926692244, "Bleu_2": 0.30011779847872594, "Bleu_3": 0.20914603335217866, "Bleu_4": 0.14555259594468786, "METEOR": 0.3154636133794367, "ROUGE_L": 0.37165690881702945, "BERTScore": 0.9110018380919206, "MoverScore": 0.6290265297078133}, "test": {"Bleu_1": 0.44545454545451546, "Bleu_2": 0.3115127823844136, "Bleu_3": 0.21584316619841207, "Bleu_4": 0.15175643909660202, "METEOR": 0.2790788570524155, "ROUGE_L": 0.34985377392591416, "BERTScore": 0.9126712936479886, "MoverScore": 0.62254961921224}}
|
eval/samples.test.hyp.paragraph.questions_answers.lmqg_qag_tweetqa.default.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
eval/samples.validation.hyp.paragraph.questions_answers.lmqg_qag_tweetqa.default.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f9df6d58c40c56f82dc5319b30e6988f5050f7931c8b3528b42209acd0c50a4
|
3 |
+
size 1625541889
|
tokenizer_config.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
"errors": "replace",
|
7 |
"mask_token": "<mask>",
|
8 |
"model_max_length": 1024,
|
9 |
-
"name_or_path": "lmqg_output/bart_large_tweetqa/
|
10 |
"pad_token": "<pad>",
|
11 |
"sep_token": "</s>",
|
12 |
"special_tokens_map_file": null,
|
|
|
6 |
"errors": "replace",
|
7 |
"mask_token": "<mask>",
|
8 |
"model_max_length": 1024,
|
9 |
+
"name_or_path": "lmqg_output/bart_large_tweetqa/model_xfrxcu/epoch_10",
|
10 |
"pad_token": "<pad>",
|
11 |
"sep_token": "</s>",
|
12 |
"special_tokens_map_file": null,
|
trainer_config.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"dataset_path": "lmqg/qag_tweetqa", "dataset_name": "default", "input_types": ["paragraph"], "output_types": ["questions_answers"], "prefix_types": null, "model": "facebook/bart-large", "max_length": 256, "max_length_output": 128, "epoch": 14, "batch": 32, "lr": 5e-05, "fp16": false, "random_seed": 1, "gradient_accumulation_steps":
|
|
|
1 |
+
{"dataset_path": "lmqg/qag_tweetqa", "dataset_name": "default", "input_types": ["paragraph"], "output_types": ["questions_answers"], "prefix_types": null, "model": "facebook/bart-large", "max_length": 256, "max_length_output": 128, "epoch": 14, "batch": 32, "lr": 5e-05, "fp16": false, "random_seed": 1, "gradient_accumulation_steps": 8, "label_smoothing": 0.15}
|